Class BehavioralEconomics
java.lang.Object
org.episteme.social.economics.BehavioralEconomics
Models the value function from Prospect Theory (Kahneman invalid input: '&' Tversky).
Provides models for loss aversion, probability weighting, and hyperbolic discounting.
- Version:
- 1.2
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Method Summary
Modifier and TypeMethodDescriptionstatic RealdecisionValue(Real amount, Real probability, Real gamma) Calculates the "Decision Weight" for a prospect.static RealprobabilityWeight(Real p, Real gamma) Probability Weighting Function (Prelec). w(p) = exp(-(-ln p)^gamma)static RealprospectValue(Real gainLoss, Real alpha, Real beta, Real lambda) Tversky invalid input: '&' Kahneman Value Function. v(x) = x^alpha if x >= 0 v(x) = -lambda * (-x)^beta if x invalid input: '<' 0
-
Method Details
-
prospectValue
Tversky invalid input: '&' Kahneman Value Function. v(x) = x^alpha if x >= 0 v(x) = -lambda * (-x)^beta if x invalid input: '<' 0Typically: alpha=0.88, beta=0.88, lambda=2.25 (Loss Aversion)
- Parameters:
gainLoss- the magnitude of the gain (positive) or loss (negative)alpha- the exponent for gainsbeta- the exponent for losseslambda- the loss aversion coefficient- Returns:
- the subjective value
-
probabilityWeight
-
decisionValue
Calculates the "Decision Weight" for a prospect. Combines value function and probability weighting.- Parameters:
amount- the potential outcome amountprobability- the probability of the outcomegamma- the weighting parameter- Returns:
- the decision weight
-