Statistics · real student question

Find the mean, the median and the mode of the data set 3, 7, 5, 9, 5, 2.

Question

Find the mean, the median and the mode of the data set

3,  7,  5,  9,  5,  2.3,\;7,\;5,\;9,\;5,\;2.

Step-by-step solution

  1. Mean: add every value, then divide by how many there are. The mean uses the raw order, so no sorting is needed:

    3+7+5+9+5+2=31,n=6,3+7+5+9+5+2=31,\qquad n=6,

    xˉ=316=5.165.1667.\bar{x}=\frac{31}{6}=5.1\overline{6}\approx 5.1667.

    Leaving the answer as the exact fraction 316\tfrac{31}{6} is better practice than rounding, because 3131 is not divisible by 66 and any decimal is an approximation.

  2. Sort the data before touching the median. The median is defined on the ordered list, and this is the step people skip:

    2,  3,  5,  5,  7,  9.2,\;3,\;5,\;5,\;7,\;9.

    Reading the median off the unsorted list would give 5+92=7\tfrac{5+9}{2}=7, which is wrong.

  3. Median: with an even count, average the two middle values. For n=6n=6 the middle positions are the 3rd and 4th:

    median=x3+x42=5+52=5.\text{median}=\frac{x_{3}+x_{4}}{2}=\frac{5+5}{2}=5.

    In general the positions are n2\tfrac{n}{2} and n2+1\tfrac{n}{2}+1 when nn is even, and the single position n+12\tfrac{n+1}{2} when nn is odd. Here both middle values happen to be 55, so the median is exactly 55 with no fractional part.

  4. Mode: tally the frequencies. Counting occurrences: 22 appears once, 33 once, 55 twice, 77 once, 99 once. The highest frequency is 22, achieved only by 55, so the mode is

    mode=5.\text{mode}=5.

    A data set can have no mode (all frequencies equal) or several modes; here there is exactly one.

  5. Sanity-check the three numbers against each other. The mean 5.16675.1667 sits slightly above the median 55, which is what you expect from a set with one large outlying value (99) pulling the average up. All three statistics land inside the data range [2,9][2,9], as they must.

Answer

mean=3165.1667,median=5,mode=5\text{mean}=\frac{31}{6}\approx 5.1667,\qquad \text{median}=5,\qquad \text{mode}=5

Need to solve a different problem like this? Open the solver →