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.

ℹ️
Key Insight

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

Position = (n + 1) / 2
n = number of observations
Example

Odd Number of Values

Data: 3, 7, 1, 9, 5

1 3 5 7 9

Sorted: 1, 3, 5, 7, 9

Position: (5 + 1) / 2 = 3 → Median = 5

For an Even Number of Values

Median = (xn/2 + xn/2+1) / 2
Example

Even Number of Values

Data: 4, 8, 2, 10, 6, 12

2 4 6 8 10 12

Median = (6 + 8) / 2 = 7

⚠️
Important

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:

Median = l + [(N/2 − cf) / f] × h
l = lower boundary
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

Example 1

Odd Dataset

Scores: 78, 85, 67, 92, 80

Median = 80

Example 2

With Outlier

PKR Salaries: 30,000; 40,000; 45,000; 55,000; 1,200,000

Median = 50,000

Example 3

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.

💡
Pro Tip

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.