Quant interview toolkit · changing regimes

When more data makes a forecast worse

A colleague says the thousand-observation forecast must be more reliable than the hundred-observation forecast. Usually a larger sample reduces noise. But what if nine hundred observations came from a market that no longer exists? The larger estimate can be wonderfully precise about the wrong probability.

One thousand trials across two regimes

Consider a toy binary event. For the first 900 independent trials its probability is 70%. It then changes to 30% for the next 100 trials and, for this example, stays at 30% for the next trial we want to forecast. The change point and probabilities are given by the thought experiment; a real forecaster would have to infer them.

PeriodTrialsEvent probabilityExpected events
Old regime90070%630
Recent regime10030%30
Pooled history1,000Mixed660

The expected counts are 630 events in the old regime and 30 in the recent regime. A pooled historical rate estimates

p^1000=630+301000=0.66,\widehat p_{1000}=\frac{630+30}{1000}=0.66,

while the recent-window estimate is p^100=30/100=0.30\widehat p_{100}=30/100=0.30. Those counts are an illustrative outcome at the expected counts, not a claim that every sample has exactly those values. For the next event, the recent estimate is centered on the current probability; the pooled estimate is centered 36 percentage points too high.

Put noise and stale-data bias on the same scale

For an estimator p^\widehat p of the current probability p∗=0.30p_*=0.30,

E[(p^−p∗)2]=Var⁡(p^)+(E[p^]−p∗)2.E[(\widehat p-p_*)^2] =\operatorname{Var}(\widehat p) +\bigl(E[\widehat p]-p_*\bigr)^2.

Each Bernoulli trial in either regime has variance 0.7(0.3)=0.210.7(0.3)=0.21 here. Independence makes the variance of the pooled proportion 1000(0.21)/10002=0.000211000(0.21)/1000^2=0.00021. Its squared bias relative to the current probability is (0.66−0.30)2=0.1296(0.66-0.30)^2=0.1296, so its mean squared error is 0.12981. The recent estimator has zero bias under this setup and variance 0.21/100=0.00210.21/100=0.0021. The smaller sample has ten times the sampling variance, yet about 62 times lower mean squared error for the next-trial probability.

If the event probability had stayed at 30% for all thousand trials, the pooled estimator would have no bias and one tenth the variance of the hundred-trial estimator. A short window is useful here because the regime changed, not because short windows are inherently better.

What a real forecast has to solve

In practice you do not know whether a change occurred or whether a noisy recent run merely looks different. A very short window reacts quickly but jumps around. A long window is stable but can lag. A disciplined comparison declares candidate windows or adaptation rules, evaluates them on subsequent observations in time order, and reports both probability calibration and the decision metric they support.

Choosing the window that looks best on the very outcomes used to announce the regime change reintroduces selection bias. Online change-point detection provides one formal way to express uncertainty about when a regime shifted. Combining volatility forecasts shows another way to avoid betting every decision on one window.

Add observations from an old regime

The recent sample always has 100 independent trials. The next trial follows the current regime.

Practice

Stable worldIf all 1,000 trials instead have the same event probability 30%, what is the variance of the full-sample event-rate estimate?
Show answer

0.3(0.7)/1000=0.000210.3(0.7)/1000=0.00021. The last-100 estimate has variance 0.00210.0021, ten times as large. With a stable probability, the extra observations help.

Changing worldWhy is the pooled estimate biased for the next trial even though each historical event is measured without error?
Show answer

It averages two different underlying probabilities. Its expected value is 0.9(0.70)+0.1(0.30)=0.660.9(0.70)+0.1(0.30)=0.66, while the next trial’s probability is 0.30 under the stated regime model. Accurate observations of an old regime can still mislead a forecast of a new one.