Day 30 — Logs add across time, simple returns add across assets
Saturday, 5 September 2026 · Week 5 of 52 · Returns and noise · Study day · 60 min
You cannot use one convention for both, and the day you forget that is the day a portfolio return is silently wrong by an amount too small to notice and too large to ignore.
What you should be able to do tonight
- Give the one line of algebra showing that log returns aggregate over time, and the one line showing simple returns aggregate over assets.
- Say what goes wrong, numerically, if you build a portfolio by weighting log returns.
Tasks 60 min
20 min Do both derivations on paper, in four lines total. Time aggregation is the telescoping product of gross returns. Cross-sectional aggregation is the weighted sum of gross returns minus one. Then say why no convention aggregates in both directions.
30 min Measure the error you would have made: build your ten-name equal-weighted portfolio the wrong way, by averaging log returns, and compare its cumulative path to the correct construction over ten years. Report the terminal gap in percent. It will be small enough to have gone unnoticed and large enough to matter.
10 min Write the convention into qlib/ as a docstring rule at the top of a new returns module: prices to log returns for anything through time, gross simple returns for anything across names. You will read that docstring in week 24.
Resources
Deliverable
qlib/returns.py with the two conversion functions and the convention stated in the module docstring, plus the measured error from doing it wrongly.
Checkpoint
Show in one line why the log return of a two-asset portfolio is not the weighted average of the two log returns.
Prepare for tomorrow
Ten minutes tonight so Day 31, Sunday, 6 September 2026 starts clean. This is what the evening email sends you.
Compute the annualised mean and annualised volatility of SPY daily log returns, and of a high-volatility name such as a leveraged ETF or a small-cap. Save both pairs.
Write down the geometric mean of each. Tomorrow explains the pattern in the four numbers.
Nothing to read. Ten minutes on the numbers is enough.