Chapter 6 Β· Section 2 practice
Forecast Benchmarks and Walk-forward Learning
These questions review the examples in the companion slides. Choose an answer, then check the explanation.
Question 1
Which metric is unusable for forecasting minute-by-minute price changes?
- MAE β absolute errors are not differentiable
- RMSE β it over-penalises large errors
- MAPE β it divides by actual values that are near or exactly zero
- Directional accuracy β the sign of a change is meaningless
Question 2
Target is y = r (todayβs return). A colleague builds X[βstd21β] = r.rolling(21).std() with no shift. What is wrong?
- Nothing β volatility is a legitimate feature
- The window at day \(t\) contains \(r_t\) itself: the target leaks into the feature
- Rolling std needs at least 60 days to be stable
- The feature is non-stationary
Question 3
Your LSTM beats the GBM by 4 % accuracy in-sample. What do you check first?
- Increase the hidden size β the LSTM is under-fitting
- Walk-forward out-of-sample on the same features and folds, plus a leakage audit of the sequence windows
- Switch the loss from MSE to directional accuracy
- Add more epochs