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.
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
A saved draft is open. To run the published example, open Editor tools and select Restore example. Recover draft brings your code back.
Execution error
Technical error details
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?
Your result
Result tools
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.
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?
Hints for this question
- Ask what random quantity the bar describes.
- Separate spread among observations from uncertainty about a mean.