Best window length for a moving-average forecast
You forecast a slowly drifting quantity (say, a rolling mean that creeps up by per step) using the average of the last observations. Each observation carries noise of variance , and the drift is per step. A window of length has forecast error
where the first term is sampling noise and the second is the bias from averaging stale, out-of-date points.
What window length minimizes the forecast MSE?
Your answer
Solving needs a free account
Answers, streaks and solutions unlock when you are signed in. Reading the question and the hint stays free.
Discussion
Sign in to join the discussion · reading is open to everyone
💡 Discussion rules
- No full solutions here. Hints and approaches only.
- Complexity, edge cases and intuition are the point.
- Interview experiences are welcome. Respect your NDAs.
Loading discussion…
Learn the concepts
The theory behind this question.
Related questions
Optimal window when the data is quietOptimal window when the data is noisyHow the best window scales with noiseBack out the drift from the chosen windowBlend an unbiased noisy forecast with a biased sharp one
All questions →