Interview practice question
Forecasting model with leaking lag features
Machine Learning · Feature Engineering · Intermediate
A demand forecast for 14 days ahead uses "sales yesterday" as a feature and scores very well offline. What's wrong?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- At forecast time, yesterday's sales for day 14 aren't known.
- Lags must respect the forecast horizon.
- Use lags of at least 14 days, or recursive/direct strategies.
- Validate with proper backtesting mimicking production.
- Expect lower but honest accuracy.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.