Objective
"How would you predict X?" has no single right answer. The interviewer is watching whether you turn a vague question into a testable plan, start simple, and know where such projects usually go wrong. The worst answer jumps straight to a model ("I'd use a neural network"). The best answer spends the first minute defining the target and the use.
The framework
- Target and use. What exactly is predicted, over what horizon, at what time, and for what decision? "Daily volume" for an execution algorithm and for a liquidity screen are different problems with different loss functions.
- Data. What is available at prediction time, at what latency, how far back, and with what quality problems (splits, holidays, corporate actions, survivorship)?
- Baseline. The simplest credible forecast: a historical average, a seasonal profile, last value, an EWMA. Every later idea must beat it out of sample.
- Features. A short list, each with a reason. Group them: the target's own history, calendar and known events, cross-sectional or market information, alternative data.
- Model. Start linear or with a well-known structural model; move to non-linear models only if the error analysis shows structure the linear model misses.
- Validation and metric. Walk-forward, with the metric that matches the use (the loss the decision actually suffers), and comparison with the baseline.
- Risks. Regime change, look-ahead, data errors, the model's effect on the market, and what you would monitor in production.
Spend about a minute on 1–3, most of the time on 4–6, and close with 7. Narrate trade-offs: "I would try X first because it is cheap to test."
Worked example
model answer 1, predicting daily volume
"How would you predict tomorrow's trading volume for a US stock?"
Show solutionHide solution
Target and use. "I would ask what it is for. If it feeds an execution algorithm that targets a participation rate, I need tomorrow's total volume before the open, and possibly the intraday profile. Errors are asymmetric: under-forecasting volume makes the algorithm trade too large a share of the market and pay more impact, so I care about large misses and might weight under-forecasts more."
Data. Daily volume history for each stock, the event calendar (earnings dates, index rebalances, option expiries, half-days), market-wide volume, recent volatility. Point-in-time and adjusted for splits.
Baseline. Predict with the 20-day median of log volume, or an EWMA of log volume. This is robust to single spikes and hard to beat by much on ordinary days.
Features.
- Own history at several horizons: yesterday, 5-day and 60-day averages of log volume (a HAR-style structure captures persistence at different speeds).
- Calendar: day of week, month-end, quarterly option expiry, index rebalance dates (volume can be several times normal), the day before and after holidays.
- Events: an earnings date tomorrow is the single most important feature on that day; scheduled macro releases.
- Market state: yesterday's absolute return and recent realised volatility (volume rises with volatility), market-wide volume.
Model. A linear regression of log volume on these features, pooled across stocks with stock-level normalisation (each stock's log volume minus its own 60-day mean), which shares information across names. Gradient boosting on the residuals only if error analysis shows interactions, for example earnings-day effects that depend on recent volatility.
Validation and metric. Walk-forward by date. Report the mean absolute error of log volume (roughly a percentage error), broken down by ordinary days and event days, against the baseline. If the decision needs mean volume, convert with the correction above, where is the residual standard deviation in logs.
Risks. Unannounced news is unpredictable and creates the largest misses, so provide a prediction interval as well as a point forecast. Event calendars must be point-in-time: an earnings date that moved should not be known before it was announced. Structural changes (inclusion in an index, a split, a listing change) shift the level, so the normalisation window matters.
Worked example
model answer 2, predicting next-week volatility
"How would you forecast the realised volatility of an equity index over the next five trading days?"
Show solutionHide solution
Target and use. "Define the target as the sum of squared daily (or 5-minute) returns over the next five days, annualised. The use could be risk limits, position sizing or comparing against implied volatility to trade options; I will assume sizing, where proportional errors matter."
Data. Intraday prices to build daily realised variance, daily closes, the implied-volatility index, and the macro calendar.
Baseline. An EWMA of squared daily returns, or the HAR model on log realised variance:
HAR is the standard benchmark because volatility is highly persistent and its memory is captured well by daily, weekly and monthly averages.
Features beyond HAR.
- Implied volatility: it is forward-looking and often the strongest single predictor; include the gap between implied and realised volatility.
- Leverage effect: negative returns raise future volatility more than positive returns of the same size, so include the negative part of recent returns separately.
- Jumps versus diffusion: split realised variance into continuous and jump parts; jumps are less persistent.
- Scheduled events: central-bank meetings and major data releases in the forecast window.
Validation and metric. Walk-forward. Use the QLIKE loss, , alongside mean squared error: it is robust to the noise in realised variance as a proxy for true variance and penalises under-forecasting, which is what hurts a risk manager. Check calibration: does a forecast of 20% volatility deliver about 20% on average?
Risks. Volatility regimes change abruptly (a crash doubles volatility within days), so the model should adapt quickly and be stress-tested on 2008, 2020 and similar episodes. The five-day target windows overlap if you forecast every day, so standard errors on model comparisons need the HAC correction. Implied volatility contains a variance risk premium; it predicts realised volatility well but is biased upwards, so its coefficient will be below one.
Knowledge check
An interviewer asks how you would predict a company's quarterly revenue. What is the best first step?
Knowledge check
You forecast with residual standard deviation . To forecast the mean of , you should multiply by approximately:
Knowledge check
Your new volatility model beats an EWMA baseline on mean squared error but loses on QLIKE. For a risk-limit application, what do you conclude?
Key takeaways
- Define the target, horizon, timing and use before anything else; the loss function follows from the use.
- Always name a baseline and promise to beat it out of sample.
- Give a short, reasoned feature list grouped by source; prefer a simple model first.
- Validate walk-forward with a metric matched to the decision, and handle overlapping targets.
- Model skewed positive targets in logs and correct by when the mean is needed.
- Close with risks: regime change, look-ahead in event data, data errors, monitoring.
Practice problems
Finished reading?
Answer the 3 knowledge checks to complete this lesson (0 done).