Variance &
Standard Deviation
Learn how to measure the spread of biological data using variance \(\sigma^2\) and standard deviation \(\sigma\): the essential tools of biostatistics.
Why Spread Matters in Biology
Two groups of patients can share the same mean blood pressure yet differ dramatically in how variable their readings are. The mean alone hides crucial information: one group might be stable while the other swings dangerously.
What is Variance?
Variance is the average of the squared deviations from the mean. Squaring ensures that positive and negative deviations don't cancel out, giving a pure measure of total spread.
What is Standard Deviation?
Standard deviation is simply the square root of variance. It converts spread back into the original units of measurement, making it far easier to interpret.
Visualizing Low vs High Spread
The Core Formulas
Population vs Sample
| Feature | Population | Sample |
|---|---|---|
| Symbol (variance) | \(\sigma^2\) | \(s^2\) |
| Symbol (SD) | \(\sigma\) | \(s\) |
| Mean symbol | \(\mu\) | \(\bar{x}\) |
| Denominator | \(N\) | \(n - 1\) |
| When to use | Entire group known | Subset of population |
How to Compute Step by Step
Example 1: Hemoglobin Levels
Five patients have hemoglobin (\(\text{g/dL}\)): 12, 14, 13, 15, 11. Compute the sample standard deviation.
Example 2: Blood Glucose
Six fasting glucose readings (\(\text{mg/dL}\)): 90, 95, 88, 102, 97, 92. Find \(s\).
Example 3: Comparing Two Groups
Drug A produces heart rates: 70, 72, 68, 71, 69.
Drug B produces heart rates: 60, 82, 65, 78, 65.
Both have \(\bar{x} = 70 \text{ bpm}\). Which is more variable?
| Measure | Drug A | Drug B |
|---|---|---|
| \(\bar{x}\) | \(70 \text{ bpm}\) | \(70 \text{ bpm}\) |
| \(\sum(x_i - \bar{x})^2\) | 10 | 358 |
| \(s^2\) | 2.5 | 89.5 |
| \(s\) | \(1.58 \text{ bpm}\) | \(9.46 \text{ bpm}\) |
The 68-95-99.7 Rule
For approximately normal distributions (common in biological data), the Empirical Rule gives a quick interpretation of standard deviation:
Why \(n - 1\)? Degrees of Freedom
When you estimate the mean from the same sample, you use up one piece of information. Only \(n - 1\) deviations are truly free to vary: the last one is forced so the deviations sum to zero.
Variance vs Standard Deviation
| Feature | Variance (\(s^2\)) | Std Dev (\(s\)) |
|---|---|---|
| Units | Squared (e.g., \(\text{bpm}^2\)) | Original (e.g., \(\text{bpm}\)) |
| Interpretability | Hard to interpret directly | Directly meaningful |
| Used in formulas | ANOVA, regression | Confidence intervals, z-scores |
| Sensitivity to outliers | High (amplified by squaring) | Moderate |
| Always non-negative | Yes (\(\geq 0\)) | Yes (\(\geq 0\)) |
Common Mistakes
Question 1 of 5
A sample of 4 values has a sum of squared deviations \(\sum(x_i - \bar{x})^2 = 24\). What is the sample variance \(s^2\)?
Question 2 of 5
If the sample variance of a data set is \(s^2 = 36\), what is the sample standard deviation?
Question 3 of 5
Why does the sample variance formula divide by \(n - 1\) instead of \(n\)?
Question 4 of 5
In a normally distributed population with \(\mu = 100\) and \(\sigma = 15\), approximately what percentage of values fall between 70 and 130?
Question 5 of 5
A researcher measures enzyme activity (\(\text{U/L}\)) in 5 samples: 10, 10, 10, 10, 10. What are the variance and standard deviation?