Sub topic 12
Sharpe, Treynor, M-squared, and Sortino
This chapter assumes you know holding period returns, the mean and standard deviation of a return series, beta, and the CAPM with its security market line. Earlier chapters showed how to measure return and attribute it. Here we ask how much risk the manager took to earn that return. A 12% return from a portfolio that swung wildly is a different result from 12% earned smoothly.
Why risk-adjust returns
Comparing raw returns rewards risk-taking. A manager who levers up in a rising market will beat a careful manager on return alone. Risk-adjusted measures divide or adjust return by a risk number so that managers with different risk levels can be compared.
All four measures here use the same idea. They take the return earned above a reference (the risk-free rate or a minimum target) and scale it by a risk measure. They differ in which risk they use.
| Measure | Reward numerator | Risk in denominator | Unit of result |
|---|---|---|---|
| Sharpe ratio | Rp − Rf | Total risk, σp | Excess return per unit of volatility |
| Treynor ratio | Rp − Rf | Systematic risk, βp | Excess return per unit of beta |
| M-squared | Rp, after leveraging or de-leveraging to market volatility | Market's σm | Percentage return |
| Sortino ratio | Rp − MAR | Downside deviation | Excess return per unit of downside risk |
The Sharpe ratio
The Sharpe ratio is the portfolio's excess return over the risk-free rate, divided by the standard deviation of portfolio returns:
Sharpe = (Rp − Rf) / σp
It uses total risk, so it fits when the portfolio is the investor's whole holding, or when you compare candidates for that role. A higher Sharpe ratio is better. The ratio is also the slope of the line from the risk-free asset through the portfolio on a return-versus-σ chart. Comparing Sharpe ratios therefore compares slopes of capital allocation lines.
The Sharpe ratio alone has no natural benchmark. Compare it with the Sharpe ratio of the benchmark or market, or with that of competing managers.
The Treynor ratio
The Treynor ratio replaces total risk with beta:
Treynor = (Rp − Rf) / βp
Use it when the portfolio is one piece of a larger, diversified pool of assets. In that case only systematic risk matters, because the specific risk is diversified away. On a return-versus-beta chart, the Treynor ratio is the slope of the line from the risk-free rate to the portfolio. The market's Treynor ratio is the slope of the security market line, which is Rm − Rf because the market's beta is 1.
Treynor needs a meaningful beta. If the portfolio has a low R-squared against the market, or the beta is near zero or negative, the ratio becomes unstable or misleading.
M-squared (M²)
Sharpe ratios are hard to read as numbers. A Sharpe of 0.5 versus 0.6 does not tell you how many percentage points of return you gained or lost. M-squared converts the comparison to a return.
The idea: mix the portfolio with the risk-free asset, or borrow at the risk-free rate, until the adjusted portfolio has the same volatility as the market. Then compare its return with the market's return.
M² = (Rp − Rf) × (σm / σp) + Rf − Rm
The first term is the excess return scaled to market volatility. Adding Rf gives the return of the leveraged or de-leveraged portfolio. Subtracting Rm gives the difference from the market. A positive M² means the manager beat the market on a risk-matched basis.
Because M² is derived from the Sharpe ratio, it ranks portfolios the same way Sharpe does. It differs only in being expressed as a percentage return.
A worked comparison
Suppose the risk-free rate is 2%, the market returned 8% with a standard deviation of 10%, and we have three portfolios.
| Portfolio | Return | Std. dev. | Beta |
|---|---|---|---|
| A | 9% | 14% | 1.1 |
| B | 12% | 20% | 1.4 |
| C | 10% | 12% | 0.9 |
def sharpe(rp, rf, sd_p):
return (rp - rf) / sd_p
def treynor(rp, rf, beta_p):
return (rp - rf) / beta_p
def m_squared(rp, rf, sd_p, rm, sd_m):
return (rp - rf) * (sd_m / sd_p) + rf - rm
portfolios = {
"A": (0.09, 0.14, 1.1),
"B": (0.12, 0.20, 1.4),
"C": (0.10, 0.12, 0.9),
}
rf, rm, sd_m = 0.02, 0.08, 0.10
for name, (rp, sd, beta) in portfolios.items():
print(
name,
round(sharpe(rp, rf, sd), 3),
round(treynor(rp, rf, beta), 4),
round(m_squared(rp, rf, sd, rm, sd_m), 4),
)
# A 0.5 0.0636 -0.01
# B 0.5 0.0714 -0.01
# C 0.667 0.0889 0.0067The market's Sharpe ratio is (0.08 − 0.02) / 0.10 = 0.6, and its Treynor ratio is 0.06.
- Portfolio A has a Sharpe of 0.5, below the market's 0.6. Its M² is −1.0%, so after matching market risk it would have lagged the market by one percentage point. Its Treynor of 0.0636 is above 0.06, which looks fine on a beta basis.
- Portfolio B has the same Sharpe and M² as A, because B simply takes more total risk for proportionally more return. Treynor ranks B above A (0.0714 against 0.0636). B's excess return per unit of beta is higher, but B also carries more non-systematic risk, which Treynor ignores.
- Portfolio C is the only one that beats the market on every measure. Its M² of +0.67% is the gain after risk matching.
The Sortino ratio
Standard deviation counts upside and downside moves as equal risk. Investors usually dislike only the downside. The Sortino ratio replaces the risk-free rate with a minimum acceptable return (MAR) and replaces σ with downside deviation:
Sortino = (Rp − MAR) / downside deviation
Downside deviation is the root mean square of returns below the MAR. Returns at or above the MAR count as zero. In the common formulation the sum is divided by the total number of observations, not only the number below the MAR.
from math import sqrt
def downside_deviation(returns, mar):
shortfalls = [min(r - mar, 0.0) ** 2 for r in returns]
return sqrt(sum(shortfalls) / len(returns))
def sortino(returns, mar):
mean_r = sum(returns) / len(returns)
return (mean_r - mar) / downside_deviation(returns, mar)
annual = [0.12, -0.05, 0.08, -0.02, 0.15]
print(round(downside_deviation(annual, 0.03), 5)) # 0.04219
print(round(sortino(annual, 0.03), 2)) # 0.62Only two years fall below the 3% MAR. Their squared shortfalls are 0.0064 and 0.0025. Dividing the sum of 0.0089 by five observations and taking the square root gives 0.04219. The mean return is 5.6%, so the excess over the MAR is 2.6% and the Sortino ratio is about 0.62.
Sortino is most useful for return distributions that are skewed or have option-like payoffs. A strategy with large upside spikes looks risky under σ but not under downside deviation.
Choosing a measure
Common errors and limits
- Mismatched periods. Return, risk-free rate, and standard deviation must cover the same period. If you use monthly returns, the Rf must be monthly. Annualize σ by multiplying by √12 for monthly data, and annualize returns by compounding.
- Using the wrong risk for the role. Treynor applied to a stand-alone portfolio ignores its diversifiable risk. Sharpe applied to a sleeve inside a larger pool penalizes risk that the pool already diversifies.
- Reading the number without a reference. A Sharpe ratio means little alone. Compare it with the benchmark and with peers over the same period.
- Smoothed or illiquid returns. Appraisal-based valuations understate σ and so inflate Sharpe and Sortino. Treat results for private assets with caution.
- Short or non-normal samples. All four ratios are estimates. Skew, fat tails, and a short history make them noisy, and a high ratio can come from luck.
- Choosing the MAR. Sortino changes with the MAR. State the MAR you used, and do not pick one after seeing the results.
- Negative excess return. When the numerator is negative, a larger denominator makes the ratio look better. Do not rank portfolios with negative excess returns by these ratios without care.
Exercise
The risk-free rate is 3%. The market returned 9% with a standard deviation of 15%. A manager returned 10% with a standard deviation of 18% and a beta of 1.2. Compute the Sharpe ratio, the Treynor ratio, and M-squared for the manager. Did the manager beat the market on a risk-adjusted basis?
Show answer
Sharpe = (0.10 − 0.03) / 0.18 = 0.389. Treynor = 0.07 / 1.2 = 0.0583. M² = 0.07 × (0.15 / 0.18) + 0.03 − 0.09 = 0.05833 + 0.03 − 0.09 = −0.0017, or about −0.17%. The market's Sharpe is 0.06 / 0.15 = 0.40 and its Treynor is 0.06. The manager's Sharpe and M² are below the market's, so the manager did not beat it on a total-risk basis. The Treynor of 0.0583 is also just below 0.06, so the result agrees.
Exercise
A fund's annual returns are 6%, −4%, 10%, 1%. The MAR is 2%. Compute the downside deviation, using the total number of observations as the divisor, and the Sortino ratio.
Show answer
The shortfalls below the MAR are −4% − 2% = −6% and 1% − 2% = −1%. Squared, they are 0.0036 and 0.0001, which sum to 0.0037. Dividing by 4 gives 0.000925, and the square root is about 0.0304. The mean return is (0.06 − 0.04 + 0.10 + 0.01) / 4 = 0.0325, so the excess over the MAR is 0.0125. Sortino = 0.0125 / 0.0304 ≈ 0.41.