Calculate the risk premium of a risky lottery: the amount an individual would pay to avoid risk. Risk premium π = E[X] - CE where E[X] is expected value and CE is certainty equivalent. For risk-averse agents, π > 0 (willing to pay to eliminate risk). Returns the maximum payment to avoid the lottery. Use for insurance pricing, portfolio risk assessment, and welfare analysis.
API key for authentication. Get your key at https://finceptbackend.share.zrok.io/auth/register
Type of utility function to use
cara, crra, log "log"
Possible wealth outcomes
1x > 0[5000, 10000, 15000]Utility function parameter (risk_aversion for CARA, gamma for CRRA, unused for log)
null
Probabilities for each outcome (must sum to 1, if null uses uniform)
0 <= x <= 1[0.2, 0.6, 0.2]