How does leave-one-out cross-validation work?

Quick Overview

Asks how leave-one-out cross-validation works and when to use it. Tests understanding of the procedure, its bias and variance, its compute cost and shortcuts for linear models, and practical issues with single-point validation folds.

How does leave-one-out cross-validation work?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

How does leave-one-out cross-validation work? ```hint Compare with k-fold Ask what k is in this scheme, then think about what that choice means for compute cost and for how similar the training sets are to each other. ``` ### What a Strong Answer Covers - The procedure step by step and how the final estimate is formed - Its bias and variance properties, and the reason for each - The compute cost, and the closed-form shortcut available for linear models - When to choose it over 5- or 10-fold cross-validation - Practical problems with single-point folds, such as stratification and metrics like AUC ### Follow-up Questions - Why can leave-one-out have higher variance than 10-fold cross-validation even though each training set is larger? - Where does the leverage shortcut for ordinary least squares come from? - How would you compute a leave-one-out AUC for a classifier? - When would leave-one-out give a misleading estimate, for example with grouped or time-ordered data?

Overview: Asks how leave-one-out cross-validation works and when to use it. Tests understanding of the procedure, its bias and variance, its compute cost and shortcuts for linear models, and practical issues with single-point validation folds.

General logo
General
Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

How does leave-one-out cross-validation work?

What a Strong Answer Covers Guidance

  • The procedure step by step and how the final estimate is formed
  • Its bias and variance properties, and the reason for each
  • The compute cost, and the closed-form shortcut available for linear models
  • When to choose it over 5- or 10-fold cross-validation
  • Practical problems with single-point folds, such as stratification and metrics like AUC

Follow-up Questions Guidance

  • Why can leave-one-out have higher variance than 10-fold cross-validation even though each training set is larger?
  • Where does the leverage shortcut for ordinary least squares come from?
  • How would you compute a leave-one-out AUC for a classifier?
  • When would leave-one-out give a misleading estimate, for example with grouped or time-ordered data?