What are the drawbacks of using leave-one-out cross-validation on large datasets?

Quick Overview

Asks for the drawbacks of leave-one-out cross-validation when the dataset is large. Tests how well you understand the cost of resampling methods, the bias and variance of a validation estimate, and how to pick a practical way to validate a model on big data.

What are the drawbacks of using leave-one-out cross-validation on large datasets?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Leave-one-out cross-validation (LOOCV) trains a model on all but one sample, tests it on the sample left out, and repeats this for every sample. What are the drawbacks of using LOOCV on large datasets? ```hint Count the work and the overlap Count how many models LOOCV trains on n rows, then compare any two of its training sets. ``` ### What a Strong Answer Covers - The computational cost as a function of n, compared with k-fold CV, and which models avoid it - How the overlap between training sets affects the variance of the estimate - Whether LOOCV's bias advantage still matters when n is large - What one-point test folds do to metrics such as AUC or F1 and to stratification - A practical alternative for large data ### Follow-up Questions - For ordinary least squares, how can you get the LOOCV error from a single fit? - When would you still choose LOOCV over 10-fold CV? - How does the choice of k in k-fold CV trade off bias, variance and compute? - With 100 million rows, would you cross-validate at all, or use one holdout set? What decides it?

Overview: Asks for the drawbacks of leave-one-out cross-validation when the dataset is large. Tests how well you understand the cost of resampling methods, the bias and variance of a validation estimate, and how to pick a practical way to validate a model on big data.

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

Leave-one-out cross-validation (LOOCV) trains a model on all but one sample, tests it on the sample left out, and repeats this for every sample. What are the drawbacks of using LOOCV on large datasets?

What a Strong Answer Covers Guidance

  • The computational cost as a function of n, compared with k-fold CV, and which models avoid it
  • How the overlap between training sets affects the variance of the estimate
  • Whether LOOCV's bias advantage still matters when n is large
  • What one-point test folds do to metrics such as AUC or F1 and to stratification
  • A practical alternative for large data

Follow-up Questions Guidance

  • For ordinary least squares, how can you get the LOOCV error from a single fit?
  • When would you still choose LOOCV over 10-fold CV?
  • How does the choice of k in k-fold CV trade off bias, variance and compute?
  • With 100 million rows, would you cross-validate at all, or use one holdout set? What decides it?