LearnQuestion bank

Explain the difference between a sample’s standard deviation and the standard error of the mean, and how each changes with sample size.

ML engineeringTechnicalWarm-up

Answer it yourself first, out loud or on paper, then compare.

Answer

Model answer, written in a candidate's voice

In short

  • SD = spread of individual observations around the mean; sample version uses ddof=1 (n-1) and converges to sigma, not to zero.
  • SE = sigma/sqrt(n) (estimated by s/sqrt(n)); uncertainty of the mean estimate, shrinks like 1/sqrt(n).
  • SE drives confidence intervals and A/B tests; SD does not by itself.

In full

The standard deviation describes how far individual observations typically fall from the mean; with the sample estimator we divide by n-1 (ddof=1), and as n grows it estimates the population sigma rather than shrinking to zero. The standard error of the mean is different: it is the standard deviation of the sampling distribution of the sample mean, approximately sigma/sqrt(n), or s/sqrt(n) in practice, so it decreases like 1/sqrt(n). That is why a larger sample gives a more precise estimate of the mean even if the underlying spread of individual data points stays the same. SE is what enters confidence intervals, roughly mean plus or minus a critical value times SE, and what scales the standard error of a difference in means in A/B tests. So SD answers ‘how variable are the observations?’ while SE answers ‘how uncertain is my estimate of the mean?’

Checked against sources by an independent AI reviewer.

What a strong answer covers

  • SD measures the spread of individual observations and does not shrink with n.
  • SE = σ/√n measures the uncertainty of the mean estimate and shrinks with √n.
  • SE drives confidence intervals and A/B tests.
  • Mentions the ddof=1 sample estimator.

Common mistakes

  • using SD where SE belongs in a confidence interval
  • saying SD falls with more data.