Sub topic 8
Adding a Risk-Free Asset: The Capital Allocation Line
This chapter assumes you can compute portfolio expected return and standard deviation for two assets, that you know covariance and correlation, and that you have met the efficient frontier of risky assets. Here we add one new asset, the risk-free asset. It turns the curved frontier problem into a straight-line problem.
The Risk-Free Asset
A risk-free asset has a known return over the investment horizon. In practice, a short-term government bill stands in for it. Two properties matter:
- Its standard deviation is zero, because its return does not vary.
- Its covariance with any risky asset is zero, because a constant cannot move together with anything.
The second property is what makes the math simple. Every term in the portfolio variance formula that involves the risk-free asset and a covariance drops out.
Combining the Risk-Free Asset with a Risky Portfolio
Let a risky portfolio P have expected return E(Rp) and standard deviation σp. Let y be the fraction of your money in P, and 1 − y the fraction in the risk-free asset with return Rf. The combined portfolio C has:
- Expected return: E(Rc) = Rf + y × (E(Rp) − Rf)
- Standard deviation: σc = y × σp
The standard deviation is linear in y because the variance is y²σp² + (1 − y)²·0 + 2y(1 − y)·0, and the square root of y²σp² is yσp (for y ≥ 0). The risk-free weight adds no risk and no correlation effect.
Solve σc = yσp for y, which gives y = σc/σp. Substitute into the return equation:
E(Rc) = Rf + [(E(Rp) − Rf) / σp] × σc
This is the capital allocation line (CAL). It is a straight line in expected return and standard deviation space. Its intercept is Rf, and its slope is the Sharpe ratio of P.
Reading the Line
The slope, (E(Rp) − Rf)/σp, is the extra return per unit of risk. It is also the Sharpe ratio of P. Every point on the line has that same Sharpe ratio, so moving along the line changes how much risk you take, not how efficiently you are paid for it.
| Position (y) | Meaning |
|---|---|
| y = 0 | All money in the risk-free asset. Return Rf, risk 0. |
| 0 < y < 1 | Lending: part in P, part in the risk-free asset. |
| y = 1 | All money in P. |
| y > 1 | Borrowing at Rf to invest more than 100% of your capital in P (leverage). |
Worked Example
Let Rf = 3%, E(Rp) = 9%, and σp = 15%. The slope is (9 − 3)/15 = 0.40.
- y = 0.5: E(Rc) = 3 + 0.5 × 6 = 6.0%, σc = 7.5%.
- y = 1.4: E(Rc) = 3 + 1.4 × 6 = 11.4%, σc = 21%. You borrow 40% of your capital at 3% and invest 140% in P. Check: 1.4 × 9% − 0.4 × 3% = 11.4%.
def cal_point(rf, rp, sd_p, y):
"""Expected return and standard deviation of a CAL portfolio."""
expected = rf + y * (rp - rf)
sd = abs(y) * sd_p
return expected, sd
rf, rp, sd_p = 0.03, 0.09, 0.15
print(f"CAL slope (Sharpe) = {(rp - rf) / sd_p:.2f}")
for y in (0.0, 0.5, 1.0, 1.4):
e, s = cal_point(rf, rp, sd_p, y)
print(f"y={y:.1f} E[R]={e:.2%} sd={s:.2%}")The output shows expected return and standard deviation rising together along a constant slope of 0.40.
Borrowing Costs Create a Kink
The straight line above assumes you can borrow at Rf. Most investors cannot. If the borrowing rate Rb is higher than Rf, the CAL has two segments:
- For y ≤ 1 (lending), the slope is (E(Rp) − Rf)/σp.
- For y > 1 (borrowing), the slope is (E(Rp) − Rb)/σp, which is smaller.
With Rb = 5%, the leveraged part has slope (9 − 5)/15 ≈ 0.27. At y = 1.4, E(Rc) = 1.4 × 9% − 0.4 × 5% = 10.6%, not 11.4%. The same risk of 21% now earns less.
Which Risky Portfolio Should You Hold?
You can draw a CAL through any risky portfolio. Different portfolios give lines with different slopes. A steeper line is better, because at any level of risk it offers a higher expected return.
Compare two portfolios with Rf = 3%:
- Portfolio A: E(R) = 9%, σ = 15%. Slope = 6/15 = 0.40.
- Portfolio B: E(R) = 8%, σ = 10%. Slope = 5/10 = 0.50.
B has a lower return, but its CAL lies above A's at every risk level. To reach 15% risk, you could lever B at y = 1.5 and earn 3 + 1.5 × 5 = 10.5%, which beats A's 9%.
So the best risky portfolio is the one with the highest Sharpe ratio. Geometrically, you rotate the CAL upward, pivoting on Rf, until it just touches the efficient frontier of risky assets. The touching point is the tangency portfolio. Under the assumption that all investors share the same inputs, everyone holds the same risky portfolio, and the next chapter identifies it as the market portfolio.
Choosing the Position Along the Line
Selecting the risky portfolio is an objective step: it depends only on expected returns, risks, and correlations. Choosing y is personal. A more risk-averse investor sits closer to Rf, and a less risk-averse investor sits further out, possibly with leverage. This is the separation principle: first find the optimal risky portfolio, then decide how much to hold.
With mean-variance utility U = E(Rc) − ½ × A × σc², where A is the risk aversion coefficient, the utility-maximizing weight is:
y* = (E(Rp) − Rf) / (A × σp²)
For Portfolio A with A = 4: y* = 0.06 / (4 × 0.0225) = 0.667. The investor puts about two-thirds in the risky portfolio and the rest in the risk-free asset.
def optimal_weight(rf, rp, sd_p, risk_aversion):
return (rp - rf) / (risk_aversion * sd_p ** 2)
def sharpe(rp, rf, sd_p):
return (rp - rf) / sd_p
rf = 0.03
print(f"Sharpe A = {sharpe(0.09, rf, 0.15):.2f}")
print(f"Sharpe B = {sharpe(0.08, rf, 0.10):.2f}")
y = optimal_weight(rf, 0.09, 0.15, 4)
print(f"y* for A with A=4: {y:.3f}")
print(f"Portfolio sd at y*: {y * 0.15:.2%}")The last line prints a portfolio standard deviation of 10.00%.
Common Errors
- Treating the CAL as a curve. Because the risk-free asset has zero covariance with everything, the combined risk is linear in y. Only combinations of two risky assets are curved.
- Mixing up the CAL and the efficient frontier. The frontier contains risky assets only. The CAL is a line from Rf through one risky portfolio.
- Using the wrong weight for risk. The standard deviation of the combined portfolio is y × σp, where y is the weight in the risky portfolio, not the weight in the risk-free asset.
- Choosing the portfolio with the highest return. The right choice is the highest Sharpe ratio. Leverage can then be used to reach any target risk.
- Ignoring the borrowing rate. If a question gives Rb, the line bends at y = 1.
Key Points
- The risk-free asset has zero variance and zero covariance with risky assets.
- Mixing it with a risky portfolio P gives a straight line, the CAL: E(Rc) = Rf + y(E(Rp) − Rf) and σc = yσp.
- The CAL's slope equals the Sharpe ratio of P.
- The best risky portfolio is the tangency portfolio, with the highest Sharpe ratio.
- An investor's risk aversion decides only how far along the line to sit.
Exercise
The risk-free rate is 2%. A risky portfolio has an expected return of 10% and a standard deviation of 20%. An investor wants a portfolio with a standard deviation of 12%. What weight must the investor place in the risky portfolio, and what is the expected return of the combined portfolio?
Show answer
The weight is y = σc/σp = 12/20 = 0.60. The expected return is 2% + 0.60 × (10% − 2%) = 6.8%. The remaining 40% is held in the risk-free asset.
Exercise
With Rf = 4%, Portfolio X has E(R) = 12% and σ = 20%, and Portfolio Y has E(R) = 10% and σ = 12%. Which gives the better CAL, and what return would an investor earn by leveraging that portfolio to a 24% standard deviation, borrowing at 4%?
Show answer
Sharpe ratio of X = 8/20 = 0.40. Sharpe ratio of Y = 6/12 = 0.50. Y gives the better CAL. To reach 24% risk, y = 24/12 = 2.0, so the expected return is 4% + 2.0 × 6% = 16%. Portfolio X at the same risk would give y = 1.2 and 4% + 1.2 × 8% = 13.6%.