Sub topic 14
Sharpe, Treynor, M-squared, and Jensen's Alpha
This chapter assumes you can compute portfolio return and standard deviation, and that you know beta and the CAPM required return from the earlier chapters. It covers four risk-adjusted performance measures: how to calculate each, which risk each one uses, and why they can rank the same portfolios differently.
Why raw return is not enough
A manager who earned 12% is not automatically better than one who earned 10%. The first may have taken far more risk. Risk-adjusted measures answer a narrower question: how much return did the portfolio earn for each unit of risk it carried?
Each measure picks a different definition of risk, and each compares against a different benchmark.
| Measure | Risk used | Benchmark line | Form |
|---|---|---|---|
| Sharpe ratio | Total risk (standard deviation) | Capital market line | Ratio |
| Treynor ratio | Systematic risk (beta) | Security market line | Ratio |
| M-squared (M²) | Total risk (standard deviation) | Capital market line | Return difference, in % |
| Jensen's alpha | Systematic risk (beta) | Security market line | Return difference, in % |
The pattern is that Sharpe and M² share the total-risk view, and Treynor and alpha share the beta view. Sharpe and Treynor are ratios. M² and alpha are percentage-point differences.
The Sharpe ratio
The Sharpe ratio is excess return per unit of total risk:
Sharpe = (Rp − Rf) / σp
Here Rp is the portfolio return, Rf is the risk-free rate, and σp is the portfolio standard deviation. It is the slope of the line from the risk-free asset through the portfolio. The capital market line has the market portfolio's Sharpe ratio as its slope, so a portfolio with a higher Sharpe ratio than the market sits above the CML.
Use Sharpe when the portfolio is the investor's entire holding. Total risk then matters, because nothing else diversifies away the unsystematic risk.
A Sharpe ratio of 0.58 means 0.58 percentage points of excess return per 1 percentage point of standard deviation. The number has no natural unit, so it is only useful for comparison.
The Treynor ratio
The Treynor ratio is excess return per unit of systematic risk:
Treynor = (Rp − Rf) / βp
It is the slope of the line from the risk-free asset through the portfolio in return-beta space. The security market line has slope Rm − Rf, which is the Treynor ratio of the market (its beta is 1). A portfolio with a Treynor ratio above Rm − Rf plots above the SML.
Use Treynor when the portfolio is one piece of a larger, well-diversified holding. Unsystematic risk is then diversified away elsewhere, so only beta matters.
M-squared
M-squared (also written M²) was developed by Modigliani and Modigliani. It restates the Sharpe ratio as a return, so it is easier to explain to a client. The procedure has two steps:
- Mix the portfolio with the risk-free asset until its standard deviation equals the market's. The scaled return is Rf + (Rp − Rf) × (σm / σp).
- Subtract the market return.
M² = [Rf + (Rp − Rf) × σm / σp] − Rm
If σp is above σm, the scale factor is below 1, so you hold part of the portfolio in the risk-free asset. If σp is below σm, the factor is above 1, so you lever up by borrowing at the risk-free rate. A positive M² means the portfolio beat the market at equal total risk.
Because M² is a monotonic transformation of Sharpe for a fixed market, M² and Sharpe always rank portfolios identically. M² simply puts the answer in percentage points.
Jensen's alpha
Jensen's alpha is the return earned above what CAPM says the portfolio's beta requires:
α = Rp − [Rf + βp (Rm − Rf)]
A positive alpha means the portfolio plots above the SML. It is the same SML mispricing idea from the previous chapter, applied to a portfolio's realized return instead of a security's expected return.
Alpha is not scaled by risk. A portfolio with beta 2.0 and an alpha of 1% has earned that 1% over a much larger amount of market exposure than a portfolio with beta 0.5 and the same alpha. So alpha is awkward for comparing portfolios of very different beta.
Worked example
Assume the risk-free rate is 3%. The market returned 9% with a standard deviation of 14%. Two portfolios over the same period:
| Row | Return | Std. dev. | Beta |
|---|---|---|---|
| Portfolio A | 12% | 18% | 1.1 |
| Portfolio B | 10% | 12% | 0.8 |
The calculations for A:
- Sharpe = (12 − 3) / 18 = 0.5000
- Treynor = (12 − 3) / 1.1 = 8.18%
- Alpha = 12 − [3 + 1.1 × (9 − 3)] = 12 − 9.6 = 2.40%
- M² = [3 + 9 × 14/18] − 9 = 10 − 9 = 1.00%
The calculations for B:
- Sharpe = (10 − 3) / 12 = 0.5833
- Treynor = (10 − 3) / 0.8 = 8.75%
- Alpha = 10 − [3 + 0.8 × 6] = 10 − 7.8 = 2.20%
- M² = [3 + 7 × 14/12] − 9 = 11.1667 − 9 = 2.17%
The market itself has a Sharpe ratio of 6/14 = 0.4286 and a Treynor ratio of 6%. Both portfolios beat the market on every measure.
Running the numbers in Python
This script uses the four functions from the topic spine and reproduces the table above.
def sharpe(rp, rf, sd_p):
return (rp - rf) / sd_p
def treynor(rp, rf, beta_p):
return (rp - rf) / beta_p
def jensen_alpha(rp, rf, beta_p, rm):
return rp - (rf + beta_p * (rm - rf))
def m_squared(rp, rf, sd_p, rm, sd_m):
# Scale the portfolio to the market's risk using the risk-free asset, then subtract the market return
return (rf + (rp - rf) * sd_m / sd_p) - rm
rf, rm, sd_m = 0.03, 0.09, 0.14
portfolios = {
"A": {"rp": 0.12, "sd": 0.18, "beta": 1.1},
"B": {"rp": 0.10, "sd": 0.12, "beta": 0.8},
}
for name, p in portfolios.items():
s = sharpe(p["rp"], rf, p["sd"])
t = treynor(p["rp"], rf, p["beta"])
a = jensen_alpha(p["rp"], rf, p["beta"], rm)
m2 = m_squared(p["rp"], rf, p["sd"], rm, sd_m)
print(f"{name}: Sharpe={s:.4f} Treynor={t:.4f} alpha={a:.4f} M2={m2:.4f}")Expected output:
A: Sharpe=0.5000 Treynor=0.0818 alpha=0.0240 M2=0.0100
B: Sharpe=0.5833 Treynor=0.0875 alpha=0.0220 M2=0.0217The measures can disagree
Look at the rankings. Sharpe, Treynor, and M² all prefer Portfolio B. Alpha prefers Portfolio A (2.40% against 2.20%).
Alpha disagrees because it does not divide by risk. Portfolio A took more beta (1.1 against 0.8), so it had more raw opportunity to earn a return. Treynor corrects for that by dividing by beta, and Sharpe and M² correct for total risk.
Sharpe and Treynor can also disagree with each other. A portfolio with a lot of unsystematic risk looks worse on Sharpe than on Treynor, because Sharpe penalizes the risk that Treynor ignores. If a portfolio is fully diversified, its total risk is mostly systematic and the two measures tend to agree.
Common errors and edge cases
- Negative excess returns. If Rp is below Rf, a Sharpe or Treynor ratio becomes negative, and ranking by "bigger is better" can mislead. A risky portfolio with a small loss can score a less negative number than a safe one with a larger loss, because dividing by a larger risk shrinks the magnitude. Do not rank portfolios that underperform the risk-free rate by their ratios alone.
- Negative beta. A negative beta flips the sign of the Treynor ratio, so the ratio cannot be interpreted in the usual way.
- Using the wrong risk. If a question says the portfolio is part of a diversified portfolio, use Treynor or alpha. If it is the whole portfolio, use Sharpe or M².
- Mixing periods. Returns and standard deviations must cover the same period and be annualized the same way before any measure is computed.
- M² direction. The sign of M² compares to the market, not to zero return. A positive M² requires a portfolio to beat the market at the same standard deviation.
- Alpha depends on the benchmark. Alpha is only as meaningful as the beta and market return behind it. A different market index gives a different alpha.
Summary table for review
| Measure | Formula | Better when | Unit |
|---|---|---|---|
| Sharpe | (Rp − Rf) / σp | Higher | Unitless |
| Treynor | (Rp − Rf) / βp | Higher | Percent per unit of beta |
| M² | Rf + (Rp − Rf)σm/σp − Rm | Positive and higher | Percent |
| Jensen's α | Rp − [Rf + βp(Rm − Rf)] | Positive and higher | Percent |
Exercise
Rf = 2%, Rm = 8%, σm = 10%. A portfolio returned 11% with σ = 15% and beta 1.3. Compute its Sharpe ratio, Treynor ratio, Jensen's alpha, and M-squared.
Show answer
Sharpe = (11 − 2)/15 = 0.60. Treynor = (11 − 2)/1.3 = 6.92%. Alpha = 11 − [2 + 1.3 × 6] = 11 − 9.8 = 1.20%. M² = [2 + 9 × 10/15] − 8 = 8 − 8 = 0%. The portfolio earns a positive alpha, but its M² is zero because at the market's risk it would only match the market's 8% return.
Exercise
A pension fund holds Portfolio X as one of several managers' portfolios, all combined into a diversified whole. Should the fund compare X to other managers using the Sharpe ratio or the Treynor ratio, and why?
Show answer
The Treynor ratio. X is only one part of a diversified whole, so its unsystematic risk is diversified away by the other holdings. Beta is the relevant risk, and Treynor divides excess return by beta. Sharpe would penalize X for risk the fund does not actually bear.
Exercise
Portfolio P has Sharpe 0.45 and Portfolio Q has Sharpe 0.62. The market's standard deviation is the same for both comparisons. Which has the higher M-squared, and why?
Show answer
Q. M² is a monotonic transformation of the Sharpe ratio for a fixed market, because M² = Rf + Sharpe × σm − Rm. A higher Sharpe therefore always gives a higher M², so the two measures rank portfolios identically.