A signal you cannot trade on
Regime models are popular in trading: reduce exposure when the market is stormy. But there are two ways to get the probability of a state, and only one of them is honest. Filtered probabilities use the data up to day . Smoothed probabilities use the whole sample, including days after . For describing history, for example to colour a chart of past regimes, smoothing is better. For trading it is a trap: on the day you must decide, the future days are not available, so a rule built on trades on information from the future. This is the look-ahead trap.
The honest recipe is to look one step ahead from what you know. After the close of day you have the filtered probabilities . The predicted state probabilities for tomorrow are : move the belief one step with the transition matrix. Then decide tomorrow's exposure from these numbers and apply it to tomorrow's return. Predicted probabilities slowly forget today and drift toward the stationary distribution. One more source of cheating is easy to miss: fitting the model's numbers on the whole sample also leaks the future, so a careful test refits on past data only and rolls forward.
- Filtered uses data up to today. Smoothed also uses later days and is for describing the past.
- Honest signal: predict tomorrow with and apply it to tomorrow's return.
- Also leaks the future: Viterbi paths and model numbers fitted on the whole sample. Refit on past data only.
Lab · what's graded
- Tomorrow's chance of stormy15 pts
- The day after tomorrow15 pts
- Where predictions drift10 pts
- How much the future inflates10 pts
- Which signals use the future15 pts
- An honest regime backtest10 pts
- Match the vocabulary10 pts
- Why the smoothed backtest looks too good15 pts