The interview problem

Practice prompt

Compute a jackknife variance estimate for a sample mean and explain why the leave-one-out estimates are not independent samples.

Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.

1. Scope and worked approach

Assume independent observations and a sufficiently smooth estimator. Refit after omitting each observation, average those leave-one-out estimates, and compute variance as (n−1)/n times their summed squared deviations from that average. The scaling accounts for the heavy overlap between fits. This is different from generating bootstrap resamples or evaluating predictive error by cross-validation.

2. Trace the design or derivation

Omit each unit
  → refit statistic
  → average estimates
  → scale squared deviations

For the sample mean, each leave-one-out estimate equals (n times the full mean minus the omitted value)/(n−1). Substituting this into the jackknife formula recovers sample variance divided by n. This special identity is a useful check, but does not prove the method works for every statistic.

3. Calculate the example

For data (1,2,3), leave-one-out means are (2.5,2,1.5), averaging 2. Their squared deviations sum to 0.5, so jackknife variance is (2/3)×0.5=1/3. This matches sample variance 1 divided by n=3 for the mean.

4. Failure cases and trade-offs

Nonsmooth statistics such as some sample quantiles can behave poorly under the ordinary delete-one jackknife. Correlated rows require a justified block or cluster method rather than blindly omitting individual rows. The method is deterministic and interpretable but can require n expensive refits.

5. Validation, follow-ups and self-review

Verify the example and compare the mean formula on another small dataset. Follow-up: what changes if an observation represents an entire customer cluster? Self-review: state the resampling unit, scaling factor and estimator regularity.

Sources and related practice

Technical reference: www.stat.cmu.edu — Leave-one-out jackknife variance scaling.

Source publication/update: Fall 2015 course; exact page update not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.

Continue with Choose a bootstrap strategy for dependent observations; Choose the right validation strategy.

Continue your preparation

Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.