Validate a Short-Horizon Price Model Without Lookahead Bias
Last updated: November 29, 2026
Quick Overview
You trained a model that predicts the 10-second mid-price move of an underlying from order book features and it shows very high accuracy in random k-fold cross-validation. Explain why that result is likely wrong and how you would validate it properly.
Akuna Capital
November 29, 20260
0
0 solved
You trained a model that predicts the 10-second mid-price move of an underlying from order book features and it shows very high accuracy in random k-fold cross-validation. Explain why that result is likely wrong and how you would validate it properly.
Akuna Capital's quant researchers build short-horizon signals that feed quoting and hedging, where leakage is the most common way a model looks great and then loses money. The interviewer checks that you can name specific leakage paths, design time-aware validation with purging, and judge a model by trading value.
What the Interviewer Expects
- Explain why random k-fold leaks with overlapping, autocorrelated samples
- Identify feature leakage, such as features computed with future data
- Propose walk-forward validation with purging and an embargo
- Evaluate with trading-relevant metrics after costs
- Check stability across regimes and symbols
Key Topics to Cover
How to Approach This
- Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
- Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
- Feature engineering is often more impactful than model selection.
- Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
- Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
- How long should the embargo be?
- How would you detect a feature that uses future information by accident?
- The model is accurate but loses money after costs. Why might that be?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Explore ML Interview PrepSample Answer
Clarify
What is one sample: every tick or every second? How are labels defined (mid change over the next 10 s)? How are features normalized (for example, z-scored with what window)? What is the trading use: s...
Approach
Assume leakage until proven otherwise. Random k-fold on time series places nearly identical neighbors in both train and test, and overlapping label windows mean a training label can contain the test s...