Key Points
The sample standard deviation formula is , the square root of the sample variance.
The NIST e-Handbook of Statistical Methods states that the standard deviation is the square root of the variance, and prints the variance with in the denominator.
Because it is a square root of squared units, the sample standard deviation returns to the original units of the data, unlike variance.
The divisor makes the variance an unbiased estimate, though the square root of an unbiased variance is not itself perfectly unbiased.
A standard deviation of zero means every value in the sample is identical, and the quantity can never be negative.
What Is the Sample Standard Deviation Formula?
The sample standard deviation formula measures the typical distance of sample values from their mean, in the same units as the data, and is written
The NIST/SEMATECH e-Handbook of Statistical Methods defines it directly as the square root of the variance, and prints the variance with an denominator.
The Full Definition
Variance is awkward to interpret because it is measured in squared units, so a spread of heights in centimetres comes out in square centimetres. The standard deviation fixes that by taking the square root, which returns the figure to centimetres.
That is the only job the square root does. Everything informative about the spread is already in the variance, and is simply the readable version of it.
Why the Square Root Matters
Suppose a sample of four lengths has a variance of 0.0333 square centimetres. Nobody can picture a square centimetre of length, so the number cannot be compared against the measurements it came from.
Taking the square root gives about 0.18 centimetres, which sits on the same scale as the original lengths and can be read as a typical deviation from the mean. This is also what makes usable inside other formulas: a confidence interval adds and subtracts multiples of from the mean, and that addition only makes sense if the units match.
One honest caveat belongs here. The divisor makes the variance an unbiased estimate of the population variance, but taking a square root does not preserve that property exactly, so carries a small bias that is almost always ignored in practice.
Variable Key
Symbol | Meaning | Unit or type | Notes |
|---|---|---|---|
sample standard deviation | same units as the data | the quantity being computed | |
sample variance | squared units of | the value under the root | |
the th observation | same units as the data | one value from the sample | |
sample mean | same units as the data | ||
degrees of freedom | count | the divisor, not |
Examples of the Sample Standard Deviation Formula
Example 1
Find the sample standard deviation of 4, 6, 8.
The mean is 6 and the squared deviations are , summing to 8:
Final answer:
Example 2
Find the sample standard deviation of 2, 4, 4, 4, 5, 5, 7, 9 by taking the square root of each deviation.
The formula contains a square root and squared deviations, so cancelling them term by term looks like a shortcut. Try it on the first deviation, where :
Doing that to every term and averaging gives the mean of , which is 1.5. That is the mean absolute deviation, a different and smaller quantity, not the standard deviation.
The root applies to the whole sum, not to each term. Order matters: square every deviation, add them all, divide, and only then take one square root.
The mean is 5, the squared deviations sum to 32, so
Final answer:
Example 3
A sample of five test scores is 70, 75, 80, 85, 90. Find the sample standard deviation.
The mean is 80 and the squared deviations sum to 250:
Final answer: marks
Example 4
A sample of four measurements in centimetres is 12.1, 12.4, 12.2, 12.5. Find the sample standard deviation.
The mean is 12.3 and the squared deviations sum to 0.10:
Final answer: cm
The answer is in centimetres, directly comparable with the measurements, which the variance of 0.0333 square centimetres was not.
Example 5
A sample has and . Find without the raw data.
The sum of squared deviations is all the formula needs beyond :
Final answer:
Exam questions often supply the sum of squares directly, which removes the arithmetic and tests only whether the right denominator is chosen.
Don't Confuse This With Three Close Relatives
Quantity | Formula | What differs |
|---|---|---|
Sample standard deviation | divides by | |
Population standard deviation | divides by , uses the true mean | |
Sample variance | no square root, squared units | |
Mean deviation | absolute values, not squares |
Common Errors When Working With Sample Standard Deviation
Mistake 1: Using the population formula on sample data
Where it slips in: Calculators offer two keys, often labelled and , with nothing on screen to say which the question wants.
Don't do this: for a sample.
The correct way: Use whenever the data is a sample from something larger. The key marked or is the sample one.
Students who decide sample-or-population before touching the calculator get this right consistently, because the decision is about what the data represents and has nothing to do with the arithmetic that follows.
Mistake 2: Forgetting the square root
Where it slips in: The variance is the last computed value, so it gets reported as though the work were finished.
Don't do this: Report when 62.5 is the variance.
The correct way: . A standard deviation much larger than the spread visible in the data is the signature of a missing root.
Mistake 3: Rounding the variance before rooting it
Where it slips in: The variance comes out as a long decimal, so it gets rounded for tidiness and then squared-rooted.
Don't do this: Round to and then take the root.
The correct way: Carry the full variance into the square root and round only . Rounding before a root moves the error into the digits you intend to report.
The Short Version
The sample standard deviation formula is , the square root of the sample variance.
The square root exists to return the spread to the data's own units, which is what makes readable and usable in other formulas.
The divisor comes from the variance, and choosing instead understates the spread.
Forgetting the root, or rounding the variance before taking it, are the two errors that change a reported answer most.
To work through dispersion with a teacher, explore math tutoring or a middle school math tutor.
Practice These Three Before Moving On
Find the sample standard deviation of 3, 7, 7, 19. Then find it for 10, 10, 10, 10, and explain why the answer must be zero before you compute it.
Want a live Bhanzu trainer to walk through more statistics problems? Book a free demo class.
Read More
Was this article helpful?
Your feedback helps us write better content