Cross-Validate a Return Forecast With Overlapping Five-Day Labels

Last updated: November 29, 2026

Quick Overview

A researcher trains a model to predict each stock's next five-day return from daily features and reports strong k-fold cross-validated accuracy. Explain why the estimate is inflated and design a validation scheme that gives an honest out-of-sample number.

Millennium
Machine Learning
Quantitative Researcher
Millennium
November 29, 2026
Quantitative Researcher
Onsite
Machine Learning
Medium

0

0

0 solved


A researcher trains a model to predict each stock's next five-day return from daily features and reports strong k-fold cross-validated accuracy. Explain why the estimate is inflated and design a validation scheme that gives an honest out-of-sample number.

Systematic pods at Millennium live or die on whether a backtested edge survives live trading, so validation hygiene for financial ML is a frequent onsite topic. The interviewer checks that you spot label overlap and serial correlation as leakage, know purging and embargo, and connect the validation design to how the model would actually be traded.

What the Interviewer Expects
  • Identifies overlapping label windows as leakage between adjacent train and test rows
  • Rejects shuffled k-fold for time series and explains why
  • Describes purging training rows whose label window overlaps the test period
  • Adds an embargo after each test fold for serially correlated features
  • Prefers walk-forward or combinatorial purged CV and reports rank IC or PnL, not accuracy
Key Topics to Cover
Purged cross-validation
Embargo
Label overlap
Walk-forward validation
Information coefficient
Multiple testing
How to Approach This
  1. Understand the bias-variance trade-off. High training accuracy but low test accuracy signals overfitting.
  2. Choose evaluation metrics carefully based on the problem. Accuracy alone is often insufficient.
  3. Feature engineering is often more impactful than model selection.
  4. Know when to use tree-based models (tabular data) vs neural networks (unstructured data).
  5. Handle class imbalance with SMOTE, class weights, or appropriate loss functions.
Possible Follow-up Questions
  • How long should the embargo be, and how would you choose it from data?
  • How do you account for having tried 300 feature sets before finding this one?
  • Why is cross-sectional rank IC a better metric than classification accuracy here?
  • How would you validate a model that is retrained daily in production?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Explore ML Interview Prep
Sample Answer
Clarify

Rows are (stock, day t). Label is return from t+1 to t+5. Features use data up to t. With shuffled 5-fold CV, a test row at day t sits next to training rows at t-2 and t+2 for the same stock whose lab...

Approach

Treat it as a leakage problem. Overlapping labels mean a training row nearly contains the test answer. Many features (moving averages, volatility) are also highly autocorrelated, so neighbouring days ...


Submit Your Answer
Markdown supported

Related Questions