How to Do Every Calculation — Step-by-Step Study Guide
A worked walkthrough of median, mode, mean, geometric mean, range, deviation, variance, and standard
deviation.
The Two Data Sets We'll Use Throughout
Every example below uses the same two lists, so you can see exactly how the numbers move through each
formula.
Population (N = 7): 1, 2, 3, 3, 3, 4, 5 → sum (Σx) = 21
● Sample (n = 4): 1, 2, 4, 5 → sum (Σx) = 12
Keep an eye on capital N vs. lowercase n — that difference matters a lot below.
●
Population vs. Sample — Why Symbols Differ
Statisticians use different letters for population values and sample values on purpose, so you can tell at a glance
which one a formula is using:
Greek letters (μ, σ, σ²) = population values — the true, complete values.
● Latin letters with marks (x̄, s, s²) = sample values — estimates built from a smaller subset.
This one distinction explains almost every symbol difference in the whole worksheet.
●
1. Median (Population)
The median is simply the middle value once your data is sorted from smallest to largest.
Step 1 — Sort the data: 1, 2, 3, 3, 3, 4, 5 (already sorted here).
Step 2 — Count how many values there are: 7 (an odd number).
Step 3 — Since 7 is odd, the median is the single middle value — the 4th one in the list: 1, 2, [3], 3, 3, 4, 5.
Result: Median = 3
Note:
If the data set has an even number of values, there's no single middle number — instead, average the two middle
values.
2. Mode (Population)
The mode is whichever value appears most often.
Step 1 — Count how many times each value appears: 1 (×1), 2 (×1), 3 (×3), 4 (×1), 5 (×1).
Step 2 — Find the value with the highest count: 3 appears three times — more than any other value.
Result: Mode = 3
Note:
A data set can have more than one mode (if two values tie for most frequent), or no mode at all (if every value
appears the same number of times).
3. Population Mean
μ = Σx / N
Symbol: μ ("mu") — always means population mean.
Σx = sum of every value. N = population size (how many values total).
Step 1 — Add up every value in the population: 1 + 2 + 3 + 3 + 3 + 4 + 5 = 21.
Step 2 — Count the values: N = 7.
Step 3 — Divide: 21 / 7.
Result: μ = 3
Why it matters:
Use this formula only when you have data on every member of the group you care about — the entire population,
not a subset.
4. Sample Mean
x̄ = Σx / n
Symbol: x̄ ("x-bar") — always means sample mean.
Σx = sum of the sample values. n = sample size (lowercase — this is a subset, not the whole population).
Step 1 — Add up the sample values: 1 + 2 + 4 + 5 = 12.
Step 2 — Count the values: n = 4.
Step 3 — Divide: 12 / 4.
Result: x̄ = 3
Why it matters:
x̄ is an estimate of μ built from only part of the population. It can differ from the true population mean — that gap
is why later statistics (confidence intervals, hypothesis tests) exist.
5. Geometric Mean of (1, 1, 8)
GM = ⁿ√(x₁ · x₂ · x₃ · ... · xₙ)
Instead of adding values and dividing, you multiply them together and take a root. This is used for values that
grow multiplicatively (like growth rates or percentage changes), where a normal average gives a misleading
answer.
Step 1 — Multiply all the values together: 1 × 1 × 8 = 8.
Step 2 — Count how many values you have: n = 3, so take the cube root (3rd root).
Step 3 — Find the cube root of 8 — what number times itself 3 times equals 8? Test 2: 2 × 2 × 2 = 8. ✓
Result: GM = 2
Compare:
The regular mean of the same numbers is (1+1+8)/3 ≈ 3.33 — noticeably higher. Geometric mean is always ≤ the
regular mean, and it's less thrown off by one large value sitting next to small ones.
6. Sample Range
R = Max − Min
The simplest measure of spread: the biggest value minus the smallest value.
Step 1 — Find the maximum value in the sample: 5.
Step 2 — Find the minimum value in the sample: 1.
Step 3 — Subtract: 5 − 1.
Result: R = 4
Limitation:
Range only looks at the two most extreme values and ignores everything in between, so it can't distinguish evenlyspread data from data that's clumped together except for one outlier.
7. Sample Mean Deviation (MAD)
MAD = Σ|x − x̄| / n
For every value, measure its distance from the mean (ignoring direction/sign), then average those distances.
Step 1 — Subtract the mean (x̄ = 3) from each value: 1−3=−2, 2−3=−1, 4−3=1, 5−3=2.
Step 2 — Take the absolute value of each (drop the negative signs): |−2|=2, |−1|=1, |1|=1, |2|=2.
Step 3 — Add up the distances: 2 + 1 + 1 + 2 = 6.
Step 4 — Divide by n = 4: 6 / 4.
Result: MAD = 1.5
Why absolute value?
Without it, the positive and negative differences always cancel out to exactly 0 (since the mean is the data's
balancing point), which tells you nothing about spread.
8. Sample Variance
s² = Σ(x − x̄)² / (n − 1)
Same idea as mean deviation, but instead of absolute value, each distance is squared — and the denominator is n
− 1, not n.
Step 1 — Subtract the mean from each value: 1−3=−2, 2−3=−1, 4−3=1, 5−3=2.
Step 2 — Square each distance: (−2)²=4, (−1)²=1, (1)²=1, (2)²=4.
Step 3 — Add the squared distances: 4 + 1 + 1 + 4 = 10.
Step 4 — Divide by (n − 1) = (4 − 1) = 3: 10 / 3.
Result: s² ≈ 3.33
Why square instead of absolute value?
Squaring also removes negative signs, and it plays more nicely with other math used later on. One side effect: big
distances are punished much harder (a distance of 4 becomes 16, not just 4).
Why n − 1?
This is "Bessel's correction." A sample tends to look less spread out than the full population really is, so dividing
by a slightly smaller number corrects for that and gives a fairer estimate.
9. Sample Standard Deviation
s = √s²
Just the square root of the variance you already calculated — this undoes the squaring step so the number is back
in normal, interpretable units.
Step 1 — Take the variance found in Step 8: s² = 3.33.
Step 2 — Take the square root: √3.33.
Result: s ≈ 1.83
Why bother?
Variance is in squared units (e.g. "dollars squared"), which doesn't mean anything intuitively. Standard deviation
brings it back to the original units, so it's the number people actually report and compare.
10. Population Variance
σ² = Σ(x − μ)² / N
Same process as sample variance, but using the full population data, the population mean (μ), and dividing by N
instead of n − 1.
Step 1 — Subtract the mean (μ = 3) from each population value: 1−3=−2, 2−3=−1, 3−3=0, 3−3=0, 3−3=0,
4−3=1, 5−3=2.
Step 2 — Square each distance: 4, 1, 0, 0, 0, 1, 4.
Step 3 — Add them up: 4+1+0+0+0+1+4 = 10.
Step 4 — Divide by N = 7 (no −1 correction needed — this is the full population): 10 / 7.
Result: σ² ≈ 1.43
Why no n − 1 here?
You're not estimating anything — you already have every value in the population, so there's no underestimate to
correct for.
11. Population Standard Deviation
σ = √σ²
The square root of population variance — same relationship as sample SD, just built on the population numbers.
Step 1 — Take the population variance found in Step 10: σ² = 1.43.
Step 2 — Take the square root: √1.43.
Result: σ ≈ 1.20
Putting It All Together
Concept
Mean
Variance
Standard Deviation
The One Pattern to Remember
Sample (estimate)
x̄ = Σx/n = 3
s² = Σ(x−x̄)²/(n−1) = 3.33
s = √s² = 1.83
Population (true value)
μ = Σx/N = 3
σ² = Σ(x−μ)²/N = 1.43
σ = √σ² = 1.20
Every spread formula (mean deviation, variance, standard deviation) follows the exact same shape: find each
value's distance from the mean, make it positive (square it), add the distances up, divide by a count. The only
things that ever change are which mean you use (x̄ vs μ) and what you divide by (n − 1 vs N).
Sample formulas divide by n − 1. Population formulas divide by N. That's the whole trick.