edubun
English

Median and mode

Of 11 salaries in an OpenStax example, the 6th in order is $54,000: five are below it and five above, so it is the median.

Is the median of 3, 9, 4, 7, 5 the number in the middle?

Look at 3, 9, 4, 7, 5. The number written in the middle is 4, and it is tempting to call that the median. It is not. Put the list in order and you get 3, 4, 5, 7, 9, with 5 in the middle. The order in which someone happened to write the numbers says nothing about their size. Sorting comes first, every time.

The mean is one way to describe the middle of a data set. Two others are just as common, and each answers a different question. The median is the middle value once the data are in order: half the values are at or below it, half at or above it. The mode is the value that turns up most often. Together with the mean, these are the measures of center.

Five values have one middle; four values have two

Sort first. With an odd number of values n, the median sits in position (n + 1) ÷ 2. For 3, 9, 4, 7, 5, sorted to 3, 4, 5, 7, 9, n = 5 and the median is the 3rd value, 5. An even count has no single middle. Take the mean of the two middle values instead. For 2, 4, 6, 8 those are 4 and 6, so the median is 5, a number that is not in the list at all.

OpenStax lists 11 salaries, in thousands of dollars. Sorted, they read 28, 33, 40.5, 42, 54, 54, 64.5, 68.5, 69, 72 and 120. The 6th value is 54, so the median salary is $54,000. Now change the top salary from 120 to 1,200. Nothing happens to the median. The 6th value is still 54. That stubbornness is the median's main strength, and the next lesson leans on it.

Frequency tables work for the median too. In the symmetric set of 16 values the median falls between positions 8 and 9. Count down the table. Positions 1 to 5 hold 4, 5, 6, 6 and 6; positions 6 to 11 are the six 7s. Both the 8th and the 9th values are 7, so the median is 7. A running count of the frequencies is enough, and you never have to write out all 16 numbers.

Loading

Drag to turn. Scroll or pinch to zoom.

OpenStax's right-skewed set 6, 7, 7, 7, 7, 8, 8, 8, 9, 10. The orange dots are the mode (7). Drag the 10 to 12 and watch the mean move while the median and mode stay put. Use "Remove selected" to make the count odd and see the median jump to a single value.

Seven appears six times, so the mode is 7

The mode is found by counting. In OpenStax's symmetric set 4, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 10, the value 7 appears six times, more than any other. A set can have two modes, as in 1, 2, 2, 3, 4, 4, where 2 and 4 each appear twice; such a set is called bimodal, and a set can also have no mode at all, which happens when every value appears exactly once. The mode is the only measure of center that works for categories. You cannot take the mean of "red, blue, blue, green". You can say that blue is the most common answer.

In the symmetric set the mean, median and mode are all 7. The left-skewed set 4, 5, 6, 6, 6, 7, 7, 7, 7, 8 is different. OpenStax gives a mean of 6.3, a median of 6.5 and a mode of 7, because the long tail on the left pulls the mean down the most. In the right-skewed set the order flips: mode 7, median 7.5, mean 7.7. So the gap between mean and median is a quick clue to the shape of the data.

The three OpenStax 2.6 data sets. (a) Symmetric: mean = median = mode = 7. (b) Skewed left: mean 6.3 < median 6.5 < mode 7. (c) Skewed right: mode 7 < median 7.5 < mean 7.7.
MedianMiddle value of the sorted data; mean of the two middle values if n is even
Position of the median(n + 1) ÷ 2
ModeThe most frequent value; there may be two or none
Categorical dataOnly the mode makes sense
  1. What is the median of 3, 9, 4, 7, 5?
  2. What is the median of 2, 4, 6, 8?
  3. With n = 11 sorted values, which position holds the median?
  4. Median of the 11 OpenStax salaries, in thousands of dollars?
  5. The top salary changes from 120 to 1,200 (thousand). What is the new median?
  6. What is the mode of 4, 5, 6, 6, 6, 7, 7, 7, 7, 7, 7, 8, 8, 8, 9, 10?
  7. What are the modes of 1, 2, 2, 3, 4, 4?
    • 2 only
    • 4 only
    • 2 and 4
    • No mode
  8. What is the median of 4, 5, 6, 6, 6, 7, 7, 7, 7, 8?
  9. A survey asks for favourite fruit. Which average can you report?
    • Mean
    • Median
    • Mode
    • None
  10. In the right-skewed set, which is largest?
    • Mode
    • Median
    • Mean
    • All equal
Common mistakes
  • Reading the middle of the unsorted list: for 7, 1, 3, 9, 4, answering 3. Sorted, the list is 1, 3, 4, 7, 9, and the median is 4. The 3 sat in the middle only because of the order the numbers were written in.
  • For 1, 3, 8, 10, taking the value in position 4 ÷ 2 = 2 and answering 3. With an even count there are two middle values, here 3 and 8. The median is their mean, (3 + 8) ÷ 2 = 5.5, even though 5.5 is not in the data.
  • Giving the count instead of the value: for 1, 5, 5, 8, saying the mode is 2. 2 is how many times the mode appears. The mode is the value that repeats, which is 5.
Teacher's noteThe arithmetic here is light. The trouble is skipping the sort. Ask for the sorted list on paper every time, even when the data look tidy, and have students mark which position they read. With an even count, ask whether the median has to be one of the data values; the answer surprises some people. For the mode, a quick survey of favourite lunches shows at once that some data can only be counted.
Key points
  • Median: sort, then take the middle value (or the mean of the two middle values).
  • Mode: the most frequent value; can be two or none; works for categories.
  • Symmetric data: mean ≈ median. Skewed: the mean moves towards the tail.
Sources for this course (7)
  • Curriculum: 교육부 고시 제2022-33호 [별책 8] 수학과 교육과정 (ncic.re.kr/inv/org/download.do?year=2022&seq=10003559&orgType=ogi4, PDF read 2026-10-19: 초등학교 5~6학년군 [6수04-01] 평균의 의미, 고려 사항 「평균을 구하는 방법뿐만 아니라 그 의미를 직관적으로 파악하게 한다」; 중학교 1~3학년군 [9수04-01] 중앙값·최빈값과 대푯값 고르기, [9수04-07] 분산과 표준편차, [9수04-08] 상자그림으로 분포 비교, 용어 변량·대푯값·중앙값·최빈값·도수분포표·산포도·편차·분산·표준편차·사분위수·상자그림; 고등학교 확률과 통계 용어 표본평균·모평균·표본분산·표본표준편차와 기호 X̄, S², S, N(m, σ²); 실용 통계 [12실통02-04] 대푯값과 산포도 고르기)
  • Middle-school variance as the mean of the squared deviations: EBS Math 중3 「분산과 표준편차」 (www.ebsmath.co.kr/resource/rscView?cate=123500&cate2=123510&cate3=123511&rscTpDscd=RTP10&grdCd=MGRD03&sno=24525&type=S, read 2026-10-19)
  • Textbook: OpenStax, Introductory Statistics 2e by Barbara Illowsky and Susan Dean, 2.3 measures of location, quartiles as medians of the lower and upper halves, IQR, 1.5 × IQR outlier rule, 13 real estate prices, 11 salaries, day and evening class test scores (openstax.org/books/introductory-statistics-2e/pages/2-3-measures-of-the-location-of-the-data)
  • 2.5 measures of the center (.../pages/2-5-measures-of-the-center-of-the-data)
  • 2.6 skewness and the mean, median and mode, the three ten- and sixteen-value data sets (.../pages/2-6-skewness-and-the-mean-median-and-mode)
  • 2.7 measures of the spread, sample standard deviation with n − 1 (.../pages/2-7-measures-of-the-spread-of-the-data)
  • Trimmed mean only: Federal Reserve Bank of Dallas, Trimmed Mean PCE inflation rate (dallasfed.org/research/pce and /research/pce/descr)

Checked: 2026-10-17