SpinTheMic
Pro

Explain it in 60 seconds

Lag and rolling window features

Machine Learning · Feature Engineering · Intermediate

What are lag and rolling window features, and how do you create them safely?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Lags: value from previous periods (sales yesterday, last week).
  • Rolling stats: mean, sum, std over windows.
  • Capture trends, momentum and seasonality.
  • Shift by the forecast horizon to avoid leakage.
  • Compute per entity with proper time ordering.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics