Three prices, two completed labels
Take synthetic prices of 100, 103 and 101 USD per share at equally spaced observations . Each price becomes known at its own observation time. There are no distributions or corporate actions; returns below are simple price returns before costs.
| Row time | Current price | One-step lead | Forward-return label |
|---|---|---|---|
| 100 | 103 | ||
| 103 | 101 | ||
| 101 | Missing | Missing |
A model may legitimately learn from completed historical pairs of inputs and forward returns. For a nonzero starting price, the label
is aligned to the starting row so it can be matched to inputs available there. That alignment is useful for supervised learning; it does not permit using as one of those same inputs. Nor does a price-return label establish that a strategy could transact at after observing it. Feasible entry timing is a separate part of the trading rule.
The two clocks to check
- A predictor must be available by the decision time. A historical observation date is insufficient if the value was published, received or revised later.
- A target must be available by the model-fit time before that row can enter the training set. At a refit at , the row- forward return above is still unfinished.
The same row can therefore be eligible for prediction now and eligible for training only later. Sorting a dataset chronologically does not, by itself, enforce either condition.
Future-dated does not always mean unknown
A future calendar value can already be known. For example, the day of the week at the forecast horizon can be supplied to a model today. A scheduled event indicator can also be usable if its schedule was actually known then; later schedule changes must not be backfilled into the earlier information set.
A lead is not a prediction—or a leading signal
The realised lead and a forecast refer to the same future observation but play different roles. The first is the outcome; the second is an estimate made using information available at . Their difference is a forecast error once the outcome arrives.
In implementation, define the clock before shifting. One step may mean the next trading session, the next event or a fixed calendar interval. Sort within each instrument, respect missing observations, and verify which timestamps remain attached to the shifted values. A next-row lead in an irregular table is not automatically a one-day lead.
Sources
- Chris Brooks, Introductory Econometrics for Finance, second edition, Cambridge University Press, 2008, §§5.11.3–5.11.4, pp. 245–248: forecast horizons, information available at the forecast origin and unknown future regressors.
- Rob J. Hyndman and George Athanasopoulos, Forecasting: Principles and Practice, third edition, §7.6: ex-ante and ex-post forecasting, known calendar predictors and horizon-aligned predictive regression.