Sub topic 7
What missing the best days costs
This chapter assumes you know how compounding works and what a drawdown is. You should also know that a few days account for a large share of long-run stock returns. Here you measure how much a handful of missed days changes the ending value of an investment. You also learn where that measurement misleads.
The claim being tested
Market timing means leaving the market before expected falls and returning before expected rises. If you are out of the market on the wrong days, you earn nothing on them. The "best days" argument asks how much those missed days matter.
The argument has three steps:
- Long-run return is the product of many daily returns.
- A few days have very large gains.
- Removing those days removes a disproportionate share of the total.
Compounding makes the effect strong. Because daily factors multiply, each missed gain removes its factor from the whole product. The missed day's size and the length of the holding period do not change this.
A simulation you can run
The code below generates ten years of synthetic daily returns. The mean is 0.04% per day and the standard deviation is 1%. It then removes the best 0, 5, 10 and 20 days and compounds what is left. The data is made up, so the numbers illustrate the mechanism. They are not market history.
import random
random.seed(42)
days = 252 * 10
returns = [random.gauss(0.0004, 0.01) for _ in range(days)]
def growth(rs):
value = 1.0
for r in rs:
value *= 1 + r
return value
ranked = sorted(range(days), key=lambda i: returns[i], reverse=True)
for n in (0, 5, 10, 20):
missed = set(ranked[:n])
kept = [r for i, r in enumerate(returns) if i not in missed]
print(n, round(growth(kept), 2))The code works in four steps:
rankedholds the day indexes ordered from best return to worst.missedis the set of the topnindexes.keptholds every return except those days. This models an investor who is in cash, earning 0%, on exactly those days.growthmultiplies1 + racross the kept days to give the ending value of 1 unit of money.
The first line, with n = 0, is your buy-and-hold baseline. Each later line should be lower. Exact figures depend on the seed, so check your own output.
A back-of-envelope check shows why the drop is large. With a 1% daily standard deviation, the top 20 of 2,520 days (about the top 0.8%) average a gain of roughly 2.5% to 3% each. Twenty such factors compound to about 1.027^20, or roughly 1.7. Removing them divides the ending value by about that factor. Five days remove a factor of around 1.17. The estimate is approximate, but it matches the shape of the simulated output.
Reading the result correctly
Always compare each line with the baseline as a ratio. Ending values depend on the assumed mean and volatility. The ratio, ending value without the best days divided by the baseline, shows the cost.
| Days missed | What the line represents | How to read it |
|---|---|---|
| 0 | Fully invested | Baseline |
| 5 | Missed a week of the best days | Cost of a few badly timed days |
| 10 | Missed two weeks of the best days | Often cuts the gain from the whole decade by a large share |
| 20 | Missed four weeks of the best days | Can turn a good decade into a mediocre one |
Look at what the removal does to the whole gain. If the baseline ended at 2.4, the investor gained 140%. An end value of 1.4 for a fully invested decade minus 20 days would mean the gain fell from 140% to 40%. That is why published versions of this exercise sound dramatic: the percentage of lost gain is far larger than the percentage of days missed.
Why the best days are hard to dodge
Real markets differ from the simulation in ways that make the argument stronger in one respect and weaker in another.
Best days cluster near the worst days. In real data, large gains tend to occur in high-volatility periods, often close to large losses. The simulation draws each day independently, so it has no clustering. This matters because a timer who exits after a drop is out of the market during the rebound days. The sharpest recoveries often come while the news still looks bad. So the days a timer is most likely to miss are the ones that cost the most.
Real returns have fatter tails. A normal distribution understates extreme days. The best real days are often larger than the simulation's, so the real cost can be higher.
You cannot see the days in advance. The simulation removes the very best days with hindsight, and no investor can do that. A timer who is out of the market at random misses days of all sizes. This is the main limit of the argument, and the next section covers it.
What the argument does not show
A careful reader should push back on four points.
- It is one-sided. Removing the best days lowers the result. Removing the worst days raises it by a similar amount. The one-sided version suggests that all missed days hurt. A timer who sidesteps the worst days gains by the same logic.
- The best removal is unrealistic. Missing exactly the top 20 days of ten years is the worst case for a timer. A realistic timer misses a mix of good and bad days. The expected cost then depends on whether the timer's calls beat chance, which is the subject of the two-decision problem.
- It treats days as independent. If good and bad days are paired, a timer who dodges a crash may also dodge the rebound. The net result depends on whether the dodge is right more often than it is wrong.
- It ignores what the cash earned. A timer parked in cash or short-term bonds earns something. That narrows the gap.
So the honest claim is narrower than the headline. The best days are a large share of the gain, and they arrive when timing is hardest. Missing them at random costs a lot. A timer needs an edge in both exit and re-entry to come out ahead.
Connecting to the two-decision problem
A timer needs the exit right and the re-entry right. If each call is correct 60% of the time and the two are independent, both are right only 36% of the time.
p_exit_right = 0.6
p_reentry_right = 0.6
print(round(p_exit_right * p_reentry_right, 2)) # 0.36Even a timer who is 60% accurate on each call gets a full success only about one time in three. Failure on either call gives up part of the gain or takes a loss you could have avoided. A missed re-entry is the failure that the best-days simulation measures.
Combine the two ideas. The cost of a wrong re-entry is high because the best days are few and large. The odds of a right re-entry are modest because the timing is hard. Together they explain why the staying-invested default holds for most investors.
Using the simulation well
Change the code to test your own questions:
- Replace
0.0004with0.0to see the cost when the underlying mean return is zero. - Raise the standard deviation from
0.01to0.015to see how volatility raises the cost of missing days. - Run it with several seeds, such as 1, 2 and 3, and compare the ratios. This shows how much the answer varies from one random decade to another.
- Remove the worst days instead of the best, then compare the two results.
Key points
- Missing the best days costs a large share of the total gain because of compounding.
- Report the cost as a ratio to buy-and-hold, and as a share of the gain.
- Best and worst days cluster, so exiting after a fall tends to cause you to miss the rebound.
- The removal is a hindsight device. Its honest use is to show how much is at stake, not to predict what a timer will earn.
- The result is symmetric. Missing the worst days helps, which is why timing needs skill on both calls.
Exercise
A simulation shows that fully invested for ten years, 1 unit grows to 2.0. After removing the best 10 days, it grows to 1.4. By what share did the total gain fall, and why is this a bigger fall than the change in ending value suggests? Name one reason the result overstates what a real timer would lose.
Show answer
The gain fell from 1.0 (2.0 - 1.0) to 0.4 (1.4 - 1.0), a drop of 60%. The ending value fell only 30% (from 2.0 to 1.4), because the starting 1.0 is common to both. The gain is the more telling measure, since the days removed were part of the gain. The result overstates a real timer's loss because it removes exactly the top 10 days, which is a hindsight choice. A real timer would miss a mix of good and bad days, and any cash would earn some interest.