01 / 21

Mean, Median &
Standard Deviation

Learn to compute and interpret the most essential measures of center and spread in data analysis.

Finite Mathematics

What Are Descriptive Statistics?

Descriptive statistics are numerical summaries that capture the essential features of a data set. They answer two core questions:

Center
Where is the "typical" value? The mean and median each measure center differently.
Spread
How much do values vary? Standard deviation quantifies average distance from the mean.

The Mean: Arithmetic Average

The mean (often written \(\bar{x}\)) is the sum of all data values divided by the number of values:

The mean acts like the balance point of a data set: if you placed the data on a number line, the mean is the point where the line would balance perfectly.

The Median: Middle Value

The median is the middle value when the data is sorted in ascending order. It splits the data into two equal halves.

1
Sort all \(n\) values from smallest to largest.
2
If \(n\) is odd: the median is the value at position \(\frac{n+1}{2}\).
3
If \(n\) is even: the median is the average of the values at positions \(\frac{n}{2}\) and \(\frac{n}{2}+1\).

Visualizing Mean vs Median

Consider the sorted data set: 2, 4, 5, 7, 8, 9, 30. Let's see where mean and median fall on a number line.

0 5 10 15 20 25 30 2 4 5 7 8 9 30 Median = 7 Mean ≈ 9.3 Outlier pulls the mean right

Standard Deviation: Measuring Spread

The standard deviation measures how far data values typically fall from the mean. A small \(s\) means values cluster tightly; a large \(s\) means they spread out widely.

We divide by \(n-1\) (not \(n\)) for samples to correct for bias: this is called Bessel's correction.

Visualizing Spread

Two data sets can have the same mean but very different spreads. Standard deviation captures this difference.

Set A: {8, 9, 10, 11, 12} — small spread 0 5 10 15 20 Mean=10 s ≈ 1.58 Set B: {2, 5, 10, 15, 18} — large spread 0 5 10 15 20 Mean=10 s ≈ 6.67

Mean vs Median: When to Use Each

Mean \(\bar{x}\) Median
Uses every value? Yes No (only position)
Affected by outliers? Strongly Barely
Best for symmetric data? Excellent Good
Best for skewed data? Misleading Preferred
Common example Test score average Household income

Population vs Sample Formulas

Population
Mean: \(\mu = \frac{\sum x_i}{N}\)
SD: \(\sigma = \sqrt{\frac{\sum(x_i - \mu)^2}{N}}\)

Divide by \(N\): every member is included.
Sample
Mean: \(\bar{x} = \frac{\sum x_i}{n}\)
SD: \(s = \sqrt{\frac{\sum(x_i - \bar{x})^2}{n-1}}\)

Divide by \(n - 1\): Bessel's correction for bias.

How to Compute All Three

1
Sort the data from least to greatest. This is required for the median and helps you spot outliers.
2
Find the mean: add all values and divide by \(n\). Record \(\bar{x}\).
3
Find the median: locate the middle value (or average the two middle values if \(n\) is even).
4
Compute deviations: for each value, calculate \((x_i - \bar{x})^2\).
5
Find variance: sum all squared deviations and divide by \(n-1\) (sample) or \(N\) (population).
6
Take the square root of the variance to get the standard deviation.

Example 1: Five Test Scores

A student's quiz scores are: 72, 85, 90, 78, 95. Find the mean, median, and sample standard deviation.

Example 2: Even Number of Values

Data set: 3, 7, 8, 12, 15, 20 (\(n = 6\), even). Find the mean, median, and sample standard deviation.

Example 3: The Outlier Effect

A company reports employee salaries (in $1000s): 35, 40, 42, 45, 200. How do the measures change?

Mean
\(\bar{x} = \frac{362}{5} = 72.4\)
Pulled high by 200
Median
Middle value = 42
Unaffected by outlier
SD
\(s \approx 71.42\)
Inflated by outlier

Interpreting Standard Deviation

Standard deviation is always in the same units as the data. Here's what different values mean in context:

Small \(s\)
Values cluster tightly around the mean. Data is consistent and predictable.
Moderate \(s\)
Typical variation. Most values within 1-2 standard deviations of the mean.
Large \(s\)
Values are widely dispersed. Data is highly variable or contains outliers.

Common Mistakes to Avoid

✕ Dividing by \(n\) for samples
Sample standard deviation uses \(n-1\) in the denominator, not \(n\). Forgetting Bessel's correction underestimates the true spread.
✕ Forgetting to sort for median
The median requires sorted data. Picking the "middle" of unsorted data gives a wrong answer every time.
✕ Skipping the square root
Computing the variance but reporting it as standard deviation. Variance is \(s^2\): you must take the square root for \(s\).

Summary Comparison

Mean Median Std Dev
What it measures Center (average) Center (middle) Spread
Formula involves Sum / count Sorting + position Squared deviations
Outlier sensitivity High Low High
Units Same as data Same as data Same as data
Symbol (sample) \(\bar{x}\) None standard \(s\)
Symbol (population) \(\mu\) None standard \(\sigma\)

Question 1 of 5

The data set is {4, 7, 10, 13, 16}. What is the mean?

Question 2 of 5

For the data set {2, 5, 10, 16, 20, 21}, what is the median?

Question 3 of 5

Why do we divide by \(n - 1\) instead of \(n\) when computing sample standard deviation?

Question 4 of 5

Household incomes in a neighborhood are: $40k, $42k, $45k, $48k, $310k. Which measure of center best represents a "typical" income?

Question 5 of 5

A data set has \(\bar{x} = 50\) and \(s = 8\). Using the Empirical Rule, approximately what percentage of data falls between 34 and 66?