Sample Standard Deviation — Definition, Formula & Examples
Sample standard deviation is a number that tells you how far the values in a sample typically fall from the sample mean. You use it when your data are a sample taken from a larger population, and you want to estimate the spread of that whole population.
For a sample with and sample mean , the sample standard deviation is the nonnegative square root of the sample variance . The divisor (Bessel's correction) makes an unbiased estimator of the population variance . The square root itself still slightly underestimates on average.
Key Formula
Where:
- = sample standard deviation
- = the i-th data value in the sample
- = sample mean, the sum of the values divided by n
- = number of values in the sample (sample size)
- = degrees of freedom, the divisor used for a sample
How It Works
First find the sample mean. Then measure how far each value is from it, square those deviations, and add them up. Divide the total by instead of , and take the square root. The result has the same units as the data. A small means the values cluster tightly around the mean. A large means they are spread out.
Worked Example
Problem: A random sample of 5 students reported how many hours they slept last night: 7, 7, 11, 11, 14. Find the sample standard deviation.
Step 1: Find the sample mean.
Step 2: Subtract the mean from each value, square each result, and add the squares. The deviations are .
Step 3: Divide by to get the sample variance.
Step 4: Take the square root to return to the original units (hours).
Answer: The sample standard deviation is hours.
Why It Matters
In AP Statistics, appears in almost every inference procedure. It is the key ingredient in the standard error , which you use for one-sample t-intervals and t-tests. Researchers, quality-control engineers, and pollsters rarely have whole-population data, so the sample standard deviation is the version they actually compute.
Common Mistakes
Mistake: Dividing by n instead of n − 1 when the data are a sample.
Correction: Dividing by gives the population standard deviation . In the example, , which is too small. Use whenever the data come from a sample. On a calculator, choose , not .
Mistake: Forgetting to take the square root, which reports the variance as the standard deviation.
Correction: The variance is in squared units (hours squared). Take the square root so the answer, hours, is in the same units as the data.
