Skip to main content

Measures of Center: Mean vs. Median vs. Mode

Before comparing datasets or making predictions, we summarize a distribution with two questions: Where is the center? and How spread out are the values?

The three standard measures of center are:

  1. Arithmetic Mean (μ\mu or xˉ\bar{x}): The sum of all observations divided by the count NN—physically, the “balance point” of the data: μ=1N∑i=1Nxi\mu = \frac{1}{N}\sum_{i=1}^{N} x_i
  2. Median: The middle value when observations are sorted from smallest to largest (for an even count NN, the average of the two middle values).
  3. Mode: The most frequently occurring value(s) in the dataset (especially useful for categorical data).

Why Outliers Break the Mean

Suppose five employees earn $50k, $52k, $54k, $55k, and $59k. Their mean is $54k and their median is $54k.

Now replace the fifth salary with an executive salary of $500k:

  • The mean skyrockets to $142.2k—higher than 44 out of 55 people in the room!
  • The median remains $54k, accurately reflecting the typical employee.

Rule of thumb: Use the mean for symmetric distributions without extreme outliers; use the median for skewed data (income, housing prices, response latencies).

Measuring Spread: Variance and Standard Deviation

Two datasets can share the exact same mean (5050) yet behave completely differently:

  • Dataset A: {49,50,51}\{49, 50, 51\} (tightly clustered)
  • Dataset B: {10,50,90}\{10, 50, 90\} (widely dispersed)

If we simply average the deviations (xi−μ)(x_i - \mu), positive and negative deviations always cancel to zero! To prevent cancellation and measure typical distance from the mean, we square each deviation, average them to get Variance (σ2\sigma^2), and take the square root to return to the original units, giving Standard Deviation (σ\sigma):

σ2=1N∑i=1N(xi−μ)2,σ=σ2\sigma^2 = \frac{1}{N}\sum_{i=1}^{N}(x_i - \mu)^2, \qquad \sigma = \sqrt{\sigma^2}

Population (σ\sigma) vs. Sample (ss) — Bessel’s Correction

When you have data for an entire population of size NN, divide by NN. When you have only a random sample of size nn and are using the sample mean xˉ\bar{x} to estimate the unknown population spread, divide by n−1n - 1:

s2=1n−1∑i=1n(xi−xˉ)2,s=s2s^2 = \frac{1}{n - 1}\sum_{i=1}^{n}(x_i - \bar{x})^2, \qquad s = \sqrt{s^2}

Why n−1n - 1? Because sample points are always slightly closer to their own sample mean xˉ\bar{x} than to the true population mean μ\mu. Dividing by n−1n - 1 (Bessel’s correction) removes that downward bias so s2s^2 is an unbiased estimator of σ2\sigma^2.

The Empirical Rule & Z-Scores

For roughly bell-shaped (normal) distributions, the standard deviation acts as a universal ruler:

  • ≈68%\approx 68\% of all observations lie within μ±1σ\mu \pm 1\sigma.
  • ≈95%\approx 95\% of all observations lie within μ±2σ\mu \pm 2\sigma.
  • ≈99.7%\approx 99.7\% of all observations lie within μ±3σ\mu \pm 3\sigma.

Standardizing with Z-Scores

A z-score converts any measurement xx into standard-deviation units from the mean:

z=x−μσz = \frac{x - \mu}{\sigma}

This lets you compare scores across completely different scales (e.g., comparing an SAT score to an ACT score).

Progressive Worked Examples

Example 1 (Foundational): Full Variance & Standard Deviation Calculation

Compute the population mean, variance, and standard deviation of {4,8,6,5,3,2,8,4}\{4, 8, 6, 5, 3, 2, 8, 4\}:

  1. Mean: μ=4+8+6+5+3+2+8+48=408=5\mu = \frac{4 + 8 + 6 + 5 + 3 + 2 + 8 + 4}{8} = \frac{40}{8} = 5
  2. Squared deviations (xi−5)2(x_i - 5)^2:
    • (4−5)2=1(4-5)^2 = 1, (8−5)2=9(8-5)^2 = 9, (6−5)2=1(6-5)^2 = 1, (5−5)2=0(5-5)^2 = 0
    • (3−5)2=4(3-5)^2 = 4, (2−5)2=9(2-5)^2 = 9, (8−5)2=9(8-5)^2 = 9, (4−5)2=1(4-5)^2 = 1
  3. Population Variance (σ2\sigma^2): σ2=1+9+1+0+4+9+9+18=348=4.25\sigma^2 = \frac{1 + 9 + 1 + 0 + 4 + 9 + 9 + 1}{8} = \frac{34}{8} = 4.25
  4. Population Standard Deviation (σ\sigma): σ=4.25≈2.062\sigma = \sqrt{4.25} \approx \mathbf{2.062}

Example 2 (Intermediate): Sample Standard Deviation (n−1n - 1)

A quality-control engineer samples n=5n = 5 bolts with lengths (in mm): {10.1,9.9,10.0,10.2,9.8}\{10.1, 9.9, 10.0, 10.2, 9.8\}.

  1. Sample mean: xˉ=50.05=10.0 mm\bar{x} = \frac{50.0}{5} = 10.0\text{ mm}.
  2. Sum of squared deviations: (0.1)2+(−0.1)2+02+(0.2)2+(−0.2)2=0.01+0.01+0+0.04+0.04=0.10(0.1)^2 + (-0.1)^2 + 0^2 + (0.2)^2 + (-0.2)^2 = 0.01 + 0.01 + 0 + 0.04 + 0.04 = 0.10
  3. Sample variance (divide by n−1=4n - 1 = 4): s2=0.104=0.025 mm2s^2 = \frac{0.10}{4} = 0.025\text{ mm}^2.
  4. Sample standard deviation: s=0.025≈0.158 mms = \sqrt{0.025} \approx \mathbf{0.158\text{ mm}}.

Example 3 (Applied): Comparing Scores with Z-Scores

Alice scored 8686 on a physics exam (μ=74,σ=6\mu = 74, \sigma = 6) and 9292 on a chemistry exam (μ=82,σ=8\mu = 82, \sigma = 8). Which score is stronger relative to her classmates?

  • Physics: z=86−746=+2.00z = \frac{86 - 74}{6} = +2.00 (22 standard deviations above the mean).
  • Chemistry: z=92−828=+1.25z = \frac{92 - 82}{8} = +1.25 (1.251.25 standard deviations above the mean).

Even though 92>8692 > 86, Alice performed significantly better relative to the class in Physics (z=+2.00z = +2.00).

Analyze any dataset with an automatic μ±1σ\mu \pm 1\sigma diagram in the Statistics Summary Calculator.

Why It Matters

Standard deviation and variance power A/B testing, financial risk modeling (volatility), Six Sigma manufacturing tolerances, and data normalization in machine learning.

Common Misconceptions

  • Forgetting to square deviations: Summing (xi−μ)(x_i - \mu) without squaring always gives 00.
  • Confusing variance units with original units: If data is in dollars, σ\sigma is in dollars, while variance σ2\sigma^2 is in dollars2\text{dollars}^2.
  • Using σ\sigma on heavily skewed data: When data has extreme outliers, pair the median with the Interquartile Range (IQR) instead of mean + standard deviation.

Quick Summary

  • Mean = balance point; Median = middle value (outlier-resistant).
  • Variance = average squared deviation; Standard Deviation = Variance\sqrt{\text{Variance}} (back in original units).
  • Divide by NN for populations and n−1n - 1 for samples.

Practice Problems

Common Questions

Frequently Asked Questions