Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
````