Standard Deviation: formula
The n−1 correction makes sample variance unbiased under independent identical sampling with finite variance; it does not make the square-root sample deviation unbiased. Outliers can strongly change either result. Standard deviation summarizes spread within the specified population or sample.
Standard Deviation: worked example
| Number of observations to include | 6 |
|---|---|
| Value 1 | 12 |
| Value 2 | 18 |
| Value 3 | 9 |
| Value 4 | 22 |
| Value 5 | 15 |
| Value 6 | 20 |
| Population standard deviation | 4.5 |
| Sample standard deviation | 4.9 |
Use the population deviation to describe a complete population. For an independent sample used to estimate a larger population's variance, use the sample interpretation and include at least two observations. The sample correction changes the divisor of the squared-deviation sum.
It does not add an observation or replace the average with a different externally specified center.
Standard Deviation: changing Value 1
| Value 1 | Population standard deviation | Sample standard deviation |
|---|---|---|
| 10 | 4.9 | 5.3 |
| 11 | 4.7 | 5.1 |
| 12 (example) | 4.5 | 4.9 |
| 13 | 4.4 | 4.8 |
| 14 | 4.3 | 4.7 |
Standard Deviation: compare input ranges
| Input | Tested from | To | Population standard deviation: low input | Population standard deviation: high input | Swing |
|---|---|---|---|---|---|
| Number of observations to include | 1 | 6 | 0 | 4.5 | 4.5 (112%) |
| Value 4 | 20 | 24 | 4.1 | 5 | 0.879 (19%) |
| Value 6 | 18 | 22 | 4.3 | 4.9 | 0.585 (13%) |
| Value 3 | 8 | 10 | 4.8 | 4.3 | 0.517 (11%) |
| Value 1 | 11 | 13 | 4.7 | 4.4 | 0.295 (6.5%) |
| Value 2 | 16 | 20 | 4.4 | 4.7 | 0.292 (6.5%) |
| Value 5 | 14 | 17 | 4.6 | 4.5 | 0.064 (1.4%) |
Standard Deviation: individual input comparisons
| Input | Value | Population standard deviation | Sample standard deviation |
|---|---|---|---|
| Number of observations to include | 1 | 0 | Undefined for these inputs |
| 2 | 3 | 4.2 | |
| 3 | 3.7 | 4.6 | |
| 4 | 5.1 | 5.9 | |
| 5 | 4.5 | 5.1 | |
| 6 | 4.5 | 4.9 | |
| Value 1 | 10 | 4.9 | 5.3 |
| 11 | 4.7 | 5.1 | |
| 12 | 4.5 | 4.9 | |
| 13 | 4.4 | 4.8 | |
| 14 | 4.3 | 4.7 | |
| Value 2 | 14 | 4.5 | 4.9 |
| 16 | 4.4 | 4.8 | |
| 18 | 4.5 | 4.9 | |
| 20 | 4.7 | 5.2 | |
| 22 | 5 | 5.5 | |
| Value 3 | 7 | 5.1 | 5.5 |
| 8 | 4.8 | 5.2 | |
| 9 | 4.5 | 4.9 | |
| 10 | 4.3 | 4.7 | |
| 11 | 4 | 4.4 | |
| Value 4 | 18 | 3.8 | 4.2 |
| 20 | 4.1 | 4.5 | |
| 22 | 4.5 | 4.9 | |
| 24 | 5 | 5.5 | |
| 26 | 5.5 | 6.1 | |
| Value 5 | 12 | 4.8 | 5.2 |
| 14 | 4.6 | 5 | |
| 15 | 4.5 | 4.9 | |
| 17 | 4.5 | 4.9 | |
| 18 | 4.5 | 5 | |
| Value 6 | 16 | 4.1 | 4.5 |
| 18 | 4.3 | 4.7 | |
| 20 | 4.5 | 4.9 | |
| 22 | 4.9 | 5.3 | |
| 24 | 5.3 | 5.8 |
Standard Deviation: combined input changes
| Value 1 / Value 2 | 14 | 18 | 22 |
|---|---|---|---|
| 10 | 4.8 | 4.9 | 5.4 |
| 11 | 4.6 | 4.7 | 5.2 |
| 12 | 4.5 | 4.5 | 5 |
| 13 | 4.3 | 4.4 | 4.9 |
| 14 | 4.3 | 4.3 | 4.8 |
Standard Deviation: which assumptions move the result?
Standard Deviation: values and definitions
| Quantity and definition | Value used |
|---|---|
| Number of observations to include — Uses the first 1–6 value slots; an included zero is data, not a missing-value marker. | 6 |
| Value 1 | 12 |
| Value 2 | 18 |
| Value 3 | 9 |
| Value 4 | 22 |
| Value 5 | 15 |
| Value 6 | 20 |
| Population standard deviation | 4.5 |
| Sample standard deviation | 4.9 |
Common error: Choosing the smaller deviation merely because it looks preferable. For the same nonconstant list, dividing by n gives a smaller result than dividing by n−1; the appropriate denominator follows from the population or sampling claim.
One list, two different denominator claims
For the assumed observations 2, 2, 4 and 4, the mean is 3. Squared deviations sum to four. Treating those four observations as the entire population gives variance 4/4 = 1 and standard deviation 1.
Estimating a population variance from a sample instead divides by 4 − 1, giving sample deviation √(4/3), about 1.1547. Neither denominator can be selected merely to produce the smaller number. The standard deviation has the observation units; the variance has squared units.
With only one observation, sample variance is undefined because its denominator is zero.
Statistics & Probability calculators: Range & Midrange Calculator, Permutation & Combination Calculator, Simple Probability Calculator, Z-Score Calculator, Confidence Interval Calculator, Sample Size Calculator.
Population and sample standard deviation use slightly different formulas on purpose, and picking the wrong one systematically understates the spread. Sample deviation divides by one less than the count specifically because a sample tends to underestimate the true variation in the full population it's drawn from, and that adjustment corrects for it.
Decide first whether your six values are the entire population you care about or a sample drawn from something larger. That choice determines which of the two formulas applies.
See the mean and median calculator for the center, the range calculator for a simple spread, and the z-score page to place a value relative to the mean. The confidence interval and sample size calculators use it for estimation. Investment volatility on the investing pages is a standard deviation.
Standard Deviation Calculator: quantities and terminology
What is the difference between population and sample standard deviation?
Population variance divides squared deviations by n. Sample variance divides by n − 1, accounting for the mean estimated from those same observations. Take the square root for standard deviation.
One observation has no sample standard deviation under that procedure.
What does a large standard deviation mean?
The observations lie farther from their mean. Their values vary more. Whether the mean describes a typical observation also depends on the distribution, so inspect the data rather than treating one large spread measure as a complete description.
How is standard deviation used in investing?
Return standard deviation measures historical volatility over the selected period. Larger values mean wider return swings. Compare matching frequencies and return definitions; a monthly series and an annual series do not use the same measurement interval.