# What is Tracking Error

Tracking error is a measure of how closely a portfolio follows its benchmark. A tracking error of zero means that the portfolio exactly follows its benchmark. The benchmark could be an index such as S&P 500 index. Let’s say the S&P 500 index provides a return of 6% and your portfolio tracking the S&P 500 index earns 4% returns. The tracking error is calculated as follows:

**Tracking Error = Rp - Ri**

Where:

p = portfolio

i = index or benchmark

In our example, the tracking error will be:

Tracking error = 4% - 6% = -2%

Morningstar defines tracking error as trailing returns.

**Tracking Risk:** Tracking error sometimes also refers to tracking risk, which is the standard deviation of returns of the portfolio to benchmark returns over a period of time. This is a more commonly used method of calculating tracking error.

Where n is the number of periods over which the returns are tracked.

Tracking error is an important measure for investors to know how well the portfolio is replicating the index. A low tracking error indicates the portfolio is closely following the benchmark. A high tracking error means the portfolio is moving away from the benchmark index. Investors desire a low tracking error.

## Data Science in Finance: 9-Book Bundle

Master R and Python for financial data science with our comprehensive bundle of 9 ebooks.

### What's Included:

- Getting Started with R
- R Programming for Data Science
- Data Visualization with R
- Financial Time Series Analysis with R
- Quantitative Trading Strategies with R
- Derivatives with R
- Credit Risk Modelling With R
- Python for Data Science
- Machine Learning in Finance using Python

Each book includes PDFs, explanations, instructions, data files, and R code for all examples.

Get the Bundle for $39 (Regular $57)## Free Guides - Getting Started with R and Python

Enter your name and email address below and we will email you the guides for R programming and Python.