---
title: Explain the difference between a sample's standard deviation and the standard error of the mean, and how each changes…
url: https://gurkanozkan.ai/learn/questions/mle-standard-deviation-vs-standard-error-19/
markdown: https://gurkanozkan.ai/learn/questions/mle-standard-deviation-vs-standard-error-19.md
kind: question
role: ML engineering
stage: Technical
difficulty: Warm-up
json: https://gurkanozkan.ai/api/learn/questions/mle-standard-deviation-vs-standard-error-19.json
robots: noindex
---

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

ML engineering · Technical · Warm-up

## 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.

## Topic guides

- [Maths and statistics for ML interviews](https://gurkanozkan.ai/learn/topics/maths-statistics.md)
---

*Study material compiled with AI: drafted by a local model (Inkling 2 Mini) from public sources, then checked against those sources by independent AI reviewers (Claude) in November 2026. Not reviewed line by line by a person.*
