What Is the Median?
The median is the middle number in a list of values sorted from smallest to largest. It splits the dataset so that half the values are at or below it and half are at or above it.
In simple terms, line up the numbers in order and find the one in the center. This makes the median a reliable way to describe the "typical" value in a dataset, especially when there are unusually high or low values (outliers).
Unlike the mean (average), the median remains stable even when extreme values are present. This makes it especially useful for real-world data that is often skewed.
The median is resistant to outliers, making it a better measure of central tendency for skewed datasets.
How to Find the Median Step by Step
Always begin by sorting the data in ascending order.
For an Odd Number of Values
Odd Number of Values
Data: 3, 7, 1, 9, 5
Sorted: 1, 3, 5, 7, 9
Position: (5 + 1) / 2 = 3 → Median = 5
For an Even Number of Values
Even Number of Values
Data: 4, 8, 2, 10, 6, 12
Median = (6 + 8) / 2 = 7
Always sort the data first. Skipping this step leads to incorrect results.
Median Formula for Grouped Data
For grouped or continuous data, use the following formula:
cf = cumulative frequency before median class
f = frequency of median class
h = class width
This provides an estimated median for large datasets.
Median vs Mean vs Mode
| Measure | What It Is | Best For | Outliers? | Multiple Values? |
|---|---|---|---|---|
| Mean | Average of all values | Symmetric data | Yes | No |
| Median | Middle value | Skewed data | No | Usually one |
| Mode | Most frequent value | Categorical data | No | Yes |
Why the Median Matters in Real Life
- Income: Median income reflects typical earnings better than average
- House prices: Avoid distortion from luxury properties
- Healthcare: Median spending gives realistic insights
- Sports: Useful when extreme values appear
Worked Examples
Odd Dataset
Scores: 78, 85, 67, 92, 80
Median = 80
With Outlier
PKR Salaries: 30,000; 40,000; 45,000; 55,000; 1,200,000
Median = 50,000
Even Dataset
Commute times: 18, 19, 21, 22, 25, 28, 32, 45
Median = 23.5
Common Mistakes
- Not sorting the data first
- Miscalculating middle positions
- Confusing median with mean
- Using wrong formula for grouped data
Practice Questions
- Find median: 12, 15, 8, 20, 9, 18, 11
- Find median: 45, 67, 23, 89, 12, 56
- Why use median for salary data?
Wrapping Up
The median is a simple and reliable way to summarize data, especially when outliers are present. It provides a clearer picture of what is typical in many real-world situations.
Use the median when your data is skewed or contains extreme values. Pair it with measures of spread for better insights.
Frequently Asked Questions
The median is the middle value in a dataset when the values are arranged in order. It divides the dataset into two equal halves.
First sort the data. If the number of values is odd, take the middle value. If it is even, take the average of the two middle values.
The mean is the average of all values, while the median is the middle value. The median is less affected by extreme values (outliers).
The median is best used when the data is skewed or contains outliers, such as income or house price data.
The median for grouped data is calculated using: Median = l + [(N/2 − cf) / f] × h, where l is the lower boundary, N is total frequency, cf is cumulative frequency, f is class frequency, and h is class width.
The median provides a reliable measure of the typical value in a dataset, especially when extreme values or uneven distributions are present.