What you will learn

  • Find the median of an odd or even number of values.
  • Keep repeated values, and find the exact number halfway between two middle values.

Find the middle of a line of values

A data value is one recorded number. Put all the values in order and keep repeats. Cross off one value from each end, again and again. The value left in the middle is the median. It is one way to describe a typical value of the data.

If two values are left, find the number halfway between them. For 1 and 3, that number is 2, even if 2 was never recorded.

The median depends on the places of the values in the ordered list. With three or more values, making an end value larger or smaller does not change it, as long as that value stays at the end.

Read and order the values

This lesson uses counting, putting numbers in order, adding, subtracting and dividing by 2. Data are numbers someone recorded, such as test scores or temperatures. Each recorded number is one value, and all of them together are called a data set. The same value can appear more than once. For example, 2, 2, 5 is three values, not two.

To order the values, list them from least to greatest. Do not change or drop any of them. On a number line, smaller numbers are farther left.

A negative number is a number less than 0, written with a minus sign, such as −4.-4\text{.} Every negative number is less than 0. Among negative numbers, the one farther left is smaller. So −4-4 is less than −1,-1\text{,} even though 4 is greater than 1.

A decimal uses a decimal point to show parts of 1. One tenth is 1 of 10 equal parts of 1, so 0.3 means three tenths. To compare decimals that are not negative, compare the whole-number parts first, then the tenths: 1.2 is less than 1.7. For negative decimals, the one farther from 0 is smaller: −1.7-1.7 is less than −1.2.-1.2\text{.}

Ordering moves values to new places in the list. It does not change any value or how many values there are. Keep each repeated value in its own place.

Locate the middle by position

The median is the middle value once the data are in order. A position is a value's place in the ordered list: first, second, third and so on. Count the values after ordering them.

With an odd number of values, one value is in the middle. It has the same number of values on each side. For 1, 2, 2, 7, 9, the third value is the median, 2. Two values come before it and two come after it.

With an even number of values, two values share the middle. The median is the number halfway between them: add the two and divide by 2. For six values, the middle positions are third and fourth. For eight values, they are fourth and fifth.

Positions count from 1. A repeated value takes up one position each time it appears.

The mean is a different typical value: add every value and divide by how many there are. It is also called the average. The median and the mean can differ, because the median uses only the middle value or values. The median is also not always halfway between the least and greatest values.

Find an exact halfway value

The number halfway between two numbers is their sum divided by 2. This is also called the mean of the two numbers. For 1 and 3, add to get 4, then share 4 into two equal parts: (1+3)÷2=4÷2=2.(1 + 3) \div 2 = 4 \div 2 = 2\text{.} The halfway value does not have to be one of the recorded values.

A fraction is another way to write a division. In 32,\frac{3}{2}\text{,} the bottom number, the denominator, says 2 equal parts make 1 whole. The top number, the numerator, counts 3 of those halves. The decimal 1.5 names the same amount: 32=1.5\frac{3}{2} = 1.5

Halfway between 1.2 and 1.7 is (1.2+1.7)÷2=2.9÷2=1.45.(1.2 + 1.7) \div 2 = 2.9 \div 2 = 1.45\text{.} Keep the exact answer. Do not round it.

Adding a negative number moves left on the number line. For −2-2 and 1, start at −2-2 and move 1 to the right to reach −1.-1\text{.} Then divide by 2: −1÷2=−0.5-1 \div 2 = -0.5

For two negative values, add their distances from 0 and keep the minus sign: (−4+(−2))÷2=−6÷2=−3.(-4 + (-2)) \div 2 = -6 \div 2 = -3\text{.} Dividing a negative number by 2 halves its distance from 0 and keeps it negative.

Read the dot plot

A dot plot puts one dot above a number line for each value. Repeated values stack up, so two dots above 3 mean 3 was recorded twice. Left and right show size. Stacking only keeps repeats visible.

The six dots show −2,-2\text{,} −1,-1\text{,} 1, 3, 3, 8. The third and fourth values are 1 and 3. Halfway between them is 2, marked below the line. There is no dot at 2. With an even number of values, the median can fall between two values.

Middle positions and their midpointSix observations−202468Median: 2
Each dot is one observation. The two dots at 3 are separate observations. The bracket joins the two middle values, 1 and 3; the hollow marker identifies their midpoint, 2.

Work through the reasoning

Worked example

Find the median of these data: 3, −2,-2\text{,} 8, 1, 3, −1.-1\text{.}

  1. Order all six values from least to greatest, keeping both 3s:3s\text{:} −2,-2\text{,} −1,-1\text{,} 1, 3, 3, 8.
  2. Six is even, so two values share the middle. They are in positions 3 and 4, and their values are 1 and 3.
  3. Find the number halfway between them. Add: 1+3=41 + 3 = 4
  4. Divide the sum by 2: 4÷2=24 \div 2 = 2
  5. Check: two values come before the middle pair and two come after. So the median is 2.

Answer: 2

Median of ordered data

Let nn be the number of values, with nn greater than 0, listed from least to greatest. If nn is odd, the median is the value in position n+12.\frac{n+1}{2}\text{.} If nn is even, the median is the mean of the values in positions n2\frac{n}{2} and n2+1.\frac{n}{2} + 1\text{.} Positions start at 1, and each repeated value takes its own position.

The mean of two numbers aa and bb is a+b2,\frac{a+b}{2}\text{,} the number halfway between them. It can fall between recorded values, and no rounding is needed.

What to watch for

  • Put the values in order before finding the middle.
  • Keep every repeat. Dropping one changes the count, and it can change the median.
  • With an even count, average the two middle values, not the two end values.

Put the idea to work.

Median of data

Find the median of these data: 9, 2.4, 7.8, 3.2, 4.9, 7.8, 0.9.

See the reasoning
  1. The median is the middle value once the data are in order. With an even count, it is halfway between the two middle values.
  2. Order from least to greatest, keeping repeated values, so every value is counted: 0.9, 2.4, 3.2, 4.9, 7.8, 7.8, 9.
  3. The ordered dataset has 7 values. Its middle value is in position 4: 4.94.9
  4. The median is 4.9.

Answer: 4.9