Calculating the Median
Introduction
Welcome back to Data Distributions and Center! You have now reached lesson three of six, which means you are already halfway through the course. In our first lesson, we explored what a data distribution looks like and how to describe the overall shape of a dataset. In our second lesson, we learned how to compute the mean by summing every value and dividing by the count. Today we turn to a different measure of center: the median. While the mean uses every value in its calculation, the median takes a completely different approach and focuses on position. Let's see how it works.
The Idea Behind the Median
Imagine lining up a group of people from shortest to tallest and then pointing to the person standing right in the middle. That person's height represents the center of the group — not because of any arithmetic, but simply because of where they stand. This is exactly what the median does with data.
The median is the middle value of a dataset once all the values have been arranged in order from least to greatest. Instead of combining every number the way the mean does, it asks a simpler question: "Which value sits at the center of the sorted list?" This positional approach makes the median especially useful in situations where a few very large or very small values might distort the mean — but we will explore that idea more in a later lesson. For now, our focus is on the calculation itself.
Step 1: Order the Data
The very first thing we must do before finding the median is sort the dataset in ascending order (smallest to largest). This step is essential because the median depends entirely on position. If the values are not sorted, we cannot identify which one is truly in the middle.
Consider this small dataset of daily high temperatures (in °F) recorded over five days:
After sorting from least to greatest, the list becomes:
With the values in order, we are ready to locate the middle.


