The quadratic utility function is given by
U(oc) = alpha * oc - oc^2, if oc >= 0 and
U(oc) = -lambda * (beta * (-oc) - (-oc)^2), if oc < 0.
U is the utility and oc is the objective consequence of a gamble outcome. lambda is the loss aversion coefficient. The Tversky & Kahneman (1992) assumption has also been made, namely
U(-oc) = -lambda * U(oc) where oc >= 0.
1 | quadratic_uf(par, oc)
|
par |
vector, parameters alpha, beta and lambda for the utility function. |
oc |
numeric, the objective consequence |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.