Sub topic 1
Returns and compounding: the baseline
Prerequisites
This chapter assumes you know what stocks, index funds and bonds are, that you can turn a percentage return into a dollar amount, and that you can read a short Python snippet. Compounding means each period's return is earned on the previous total, not only on the original amount.
Returns and compounding
A return is the gain or loss on an investment over a period, expressed as a percentage. If 100 grows to 110, the return is 10%. Growth from 100 to 110 to 121 is two years of 10%, for a total gain of 21%, not 20%.
Because each year multiplies the last, a bad year reduces the base that later years compound on. The order of returns matters as much as their average.
Volatility and drawdowns
Volatility is how much an investment's value swings over time, usually measured as the standard deviation of its returns. A drawdown is the fall from a previous peak to a later low. The maximum drawdown is the largest such fall over a period.
Drawdowns are normal. This function measures the maximum drawdown of a series of values:
def max_drawdown(values):
peak = values[0]
worst = 0.0
for v in values:
peak = max(peak, v)
worst = min(worst, v / peak - 1)
return worst
print(max_drawdown([100, 120, 90, 110, 130, 104])) # -0.25The output of -0.25 means the value fell 25% from its peak of 120 to its low of 90.
What market timing means
Market timing is moving money out of an investment before prices fall and back in before they rise. It requires deciding when to act, not only what to own.
Why forecasting markets is difficult
Short-term price moves depend on news, earnings and investor sentiment, and few people predict these reliably. Many professional forecasters are wrong about direction more often than right over long periods. A forecast that is right 60% of the time can still lose money once trading costs are included.
Timing needs two right decisions
A timing strategy needs an exit decision (when to sell) and a re-entry decision (when to buy back). Both must be right. If each call is right 60% of the time and the calls 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.36Exercise
If the exit call is right 70% of the time and the re-entry call is right 50% of the time, independently, how often are both right?
Show answer
0.7 × 0.5 = 0.35, so both calls are right 35% of the time.