Risk aversion as a number
Case study 2.4.5 gave an investor with $100,000 the utility , a concave curve that scores each level of wealth . A fair coin flip of $20,000 either way was worth $97,979.59 to them for sure: its certainty equivalent.
The gap to $100,000, $2,020.41, is the risk premium. It was close to , which is $2,000 here. The stake is , and is the Arrow–Pratt coefficient.
Portfolios are measured in returns, not dollars. The flip is a return of +20% or −20%: an expected return and a volatility . Its certainty-equivalent return is , a sure loss just as good as the flip.
Divided by wealth, the premium becomes , with and . The number (gamma) is the investor's relative risk aversion. It has no units.
- For , , so at every level of wealth.
- The power utilities give any other , the same at every wealth. The formula divides by 0 at , where takes its place.
The larger , the more risk hurts. gives the straight line , which ignores risk, and gives , the convex, risk-seeking curve of case study 2.4.5. Models of investors often use values from 1 to 10.
Rule: Certainty-equivalent return
To an investor with relative risk aversion , a risky investment with expected return and volatility is worth about the sure return . The returns and are over the same period, here a year.
Where it comes from
The rule is lesson 2.7.1's quadratic Taylor copy of . Take the flip of on wealth , and call the premium .
- 1
- 2
Expected utility
- 3
- 4
, so
The same cancellation works for any outcomes: the first-order terms average to 0, and the squares average to the variance. If every outcome rises by , the certainty equivalent rises by about as well, which gives the rule.
How good the copy is
For fair flips of , so that , the exact certainty-equivalent returns and the rule compare like this:
| swing | 0.05 | 0.1 | 0.2 | 0.5 |
|---|---|---|---|---|
| , exact | ||||
| , rule | ||||
| , exact | ||||
| , rule |
Up to swings of about 20% the rule is close. At it is far off, because the powers of the step that the copy leaves out are no longer small (lesson 2.7.1).
The other signs of behave as expected. The ±20% flip is worth exactly 0 at , and +1.98% to a risk seeker with , against the rule's +2%.
Try it
ce_return averages the power utilities of the outcomes, from wealth 1, and turns the result back into a return with inverse.
The first line is case study 2.4.5's certainty equivalent, the second the ±20% flip for , 0, 1 and 4. The loop is the table.
Mean–variance utility
Scoring every portfolio by the rule gives the score portfolio theory works with.
Rule: Mean–variance utility
The approximate certainty-equivalent return of a portfolio with expected return and volatility : higher is better. It needs only two numbers per portfolio.
Score Level 3's three assets (case study 3.2.5). Their expected returns are and their volatilities , in annual decimals.
| A | B | C | best | |
|---|---|---|---|---|
| 0 | 0.06 | 0.08 | 0.11 | C |
| 2 | 0.0456 | 0.0476 | 0.0475 | B |
| 4 | 0.0312 | 0.0152 | A |
At only the expected return counts, so C wins. At , C's variance costs , more than its whole 11% return.
A and B score the same when B's extra return, 0.02, just pays for its extra variance, . That is where , at .
- , risk averse: variance lowers the score.
- , risk neutral: only counts.
- , risk seeking: variance raises the score.
- Large : the variance term dominates, so the least risky choice wins.
What it leaves out
Mean–variance utility sees only and . Here are three bets, each with and , so each scores for and for . Their certainty-equivalent returns differ:
| bet | log utility | |
|---|---|---|
| a fair flip: +20% or −20% | ||
| a rare big gain: +40% with chance 0.2, else −10% | ||
| a rare big loss: −40% with chance 0.2, else +10% |
A concave utility minds the rare big loss most. Mean–variance utility treats all three alike, so for lopsided bets, such as selling options, work with the utility itself.
Try it
The loop scores the three assets and names the best; the next line is the at which A and B tie.
Each bet's line prints its mean, volatility and two certainty-equivalent returns. Adding 0.0 turns a -0.0 into 0.0.
Indifference curves
Every portfolio with the same score lies on one curve, . It is called an indifference curve: the investor does not mind which point on it they get. With volatility across and expected return up, it is half a parabola that starts at height where .
Rule: Indifference curve
The portfolios with mean–variance utility . The height at is , the certainty-equivalent return, and the slope is . A higher curve is better.
Indifference curves for through the three assets, and the best portfolios for and . Each best portfolio is where the highest reachable indifference curve touches the frontier.
For , A scores . To be as good as A, an asset with B's volatility of 18% would need , and B offers only 0.08. With C's 25% it would need 0.1562, against C's 0.11.
The slope is the extra expected return that makes one more unit of volatility acceptable. At it is 0: a little risk costs almost nothing, because the cost grows like . At it is 0.72 for , so each extra point of volatility must bring 0.72 points of expected return.
A larger gives steeper curves; for they are flat lines.
Try it
A's score for fixes . Each line prints a volatility, the expected return the curve asks for there, and the slope .
The best portfolio for a risk aversion
Two assets: a vertex
Put a weight in C and in A. The expected return is a straight line in . The variance is case study 1.2.4's parabola, with , and covariance .
So is a line minus a parabola that opens upwards: a parabola that opens downwards. For :
| 0 | 0.25 | 0.5 | 0.75 | 1 | |
|---|---|---|---|---|---|
| 0.06 | 0.0725 | 0.085 | 0.0975 | 0.11 | |
| 0.0144 | 0.013131 | 0.020725 | 0.037181 | 0.0625 | |
| 0.0312 | 0.046237 | 0.04355 | 0.023138 |
The top lies between 0.25 and 0.5. For the algebra, multiply out the variance as , with and . The slope is , and setting it to 0 (lesson 2.4.1) gives the best weight.
Rule: Best weight, two assets
The first term is the minimum-variance weight of case study 1.2.4. The second tilts the mix towards the asset with the higher expected return, and less so the more risk averse the investor.
Here and the tilt is , so : about a third in C. Its score, 0.047313, is well above A's 0.0312 alone. At the tilt doubles and ; at it halves and .
Try it
score returns , and for a weight in C. The loop is the table; the next line is , , , the tilt, and its score.
A search over 10,001 weights finds the same top, and the last line is for and 8.
Three assets: a Lagrange multiplier
With three assets, maximise over the weights , fully invested: . Lesson 4.5.1's condition is . The gradient of is , as in case study 4.5.5, so the condition reads
Entry says , and case study 3.2.5 showed that is asset 's covariance with the portfolio. So at the best portfolio, every asset's expected return minus times its covariance with the portfolio is the same number . Otherwise moving a little money into the asset with the higher value would raise .
With the budget , this is a linear system of four equations in and (lesson 3.3.1):
For the solution is with . The portfolio expects 7.7% with a volatility of 11.93%, a score of 4.85%. Case study 3.2.5's 50/30/20 mix has almost the same volatility, 11.94%, but expects only 7.6%.
The best portfolio lies on the frontier of case study 4.5.5: no fully invested portfolio with the same expected return has less risk. In the second picture of the figure above, it is where the highest indifference curve touches the frontier.
Try it
best builds the system and solves it. The first line prints , and , whose three entries all equal .
The last line gives the expected return, the volatility and the score.
The answer for every
Solving the system with letters in place of numbers gives one formula for every investor.
Rule: Best fully invested portfolio
is the minimum-variance portfolio of case study 4.5.5. The entries of the tilt add up to 0, so it only moves money between assets, by an amount proportional to .
It is the two-asset rule again: the minimum-variance portfolio plus a tilt towards return. Here and , so the tilt moves money from A to C.
| 2 | 0.3852 | 0.1654 | 0.4494 | 0.0858 | 0.1444 |
| 4 | 0.5659 | 0.1582 | 0.2759 | 0.077 | 0.1193 |
| 8 | 0.6562 | 0.1547 | 0.1891 | 0.0725 | 0.1122 |
As grows the tilt vanishes, and the best portfolio slides down the frontier to the minimum-variance portfolio. A small means a large tilt: below the weight in A turns negative, a short sale.
Lesson 4.6.2 adds a risk-free asset. The budget constraint then disappears, and every investor holds the same mix of risky assets.
Try it
np.linalg.solve(Sigma, ones) is , found without forming the inverse. The loop solves the system for three values of and checks the formula; the last line is the at which reaches 0.
Common mistakes
- multiplies the variance, not the volatility. For B with , , not .
- Keep one unit and one period. In percent, B would score , because is then in squared percent. Use annual decimals for and alike.
- The rule copies small risks. For swings of 50%, or for lopsided bets, the certainty equivalent can be far from .
- Mind the sign of . Positive is risk averse, zero ignores risk, negative seeks it.
- Higher curves are better. An indifference curve's height at is its certainty-equivalent return.
- The best portfolio depends on . The minimum-variance portfolio is best only as grows without limit. At the best mix holds 27.59% in C, not 10.23%.
Utility and mean–variance preferences
0 of 12 correct
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.
- 11.
- 12.
How to type answers
- Powers with
^:x^7,2^(1/3),a^-2. - Multiply with
*or by writing side by side:3x^2,2(x+1). ln(x)is the natural log,log(x, 2)is log base 2,eis Euler's number,sqrt(x)is a square root.sin(x),cos(x)andtan(x)take radians; writepifor π andsin(x)^2for sin²x.- Your first answer to each question is saved: it counts towards your score and brings the question back for review.
- Exact answers like
ln(20)/ln(3)are best. Decimals need about 4 significant figures.
Summary card
- Relative risk aversion has no units: 1 for , and for the power utility . Zero is risk neutral, negative is risk seeking.
- The certainty-equivalent return is about , from the quadratic Taylor copy of . It is close for small swings and poor for large or lopsided ones.
- Mean–variance utility ranks portfolios by and alone; the ranking depends on .
- Indifference curves start at the certainty-equivalent return and have slope .
- Two assets: . Three or more: , solved as a linear system, giving on the frontier.