How do you compute a bootstrap confidence interval for an offline metric?

Quick Overview

Explain how to put a bootstrap confidence interval around an offline model metric such as AUC, F1 or NDCG. Tests what to resample, how to read the interval, when rows must be resampled by cluster, and which sources of uncertainty the interval leaves out.

How do you compute a bootstrap confidence interval for an offline metric?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How do you compute a bootstrap confidence interval for an offline metric? ```hint What is random here Decide which part of the evaluation you treat as random and which part you hold fixed: the trained model or the test examples. ``` ```hint Check independence Before resampling test rows one at a time, ask whether those rows are independent of each other. ``` ### What a Strong Answer Covers - What is held fixed, what is resampled, and how many resamples to draw - How the interval is read off the bootstrap distribution, and when a corrected method such as BCa is needed - Resampling at the level of the independent unit when rows are correlated - Which source of uncertainty the interval captures and which it leaves out ### Follow-up Questions - How would you use the bootstrap to compare two models evaluated on the same test set? - How many resamples do you need, and how would you tell that you used too few? - In which situations does the percentile bootstrap give poor coverage? - How would you also account for variance from training?

Overview: Explain how to put a bootstrap confidence interval around an offline model metric such as AUC, F1 or NDCG. Tests what to resample, how to read the interval, when rows must be resampled by cluster, and which sources of uncertainty the interval leaves out.

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

How do you compute a bootstrap confidence interval for an offline metric?

What a Strong Answer Covers Guidance

  • What is held fixed, what is resampled, and how many resamples to draw
  • How the interval is read off the bootstrap distribution, and when a corrected method such as BCa is needed
  • Resampling at the level of the independent unit when rows are correlated
  • Which source of uncertainty the interval captures and which it leaves out

Follow-up Questions Guidance

  • How would you use the bootstrap to compare two models evaluated on the same test set?
  • How many resamples do you need, and how would you tell that you used too few?
  • In which situations does the percentile bootstrap give poor coverage?
  • How would you also account for variance from training?