Building Inputs From Earlier Days

A prediction row needs information available before its target. We will turn one ordered record into rows of earlier readings without accidentally including the answer.

12 sections · 4 questions · 3 coding challenges

1 / 12

Turning Delayed Effects Into Predictors

BOTIE

Many processes respond after a delay: an earlier input can influence a later outcome. Dynamic regression includes lagged predictors to represent that timing. The important modelling choice is which past information was available and which delay it could plausibly have.

Our first example uses earlier demand to predict later demand. This constructs a supervised table from a time record; it does not establish that an earlier reading causes the next one.

Sources for this history