01Chapter 1: Why raw returns are not enoughA portfolio return of 9% tells you how much money you made. It does not tell you whether that was good. This chapter explains why a return only becomes useful when you compare it with a reference, called a benchmark, and what that comparison can and cannot tell you.6 min read
02Chapter 2: Choosing a benchmark that fits your portfolioThis chapter assumes you know basic investing vocabulary (stocks, funds, indexes, dividends), how percentage returns compound, and what a mean and a standard deviation are. The Python examples are optional and use pandas.6 min read
03Chapter 3: Measuring returns: price return versus total returnThis chapter assumes you know what dividends, indexes and funds are, and that you can compute a percentage return and compound returns over several periods. A basic grasp of pandas helps with the code, but you can follow the ideas without it.6 min read
04Chapter 4: Cumulative returns and active returnThis chapter assumes you know how to compute a percentage return, how compounding works, and how to read basic pandas code. It also assumes you have already chosen a benchmark that fits the portfolio, as covered earlier in this tutorial. Here you turn two series of values into period returns, compou6 min read
05Chapter 5: Time-weighted return when cash moves in and outThis chapter assumes you know how to compute a period return and compound returns, and that you have read the earlier chapters on benchmarks and on cumulative and active return. The Python examples use only the standard library.6 min read
06Chapter 6: Money-weighted return and your own timingThis chapter assumes you can compute a time-weighted return (TWR) by linking sub-period returns, and that you know what a discount rate is. It builds on the previous chapter, where cash flows were removed from the measurement on purpose. Here they go back in, because they are part of what you experi6 min read
07Chapter 7: Tracking error: how far you drift from the benchmarkThis 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.6 min read
08Chapter 8: Beta and alphaThis 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.5 min read
09Chapter 9: Information ratio: active return per unit of active riskThis chapter assumes you can already compute period returns and active returns against a benchmark, and that you know tracking error from the previous chapter. It also assumes you are comfortable with sample mean and standard deviation. The code uses numpy.6 min read
10Chapter 10: Risk-adjusted return with the Sharpe ratioThis chapter assumes you can already compute period and cumulative returns, know the difference between price and total return, and are comfortable with mean, standard deviation and covariance. The earlier chapters on active return, tracking error and the information ratio are useful background, bec6 min read
11Chapter 11: Drawdowns and up/down captureThis chapter assumes you can compute period and cumulative returns and an active return, and that you know what beta means. It also assumes you are comfortable with the sample statistics used in the tracking error chapter. The code uses pandas and numpy. It works with the returns you already know ho6 min read
12Chapter 12: Attribution: allocation, selection and interactionEarlier chapters showed how to compute active return, the portfolio return minus the benchmark return. Active return says how far ahead or behind you were. It doesn't say why. This chapter splits one period's active return into three parts, using the Brinson-Fachler method.6 min read
13Chapter 13: Pitfalls: fees, dividends, timing, currency and survivorshipThis chapter assumes you can already compute period returns, cumulative returns and active return. It also assumes you know the difference between price return and total return, and that you have met tracking error and alpha. Here the focus is on the mistakes that make a correct-looking benchmark co7 min read
14Chapter 14: Reporting and reviewing benchmark-relative resultsThis chapter assumes you can already compute cumulative and active returns, time-weighted returns, tracking error, beta, alpha, the information ratio, drawdowns and a basic attribution. It does not introduce new formulas. It covers how to combine those numbers into a periodic report, read them toget6 min read