Mean, Median &
Standard Deviation
Learn to compute and interpret the most essential measures of center and spread in data analysis.
What Are Descriptive Statistics?
Descriptive statistics are numerical summaries that capture the essential features of a data set. They answer two core questions:
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.
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.
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.
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
SD: \(\sigma = \sqrt{\frac{\sum(x_i - \mu)^2}{N}}\)
Divide by \(N\): every member is included.
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
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?
Pulled high by 200
Unaffected by outlier
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:
Common Mistakes to Avoid
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?