UtilityModels.ExpectedUtility
— TypeExpectedUtility
ExpectedUtility
constructs a model object for expected utility theory
α
: utility curvature for gains
Constructor
ExpectedUtility(;α=.80)
UtilityModels.Gamble
— TypeGamble
Gamble
constructs a gamble object with probability vector p
and outcome vector v
.
p
: probability vectorv
: outcome vector
Constructor
Gamble(;p=[.5,.5], v=[10.0,0.0])
UtilityModels.ProspectTheory
— TypeProspectTheory
ProspectTheory
constructs a model object for cummulative prospect theory. By default, parameters for utility curvature and probability weigting are equal gains and losses.
α
: utility curvature for gainsβ
: utility curvature for lossesγg
: probability weighting parameter for gainsγl
: probability weighting parameter for lossesλ
: loss aversion parameter
Constructor
ProspectTheory(;α=.80, β=α, γg=.70, γl=γg, λ=2.25)
References
Fennema, H., & Wakker, P. (1997). Original and cumulative prospect theory: A discussion of empirical differences. Journal of Behavioral Decision Making, 10(1), 53-64.
Tversky, A., & Kahneman, D. (1992). Advances in prospect theory: Cumulative representation of uncertainty. Journal of Risk and uncertainty, 5(4), 297-323.
UtilityModels.TAX
— TypeTAX
TAX
constructs a model object for transfer of attention exchange.
δ
: transfer of attention parameterγ
: probability weighting parameterβ
: utility curvature
Constructor
TAX(;δ=.80, β=.3, γ=.70)
References
Birnbaum, M. H., & Chavez, A. (1997). Tests of theories of decision making: Violations of branch independence and distribution independence. Organizational Behavior and human decision Processes, 71(2), 161-194. Birnbaum, M. H. (2008). New paradoxes of risky decision making. Psychological review, 115(2), 463.
UtilityModels.UtilityModel
— TypeUtilityModel
UtilityModel
is an abstract utility-based model object ````
Statistics.mean
— Methodmean
mean
a method for computing the mean for the TAX model
model
: a model M <: UtilityModelgamble
: a gamble object
Function Signature
mean(model::TAX, gamble::Gamble)
Statistics.mean
— Methodmean
mean
generic method for computing mean
model
: a model M <: UtilityModelgamble
: a gamble object
Function Signature
mean(model::UtilityModel, gamble::Gamble)
Statistics.std
— Methodstd
std
a generic method for computing the standard deviation of the gamble
model
: a model M <: UtilityModelgamble
: a gamble object
Function Signature
std(model::UtilityModel, gamble::Gamble)
Statistics.var
— Methodvar
var
a generic method for computing the variance of the gamble
model
: a model M <: UtilityModelgamble
: a gamble object
Function Signature
var(model::UtilityModel, gamble::Gamble)
UtilityModels._compute_weights
— Methodcomputeweights
_compute_weights
computes decision weights based on cummulative outcomes
p
: a probability vectorγ
: parameter that controls weighting of low and high probabilities
Function Signature
_compute_weights(p, γ)
UtilityModels.compute_utility
— Methodcompute_utility
compute_utility
computes utility of gamble outcomes according to expected utility theory
model
: a model object for prospect theorygamble
: a gamble object
Function Signature
compute_utility(model::ExpectedUtility, gamble::Gamble)
UtilityModels.compute_utility
— Methodcompute_utility
compute_utility
computes utility of gamble outcomes according to prospect theory
model
: a model object for prospect theorygamble
: a gamble object
Function Signature
compute_utility(model::ProspectTheory, gamble::Gamble)
UtilityModels.compute_utility
— Methodcompute_utility
compute_utility
computes utility of gamble outcomes according to TAX
model
: a model object for TAXgamble
: a gamble object
Function Signature
compute_utility(model::TAX, gamble::Gamble)
UtilityModels.compute_weights
— Methodcompute_weights
compute_weights
computes decision weights based on cummulative outcomes
model
: a model object for prospect theorygamble
: a gamble object
Function Signature
compute_weights(model::ProspectTheory, gamble::Gamble)
UtilityModels.compute_weights
— Methodcompute_weights
compute_weights
a generic method for computing decision weights
model
: a model M <: UtilityModelgamble
: a gamble object
Function Signature
compute_weights(model::UtilityModel, gamble::Gamble)
UtilityModels.sort!
— Methodsort!
sort!
a generic method for sorting gamble probabilities and values. The generic method does not sort the gambles
model
: a model M <: UtilityModelgamble
: a gamble object
Function Signature
sort!(model::UtilityModel, gamble)