PYQ Vault

SPI Mathematics · Statistics

Median and Mode of Raw Data

The median is the middle value once the data is in order, and the mode is the value that occurs most often.

Why this matters

Eight questions in the bank, seven of them EASY. Three only ask which average is which, and the rest put a short list in order for the median or count how often each value occurs for the mode, sometimes with one value left unknown.

Concept 1 of 3: Mean, median and mode side by side

All three are called measures of central tendency because each picks one number to stand for the whole list. They pick it in different ways, and the options in a definition question are built from mixing those ways up.

Definition

Three words settle most definition questions:

  • Mean uses every value.
  • Median is the middle value, so it ignores how big the end values are.
  • Mode is the most frequent value. A list can have two modes, or none if every value occurs once.
MeasureWhat it isHow to find it
MeanThe averageAdd all the values and divide by how many there are
MedianThe middle valuePut the values in order and take the middle one
ModeThe most frequent valueCount how often each value occurs
Smallest and largest value removedThe median stays the sameThe middle of an ordered list is still the middle
The mean uses every value, so it usually changes. The mode changes only if an end value was the most frequent one.
The mode is the most frequent value, the median the middle one: 'middle most frequent' is a mix of the two.
Practice this conceptself-check · 4 quick reps

The same idea in a practice question:

Practice questionEasy

Example 1 · Statistics · Median and Mode of Raw Data

The most frequent value in the data is known as

Calling the mode the middle value

The middle value of ordered data is the median. The mode is the most frequent value, whether or not it sits in the middle.

Concept 2 of 3: Median of a list

Line the values up from smallest to largest. With an odd number of values one sits exactly in the middle; with an even number two share the middle, and the median is halfway between them.

Definition

  • Put the values in order first. The median of an unordered list means nothing.
  • n odd: the median is the (n+12)\left(\frac{n + 1}{2}\right)th value.
  • n even: the median is the mean of the (n2)\left(\frac{n}{2}\right)th and (n2+1)\left(\frac{n}{2} + 1\right)th values.
  • If the median and the two middle values contain an unknown, set their mean equal to the median and solve.

Position of the median

n odd: (n+12)th valuen even: mean of the (n2)th and (n2+1)th valuesn \text{ odd: } \left(\frac{n + 1}{2}\right)\text{th value} \qquad n \text{ even: mean of the } \left(\frac{n}{2}\right)\text{th and } \left(\frac{n}{2} + 1\right)\text{th values}

Worked example

Find the median of 12, 7, 19, 4, 15, 10.
Practice this conceptself-check · 4 quick reps

The same idea in a practice question:

Practice questionEasy

Example 2 · Statistics · Median and Mode of Raw Data

If the median of the given data 24, 25, 26, x+2x + 2, x+3x + 3, 30, 31, 34 is 27.5 then the value of xx is

Taking the middle of an unordered list

In 59, 46, 30, 23, 27 the middle number as written is 30, but in order the list is 23, 27, 30, 46, 59. Always sort before you count to the middle.

Giving the position for the value

For 9 values, 9+12=5\frac{9 + 1}{2} = 5 says the median is the 5th value. The answer is whatever number stands 5th, not 5.

Concept 3 of 3: Mode of a list

Make a quick tally of each value. The one with the longest tally is the mode. If a value is unknown, ask what it must be to break a tie.

Definition

  • Tally every value, then add the tallies up: the total must equal the number of values.
  • The mode is the value with the largest count.
  • If two values tie and the mode is given as one of them, the unknown value must be that one.

Worked example

Find the mode of 3, 6, 6, 2, 9, 3, 6, 4.
Practice this conceptself-check · 3 quick reps

The same idea in a practice question:

Practice questionEasy

Example 3 · Statistics · Median and Mode of Raw Data

The mode of 5, 2, 7, 3, 2, 2, 5, 5, 2, 3, 4, 5, 5, 7, 7 is

Losing count in a long list

In a list of 15 numbers, two values can look equally common at a glance. Tally them and check that the tallies add to 15 before you choose.

Summary — formulas & gotchas at a glance

A revision cheat-sheet for the formulas and gotchas above. Click any concept name to jump back to its full explanation.

Formulas (1)

  • Median of a list

    Position of the median

    n odd: (n+12)th valuen even: mean of the (n2)th and (n2+1)th valuesn \text{ odd: } \left(\frac{n + 1}{2}\right)\text{th value} \qquad n \text{ even: mean of the } \left(\frac{n}{2}\right)\text{th and } \left(\frac{n}{2} + 1\right)\text{th values}

Reference tables (1)

Mean, median and mode side by side4 rows
MeasureWhat it isHow to find it
MeanThe averageAdd all the values and divide by how many there are
MedianThe middle valuePut the values in order and take the middle one
ModeThe most frequent valueCount how often each value occurs
Smallest and largest value removedThe median stays the sameThe middle of an ordered list is still the middle
The mean uses every value, so it usually changes. The mode changes only if an end value was the most frequent one.
The mode is the most frequent value, the median the middle one: 'middle most frequent' is a mix of the two.

Watch out for (4)

Test yourself on a real paper

Sit a past SPI paper, timed and marked the way the exam marks it. You see your score and every answer the moment you finish. Free to start.