Read the observationsLesson 12 of 30 · 6 min

Variation has more than one source

Explain the difference between standard deviation and standard error.

The sample standard deviation describes how widely individual observations vary around their mean. It uses the same units as the observations. A larger standard deviation means a wider spread, not necessarily a less precisely estimated mean if the sample is much larger.

The standard error estimates how much means from repeated samples would vary. With independent observations from a stable population with finite variance, divide the sample standard deviation by the square root of the sample size.

The seeded simulations below draw different numbers of independent observations from the same normal distribution. Sampling variation means their sample standard deviations are not exactly equal. Standard error usually falls as sample size grows under this model, while individual observations remain variable.

Spread of what?
Individual · SD 15Mean of 100 · SD 1.57090110130Time (ms)
Individual · SD 15Mean of 100 · SD 1.57090110130Time (ms)
SE^(xˉ)=sn\widehat{\mathrm{SE}}(\bar x)=\frac{s}{\sqrt n}
Reference normal model with population mean 100 ms and SD 15 ms. The long line is ±1 SD for an individual observation; the short line is ±1 sampling SD of a mean of 100 independent observations. Neither line is a 95% interval.

Does collecting more observations make each individual observation less variable?

Write a prediction (optional)

Run the prepared example

This page puts the example in the Python editor. Select Run Python with the code unchanged.

Seeded simulation

Editor tools
About Python ↗

Ctrl+Enter or ⌘+Enter runs the code.

What to compare

Find the rows marked n=10, n=100 and n=1000. Compare the SD and SE columns across sizes. Which one describes variation among observations?

Published example output

The site ran the original code to produce this reference. Build environment ↗

n=10 mean=94.70 SD=17.32 SE=5.48 ms
n=100 mean=102.68 SD=15.84 SE=1.58 ms
n=1000 mean=99.78 SD=14.52 SE=0.46 ms

The standard deviation describes the observations. The standard error describes how the mean would vary if you collected new samples. More observations here make the mean more precise while individual observations remain variable.

Change and run again

In the Python editor, change population_sd_ms from 15 to 30. Select Run Python again. At each n, compare SD and SE with the first run. Does a more variable population make both quantities larger at the same sample size? Return to the Python editor

What this example supports. The SE formula here assumes independent observations from one stable population. Dependence and changing conditions require a different analysis.

Try a fresh case

A report labels an error bar “±2”. What information is missing?

Choose an answer

Hints for this question
  1. Ask what random quantity the bar describes.
  2. Separate spread among observations from uncertainty about a mean.
Your notes