Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/itsdfish/utilitymodels.jl
A Julia package for utility-based models of decision making
https://github.com/itsdfish/utilitymodels.jl
julia julia-language julialang prospect-theory tax transfer-of-attention-exchange
Last synced: 3 days ago
JSON representation
A Julia package for utility-based models of decision making
- Host: GitHub
- URL: https://github.com/itsdfish/utilitymodels.jl
- Owner: itsdfish
- License: mit
- Created: 2021-02-07T12:21:32.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-04-13T23:03:13.000Z (6 months ago)
- Last Synced: 2024-04-14T12:15:01.005Z (6 months ago)
- Topics: julia, julia-language, julialang, prospect-theory, tax, transfer-of-attention-exchange
- Language: Julia
- Homepage:
- Size: 39.1 KB
- Stars: 5
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UtilityModels
UtilityModels.jl is a collection of utility based decision models. Currently, expected utlity theory, transfer of attention exchange, and prospect theory are implemented. More models soon to follow. See the [documentation](https://itsdfish.github.io/UtilityModels.jl/dev/) for more details.
# Quick Example
````julia
using UtilityModels
# TAX with default values
model = TAX()
# trinary gamble
gamble = Gamble(;
p = [.25,.25,.50],
v = [100.0,0.0,-50.0]
)
# expected utility
mean(model, gamble)
````
````julia
# output
-15.51253
````