How much memory should an estimate have?
When the market keeps changing, an estimate needs a memory that fades. A rolling window gives equal weight to the last observations and none to older ones, so the estimate jumps when a big day enters and again when it leaves days later. An exponentially weighted estimate gives the observation days ago the weight , so the past fades smoothly. Its variance estimate needs only yesterday's value: . A fully online estimate updates with the new observation only and forgets it afterwards, for example a running mean .
The same idea runs through all three: new estimate = old estimate + gain surprise. A constant gain gives the exponential estimator. A gain of gives the plain average of all data. The Kalman filter chooses the gain by itself from the noise levels, so it is the principled version. Memory is a trade-off: a short memory follows changes quickly but is noisy, a long memory is smooth but slow. The half-life tells how many days it takes for an observation to lose half its weight, and the effective window is the equal-weight window with similar noise. The common daily choice has a half-life of days and an effective window of days.
- Same recipe: new = old + gain surprise; the gain sets the memory.
- Rolling is abrupt, exponential is smooth: a rolling window drops old data all at once, and an exponential one fades it.
- Memory is a trade-off: short memory is fast and noisy, long memory is slow and smooth.
Lab · what's graded
- An exponentially weighted update15 pts
- The half-life10 pts
- The effective window10 pts
- An old observation10 pts
- An online mean10 pts
- Which one forgets abruptly10 pts
- An online update10 pts
- Match the vocabulary10 pts
- Why exponential reacts faster15 pts