Sub topic 7
Tracking error: how far you drift from the benchmark
This chapter assumes you can compute period returns and cumulative returns, and that you know sample standard deviation and covariance. You should also know what active return is: the portfolio return minus the benchmark return for the same period. The Python examples use numpy.
What tracking error measures
Active return tells you how far ahead or behind the benchmark you were in one period. It does not tell you how consistent that gap was. Two portfolios can both average +2% a year over the benchmark. One gets there by beating it by about 2% every year. The other gets there by swinging between +12% and -8%.
Tracking error is the standard deviation of the active returns over time. It measures how much the portfolio's return path deviates from the benchmark's. It is also called active risk.
- Low tracking error means the portfolio moves closely with the benchmark.
- High tracking error means the portfolio often differs a lot from the benchmark, in either direction.
Tracking error says nothing about whether the differences were good. A portfolio that trails by exactly 3% every period has a tracking error of zero. A portfolio that beats the benchmark by large and variable amounts has a high one.
The formula
For active returns at = rp,t − r_b,t over T periods:
- Compute the mean active return.
- Compute the sample standard deviation of the active returns, with T − 1 in the denominator.
- Annualize by multiplying by the square root of the number of periods per year.
For monthly data, annualized tracking error = std(a, ddof=1) × √12. For weekly data use √52, and for daily data use √252.
The square-root scaling assumes active returns are roughly independent from one period to the next, so that variances add across periods. If active returns are autocorrelated, for example because of a slowly moving position, the square-root rule understates or overstates the true annual figure.
A worked example
The function below computes tracking error from monthly returns. It is the first part of the relative-statistics function used later in this tutorial.
import numpy as np
def tracking_error(rp, rb, periods_per_year=12):
rp, rb = np.asarray(rp, float), np.asarray(rb, float)
active = rp - rb
return active.std(ddof=1) * np.sqrt(periods_per_year)
# Twelve monthly returns as decimals.
portfolio = [0.021, -0.012, 0.034, 0.008, -0.027, 0.015,
0.019, -0.004, 0.026, -0.018, 0.011, 0.023]
benchmark = [0.018, -0.010, 0.029, 0.010, -0.022, 0.012,
0.017, -0.006, 0.022, -0.015, 0.010, 0.019]
active = np.array(portfolio) - np.array(benchmark)
print("monthly active returns:", np.round(active, 4))
print("mean monthly active:", round(active.mean(), 5))
print("annualized tracking error:", round(tracking_error(portfolio, benchmark), 4))The active returns here are small and mostly positive, between about -0.002 and +0.005. The monthly standard deviation is about 0.0021, so the annualized tracking error is about 0.0074, or roughly 0.7%. This portfolio stays very close to its benchmark.
Reading the number
Tracking error is a statistic about the spread of active returns. A common reading assumes active returns are approximately normally distributed. Under that assumption, about two thirds of annual active returns should fall within one tracking error of the mean active return, and about 95% within two.
For example, suppose a fund has an annualized tracking error of 4% and an average active return of 1%. In a typical year, you would expect the active return to land between -3% and +5% about two thirds of the time. A year at -6% would not be surprising evidence that something broke. It would be a bit more than a one-sigma event in the bad direction.
Typical ranges depend on the strategy. These are rough conventions, not rules:
| Style | Typical annualized tracking error |
|---|---|
| Index fund or ETF | 0.01% to 0.5% |
| Enhanced index | 0.5% to 2% |
| Diversified active equity | 2% to 6% |
| Concentrated active equity | 6% or more |
A fund's stated mandate should match its number. A "closet indexer" is a fund that charges active fees but has a tracking error near the low end of the table. Its holdings are so close to the benchmark that it cannot add much value to cover its costs.
Ex-post and ex-ante tracking error
There are two ways to get the number.
- Ex-post (realized) tracking error uses historical active returns, as in the code above. It describes what happened.
- Ex-ante (forecast) tracking error uses current holdings and a risk model to estimate what active risk the portfolio carries going forward. It is built from active weights (portfolio weight minus benchmark weight for each holding) and a covariance matrix of asset returns.
The ex-ante form for active weights w and covariance matrix Σ is sqrt(wᵀ Σ w). It answers a different question. If a manager moved from a diversified book to a few large bets last month, the ex-post number will lag behind. The ex-ante number reflects the change immediately.
import numpy as np
# Active weights versus the benchmark for three assets (sum to zero).
w_active = np.array([0.05, -0.03, -0.02])
# Annual covariance matrix of the three asset returns.
cov = np.array([
[0.0400, 0.0120, 0.0080],
[0.0120, 0.0225, 0.0060],
[0.0080, 0.0060, 0.0100],
])
ex_ante_te = np.sqrt(w_active @ cov @ w_active)
print(round(ex_ante_te, 4))The result is about 0.0143, or 1.4% a year. Notice that the covariance matrix drives the answer. Active bets in assets that move together partly offset each other when the signs of the active weights differ.
Tracking error and the information ratio
Tracking error is the denominator of the information ratio, which the next chapters cover. The information ratio divides annualized active return by annualized tracking error. This is why tracking error matters beyond description: a manager with +2% active return and 2% tracking error is delivering the same return per unit of active risk as one with +4% and 4%.
The diagram shows how the pieces connect.
Common errors
- Using the standard deviation of portfolio returns. Tracking error is the standard deviation of the difference between portfolio and benchmark returns, not of the portfolio's own returns. A volatile portfolio that tracks a volatile benchmark closely has low tracking error.
- Mixing frequencies. Computing monthly active returns and then multiplying by √252 gives a meaningless number. Match the scaling factor to the data frequency.
- Forgetting ddof=1. numpy's
stddefaults to the population formula (ddof=0). For a sample of returns, passddof=1. With only 12 observations the difference is about 4%, which is enough to matter. - Using price return for one side and total return for the other. A missing dividend appears as a persistent negative active return, which shows up as a drift in the mean rather than in the standard deviation. The tracking error can look fine while the active return is biased. Compare like with like.
- Using too few observations. With 12 monthly points the estimate is noisy. Three to five years of monthly data (36 to 60 points) is a more common basis for reporting.
- Treating tracking error as a quality score. It measures how different the portfolio is. It does not say whether the difference paid off.
Using tracking error in practice
Many mandates set a tracking error budget, for example "target 3% to 5% annualized." Reviewing realized tracking error against that budget answers a governance question: is the manager taking the amount of active risk the client agreed to?
- If realized tracking error is well below the budget, the portfolio may be hugging the benchmark.
- If it is well above, the portfolio may have drifted from its mandate, or a few positions have grown large.
- If it rises suddenly, check for a large new position, a sector tilt, a currency exposure, or a change in the benchmark itself.
A rolling window, such as 36 months, shows how active risk changes over time. A single full-period number can hide a shift in strategy.
Exercise
A portfolio and its benchmark have these quarterly returns (decimals). Portfolio: 0.05, 0.02, -0.03, 0.04. Benchmark: 0.04, 0.03, -0.02, 0.03. Compute the quarterly active returns, then the annualized tracking error using the sample standard deviation. Then say what the result tells you about the portfolio's consistency relative to its benchmark.
Show answer
Active returns are 0.01, -0.01, -0.01, 0.01. The mean is 0. The sample variance is (4 × 0.0001) / 3 = 0.000133, so the sample standard deviation is about 0.01155. Annualizing with √4 = 2 gives a tracking error of about 0.0231, or 2.3%. The portfolio's yearly active return would typically fall within about ±2.3% of its average active return in roughly two thirds of years, which is moderate active risk. The mean active return is zero, so the portfolio took active risk in this sample without earning any extra return.
Exercise
Fund X trails its benchmark by exactly 0.05% every month for five years. What is its tracking error, and why is that figure misleading as a measure of quality?
Show answer
The active returns are all -0.0005, so their standard deviation is 0 and the tracking error is 0. The figure is misleading because tracking error measures only the variability of the gap, not its size or sign. The fund consistently loses 0.05% a month, about 0.6% a year, and the zero tracking error hides this. You need the mean active return as well.