Sub topic 8
Beta and alpha
This chapter assumes you can compute period returns and active returns, and that you know covariance, variance and standard deviation. You should also know what a risk-free rate is. The code uses numpy.
Why active return is not the whole story
Active return is portfolio return minus benchmark return. It does not say why the portfolio beat or lagged the benchmark. Suppose a portfolio gained 14% while its benchmark gained 10%. The manager may have found good stocks. The manager may also have held more market risk than the benchmark, so the portfolio rose faster in a rising market. Those two explanations have different consequences when the market turns down.
Beta and alpha separate the two explanations:
- Beta measures how strongly the portfolio moves with the benchmark.
- Alpha is the return left over after accounting for that movement.
Beta: sensitivity to the benchmark
Beta is the slope of the line that relates the portfolio's returns to the benchmark's returns. It is the covariance of the two return series divided by the variance of the benchmark returns:
beta = Cov(excess portfolio return, excess benchmark return) / Var(excess benchmark return)
An excess return is a return minus the risk-free rate for the same period. Reading beta:
| Beta | Meaning |
|---|---|
| 1.0 | The portfolio tends to move one-for-one with the benchmark |
| Above 1.0 | The portfolio amplifies benchmark moves, in both directions |
| Between 0 and 1 | The portfolio moves in the same direction with a smaller size |
| Near 0 | Benchmark moves explain little of the portfolio's movement |
| Below 0 | The portfolio tends to move opposite to the benchmark |
A beta of 1.2 does not mean the portfolio returns 1.2 times the benchmark. It means that, on average, a 1% benchmark excess return goes with a 1.2% portfolio excess return.
Alpha: the return beta does not explain
Given a beta, you can compute the return the portfolio would be expected to earn for taking that much benchmark risk. Alpha is the average gap between the actual return and that expected return:
alpha = mean(excess portfolio return) - beta × mean(excess benchmark return)
This is the intercept of the same regression line. The regression model is:
excess portfolio return = alpha + beta × excess benchmark return + residual
The residual is the part of each period's return that neither alpha nor beta explains. Alpha is usually quoted per period, then annualized. The simple approach multiplies a monthly alpha by 12. That is an approximation, as is the multiplication of mean active return in the information ratio.
Computing beta and alpha in Python
The function below follows the same method as the formulas. It uses sample statistics (ddof=1) for both the covariance and the variance, so the factor n - 1 cancels consistently. It also returns R-squared, which is the share of the portfolio's variance explained by the benchmark.
import numpy as np
def beta_alpha(rp, rb, rf=0.0, periods=12):
"""Beta, per-period alpha, annualized alpha and R-squared.
rp, rb: periodic portfolio and benchmark returns as decimals.
rf: risk-free rate for the same period length.
"""
ep = np.asarray(rp, float) - rf
eb = np.asarray(rb, float) - rf
beta = np.cov(ep, eb, ddof=1)[0, 1] / np.var(eb, ddof=1)
alpha = ep.mean() - beta * eb.mean()
residual = ep - (alpha + beta * eb)
r_squared = 1 - (residual ** 2).sum() / ((ep - ep.mean()) ** 2).sum()
return {
"beta": beta,
"alpha_per_period": alpha,
"alpha_annualized": alpha * periods,
"r_squared": r_squared,
}
# Benchmark returns, and a portfolio built as 0.1% + 1.2 x benchmark.
rb = [0.02, -0.01, 0.03, -0.02, 0.01, 0.00]
rp = [0.025, -0.011, 0.037, -0.023, 0.013, 0.001]
for name, value in beta_alpha(rp, rb).items():
print(name, round(value, 4))Because the portfolio was constructed with an exact relationship, the output is clean. Beta is 1.2, the monthly alpha is 0.001, the annualized alpha is 0.012 and R-squared is 1.0. Real data never fits this well. Real residuals are non-zero, and R-squared is below 1.
Choosing the risk-free rate
Pass rf as a rate for the same period as your returns. A 4% annual rate is roughly 0.33% per month. If you pass an annual rate with monthly returns, the excess returns are wrong by an order of magnitude.
When the risk-free rate is small and stable, setting rf=0 changes beta very little. It does shift alpha, because the portfolio and benchmark both carry the cash return in their raw numbers. Use the same convention every time you report, and state it.
Reading alpha with care
A positive alpha figure is an estimate with error. Several things can make it misleading:
- Short samples. With 12 or 24 monthly observations, the standard error of alpha is large. A t-statistic of alpha (the estimate divided by its standard error) below about 2 means the figure is hard to distinguish from luck.
- Low R-squared. If the benchmark explains little of the portfolio's movement, beta is poorly measured and the "alpha" mostly reflects exposure the benchmark does not capture.
- Wrong benchmark. A small-cap value portfolio measured against a large-cap growth index shows positive alpha simply because small-cap value earned a premium over that period. The alpha belongs to a style exposure, not to skill.
- Unstable beta. Beta changes when the portfolio's holdings change or when markets move between regimes. A beta estimated over five years may not describe today's portfolio.
- Return frequency. Betas from daily, weekly and monthly returns differ, particularly for thinly traded holdings whose prices update late. Choose one frequency and keep it.
Beta versus tracking error
Beta and tracking error both describe risk relative to a benchmark, but they answer different questions. Beta says how much the portfolio moves with the benchmark. Tracking error says how much the active return varies. A portfolio with beta 1.0 can have high tracking error if it holds very different stocks that happen to move in the same direction on average. A portfolio with a beta of 0.5 can have a modest tracking error if it holds the benchmark's stocks plus cash. Report both.
Using beta in practice
Beta supports three common decisions:
- Expected moves. If the benchmark falls 10% and the beta is 0.8, you would expect the portfolio to fall about 8% before alpha and residual effects. This is a rough guide, not a guarantee.
- Fair comparison. A fund with beta 1.3 that beats its benchmark in a rising market has not necessarily done well. Compare it to the return expected from its beta.
- Hedging or sizing. If you want to remove benchmark exposure, a position that offsets beta times the portfolio value in the benchmark is the usual starting point.
Common errors
- Regressing raw returns instead of excess returns, then comparing to results that use excess returns.
- Mixing return frequencies, for example monthly portfolio returns with daily benchmark returns.
- Using population variance in one place and sample variance in another, so beta is off by a factor of
n / (n - 1). - Annualizing alpha by multiplying a monthly figure by 12 and then comparing it to a compounded annual active return. The two are close but not equal.
- Reporting alpha without the sample length, R-squared or the benchmark used.
Exercise
A portfolio has a beta of 1.2 against its benchmark. Over a year the risk-free rate was 2%, the benchmark returned 8%, and the portfolio returned 11%. What return was expected from the portfolio's beta, and what was the alpha?
Show answer
The expected return is the risk-free rate plus beta times the benchmark excess return: 2% + 1.2 × (8% - 2%) = 2% + 7.2% = 9.2%. Alpha is the actual return minus the expected return: 11% - 9.2% = 1.8%. The 3-point active return (11% - 8%) is therefore partly explained by extra benchmark exposure, and 1.8 points are left over as alpha.
Exercise
A portfolio's beta is 0.8, and the benchmark falls 10% in a month in which the risk-free rate is effectively 0%. Ignoring alpha and residual, what fall do you expect in the portfolio? Name one reason the real result could differ.
Show answer
The expected fall is 0.8 × -10% = -8%. The real result could differ because beta is estimated from past data and may have changed, because the residual (stock-specific effects) is not zero in any single month, or because alpha is not exactly zero.