Experiment Design · Flagship experience

Cross-Validation

How do we estimate generalisation when one split is too fragile?

Start here

How do we estimate generalisation when one split is too fragile?

Cross-validation rotates which observations are held out, giving several views of model performance and revealing variability that one split can hide.

Building interactive view…
Understand

Build the mental model

Cross-validation rotates which observations are held out, giving several views of model performance and revealing variability that one split can hide. Choose the split strategy from the data-generating process, not from habit. Report fold variability as well as the mean.

Click a stage to inspect what happens, what changes, and what should be checked before moving on.
Stage 1

Create folds

For the “Create folds” stage, identify the incoming object, the rule applied to it, the state change produced, and the evidence that would reveal a mistake. Technical context for Cross-Validation: K-Fold assumes exchangeable independent observations; stratification preserves class proportions; grouped CV keeps related entities together; time-series CV preserves temporal order.

Practitioner checkpoint: Choose the split strategy from the data-generating process, not from habit. Report fold variability as well as the mean.
What happens if…?

Break the assumption deliberately

Use ordinary K-Fold on repeated measurements from the same person and locate the leakage path.

Move the control and explain what you expect before reading the visual.

Technical lens

Formalise what the visual is doing

K-Fold assumes exchangeable independent observations; stratification preserves class proportions; grouped CV keeps related entities together; time-series CV preserves temporal order.

Technical questionUse a tiny case to make the mechanism observable. K-Fold assumes exchangeable independent observations; stratification preserves class proportions; grouped CV keeps related entities together; time-series CV preserves temporal order. Verify one intermediate quantity, state change or mapping independently; then predict the consequence of this change: Use ordinary K-Fold on repeated measurements from the same person and locate the leakage path.
Practitioner lens

Use it responsibly

Choose the split strategy from the data-generating process, not from habit. Report fold variability as well as the mean.

Transfer testTransfer this idea to a new example and justify each decision using this practitioner rule: Choose the split strategy from the data-generating process, not from habit. Report fold variability as well as the mean. Then explain what should change if you deliberately test: Use ordinary K-Fold on repeated measurements from the same person and locate the leakage path.
Worked exploration

Use the visual as an experiment, not decoration

Take 10 cases and perform 5-fold CV. Each case is validation once and training four times. Compare fold scores; their variation shows why a single holdout can be fragile.

Technical lens

K-Fold assumes exchangeable independent observations; stratification preserves class proportions; grouped CV keeps related entities together; time-series CV preserves temporal order.

Practitioner check

Choose the split strategy from the data-generating process, not from habit. Report fold variability as well as the mean.

Prediction before interaction
Use ordinary K-Fold on repeated measurements from the same person and locate the leakage path.
Exploration walkthrough

Turn the interaction into an evidence trail

Take 10 cases and perform 5-fold CV. Each case is validation once and training four times. Compare fold scores; their variation shows why a single holdout can be fragile. Before moving the control, state your prediction. After the visual changes, name the specific state, statistic, boundary or mapping that changed and explain why that change is consistent—or inconsistent—with your prediction.

  • Record one observable quantity before the interaction and the same quantity afterwards.
  • Change one factor at a time so the causal effect of the control is inspectable.
  • Use an edge or failure case to discover where the concept stops behaving as the simple story suggests.
Reference depth

Open the complete material

The flagship experience is the map. These pages contain the roads.

Continue this exact concept

Choose depth, practice or application.

These destinations are explicitly mapped to Cross-Validation; they are not generic landing-page fallbacks.