What are purging and embargo gaps in time series cross-validation, and why are they needed?

Quick Overview

Asks what purging and embargo gaps are in time series cross-validation and why overlapping labels and rolling features need them. It tests understanding of leakage between folds, how the gaps are sized, and how purged k-fold differs from walk-forward validation.

What are purging and embargo gaps in time series cross-validation, and why are they needed?

Role: Data Scientist

Category: Statistics & Math

Difficulty: hard

Interview Round: Other

What are purging and embargo gaps in time series cross-validation, and why are they needed? Assume a setting such as financial prediction, where each sample's label is computed from a window of future data and features use rolling windows. ```hint Compare time spans For each sample, write down the time interval its label depends on, and compare it with the interval covered by the test fold. ``` ```hint Look on both sides In k-fold splitting, some training samples come after the test fold. Ask what those samples could know about the test period. ``` ### What a Strong Answer Covers - The leakage mechanism: labels or features whose time intervals overlap the test fold - What purging removes and how the overlap is determined - What the embargo adds, on which side of the test fold it applies, and why purging alone may not be enough - How the need differs between k-fold and walk-forward splits, and the cost in lost training data ### Follow-up Questions - How would you choose the length of the embargo? - Why use purged k-fold at all when walk-forward validation never trains on the future? - What is combinatorial purged cross-validation, and what does it give you that a single walk-forward backtest does not?

Overview: Asks what purging and embargo gaps are in time series cross-validation and why overlapping labels and rolling features need them. It tests understanding of leakage between folds, how the gaps are sized, and how purged k-fold differs from walk-forward validation.

Nov 25, 2026
hardData ScientistOtherStatistics & Math
0
0

What are purging and embargo gaps in time series cross-validation, and why are they needed?

Assume a setting such as financial prediction, where each sample's label is computed from a window of future data and features use rolling windows.

What a Strong Answer Covers Guidance

  • The leakage mechanism: labels or features whose time intervals overlap the test fold
  • What purging removes and how the overlap is determined
  • What the embargo adds, on which side of the test fold it applies, and why purging alone may not be enough
  • How the need differs between k-fold and walk-forward splits, and the cost in lost training data

Follow-up Questions Guidance

  • How would you choose the length of the embargo?
  • Why use purged k-fold at all when walk-forward validation never trains on the future?
  • What is combinatorial purged cross-validation, and what does it give you that a single walk-forward backtest does not?