Why the Sample Variance Divides by n Minus One

Last updated: November 29, 2026

Quick Overview

Explain why the usual sample variance divides by n minus 1 instead of n, prove that it is unbiased, and discuss whether unbiasedness is actually the right goal when estimating spend volatility for a small segment.

Capital One
Statistics & Math
Data Scientist
Capital One
November 29, 2026
Data Scientist
Technical Screen
Statistics & Math
Easy

0

0

0 solved


Explain why the usual sample variance divides by n minus 1 instead of n, prove that it is unbiased, and discuss whether unbiasedness is actually the right goal when estimating spend volatility for a small segment.

A fundamentals question common in Capital One data science technical screens. The interviewer checks a short proof, the degrees of freedom intuition, and whether you know the trade-off between bias and mean squared error.

What the Interviewer Expects
  • Give the degrees of freedom intuition
  • Prove $E[\sum(X_i-\bar X)^2]=(n-1)\sigma^2$
  • Note the MLE under normality divides by n and is biased
  • Mention that $s$ is still biased for $\sigma$
  • Discuss MSE and when the difference matters
Key Topics to Cover
unbiased estimation
degrees of freedom
bias-variance trade-off
maximum likelihood
mean squared error
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
  • Is the sample standard deviation unbiased for sigma?
  • Which divisor minimizes mean squared error for normal data?
  • When does the choice of divisor matter in practice?
  • How would you estimate variance robustly with outliers?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Browse Statistics Questions
Sample Answer
Clarify

X1,…,XnX_1,\dots,X_n i.i.d. with mean μ\mu and variance σ2\sigma^2, both unknown. Estimator s2=1n−1∑(Xi−Xˉ)2s^2=\frac{1}{n-1}\sum(X_i-\bar X)^2. Show E[s2]=σ2E[s^2]=\sigma^2....

Approach

Intuition: deviations are measured from Xˉ\bar X, which is fitted to the same data, so it sits closer to the points than μ\mu does. The squared deviations are systematically too small. Equivalently, ...


Submit Your Answer
Markdown supported