Cross-Validation for Return Prediction With Overlapping Labels
Last updated: November 29, 2026
Quick Overview
You train a model to predict 5-day forward returns from daily features. Explain why standard k-fold cross-validation gives misleading results and design a validation scheme that does not leak information.
Voleon
November 29, 20260
0
0 solved
You train a model to predict 5-day forward returns from daily features. Explain why standard k-fold cross-validation gives misleading results and design a validation scheme that does not leak information.
Correct validation of models on financial time series is a core skill for ML roles at Voleon, where leakage can make a worthless model look excellent. The interviewer checks understanding of serial dependence, label overlap, purging and embargo, and how to keep hyperparameter search honest.
What the Interviewer Expects
- Explain serial correlation and nonstationarity in financial data
- Identify leakage from overlapping forward-return labels
- Describe walk-forward or purged k-fold validation
- Add an embargo after each test period
- Keep a final untouched holdout and count trials
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 large should the purge and embargo windows be?
- Walk-forward versus purged k-fold: when would you choose each?
- How would you validate a model retrained every month?
- How do you account for the number of hyperparameter settings you tried?
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
Each sample is (date t, stock), features known at the close of t, label = return from t+1 to t+5. So the labels of samples on days t and t+1 share four days of returns....
Approach
Random k-fold puts day t in training and day t+1 in test. Their labels overlap, so the model effectively sees part of the test target, and features like rolling volatility are nearly identical on adja...