Quant interview toolkit · forecast calibration

A risk forecast that can be checked one percentile at a time

A risk model predicts a full distribution for tomorrow’s return, not just a volatility number. After tomorrow happens, how can you check the whole distribution? Ask what percentile the realized return occupied in yesterday’s forecast. If the forecasts are conditionally right, those percentiles behave like draws from a uniform distribution.

Map outcomes through their forecast CDF

At time tt, let Ft(y)F_t(y) be the continuous predictive cumulative distribution for outcome Yt+1Y_{t+1} using information available then. After the outcome is observed, compute the probability integral transform, or PIT,

Ut+1=Ft(Yt+1).U_{t+1}=F_t(Y_{t+1}).

If FtF_t equals the true conditional CDF, then for any uu between zero and one,

P(Ut+1≤u∣It)=P(Yt+1≤Ft−1(u)∣It)=u,P(U_{t+1}\le u\mid\mathcal I_t) =P(Y_{t+1}\le F_t^{-1}(u)\mid\mathcal I_t) =u,

assuming a continuous, strictly increasing CDF for this simple derivation. Thus the realized percentile is conditionally uniform. A 10th-percentile loss should be crossed about 10% of the time among comparable forecasts. The PIT compresses forecasts with different means and scales onto one common percentile axis.

This is a calibration property, not a profit statement. A distribution can be statistically well calibrated but provide no trade after spreads and risk limits. Conversely, a strategy might make money in a narrow decision region even if the full forecast distribution is imperfect. State whether you are evaluating the distribution, a particular tail, or a trading rule.

Read the histogram carefully

Collect many chronological PIT values and divide [0,1][0,1] into equal-width bins. Under a suitable correct model, their histogram should be roughly flat. Different shapes point to different problems:

  • Too many values near zero and one suggest outcomes land in the forecast tails too often: the forecast may be too narrow or its tails too thin.
  • Too many near one half suggest the forecast may be too wide: realized outcomes stay near its center more often than predicted.
  • More values near one than near zero can indicate a location error, asymmetry error, or drift mismatch.

These are diagnostics, not unique diagnoses. A changing mean can also make a pooled histogram look odd, and sampling noise makes every finite histogram uneven. Use a histogram alongside quantile coverage by time period, asset, volatility state and other information available when the forecast was made.

Suppose a model always forecasts N(0,1)N(0,1) but the true outcomes are N(0,22)N(0,2^2). The model’s 99% upper quantile is about 2.326, but under the true distribution the chance of exceeding that threshold is 1−Φ(2.326/2)≈12.2%1-\Phi(2.326/2)\approx12.2\%, not 1%. The PIT values pile toward zero and one. This is a deliberately extreme scale error to make the tail failure visible.

A flat histogram is not enough

Marginal uniformity does not prove that forecasts condition correctly on available information. Imagine a model that is too narrow on calm days and too wide on volatile days in a way that cancels in the pooled histogram. Conditional coverage is still wrong where a risk limit matters. Split diagnostics by the regime variables known at forecast time. Check whether extreme PIT values cluster in time. A series of uniform marginal PITs can remain serially dependent if the model misses evolving volatility.

For a specific quantile level α\alpha, define an exceedance indicator It=1{Yt+1>Ft−1(α)}I_t=1\{Y_{t+1}>F_t^{-1}(\alpha)\}. Under a correct conditional forecast, its conditional expectation is 1−α1-\alpha. Count exceedances and examine clustering; VaR coverage and independence tests focus on that narrower tail question. A full PIT plot spreads attention across the distribution; it can underemphasize a small number of economically important tail failures.

Handle discrete outcomes and overlapping horizons

For a discrete outcome, a standard CDF has jumps. Evaluating F(Y)F(Y) then does not give an ordinary uniform variable, even for a perfect forecast. One option is a randomized PIT using F(Y−)+V[F(Y)−F(Y−)]F(Y^-)+V[F(Y)-F(Y^-)] with independent V∼Uniform⁡(0,1)V\sim\operatorname{Uniform}(0,1). If randomization is undesirable for a dashboard, inspect discrete calibration directly by predicted probability buckets and observed frequencies. Do not label a stepped PIT histogram as model failure without accounting for discreteness.

Forecasts for overlapping horizons create another issue. Daily updates of a one-month return distribution share much of the same realized path, so adjacent PIT values are dependent even under useful forecasting rules. A naive independent-uniform significance test can reject too often. Align forecast timestamps and outcome windows, use a suitable dependence-aware evaluation, and report the number of effectively distinct periods. The same discipline appears in overlapping-return standard errors.

The most important implementation rule is chronological: save the entire predictive CDF or its quantiles at the time the forecast is made. Reconstructing yesterday’s forecast with a model refit on today’s data gives the past an unfair advantage. A meaningful PIT history is a sequence of decisions that could actually have been made.

When a model stores only a few quantiles, a full PIT may not be recoverable without an interpolation rule. In that case, evaluate the quantile levels that were actually saved, with their declared conventions for ties and threshold crossing. A smooth-looking interpolated histogram could mostly reflect the interpolation method. Preserve the raw forecast objects and model version alongside outcomes so a later reviewer can repeat the calculation exactly.

See how a wrong volatility forecast bends percentiles

The histogram uses 5,000 fixed simulated normal draws. At ratio 1, the ideal PIT distribution is uniform.

Practice

PercentileA model assigned yesterday's realized return a predictive CDF value of 0.03. What does that number mean?
Show answer

The realized return fell at the model’s 3rd percentile: the forecast assigned about 3% probability to outcomes at or below it. One such event is possible under a good model; repeated low-percentile outcomes indicate possible left-tail misspecification.

Discrete eventA perfect forecast says a binary event occurs with probability 20%. Should the ordinary CDF evaluated at each realized binary outcome be uniform?
Show answer

No. The binary CDF has jumps, so the ordinary transform takes only a few values. Use a randomized PIT or compare forecast probabilities with observed event frequencies.