Skip to content
Gioi Toan
Start learning
A bar chart with three bars, the tallest one smiling

Notes on Lesson 9: Measures of central tendency (Maths 11 Ket noi tri thuc)

Lesson summary

Suppose a grouped data sample has kk class intervals [ai;ai+1)[{a_i};{a_{i + 1}}) with frequencies mim_i (i=1,2,...,ki = 1, 2, ..., k).

The median MeM_e is the value that divides the ordered sample into two halves, each with the same number of data values.

Each class interval is an interval, with no specific number to add.

This content is not yet available in English. It is shown below in the original Vietnamese.

  • Tính số trung bình, trung vị, tứ phân vị, mốt của mẫu số liệu ghép nhóm.
  • Hiểu ý nghĩa và rút ra kết luận cho thực tiễn.

A school wants to know how tall grade 11 students are on average, below what height half of them are, and around what height the tallest students usually fall. The data collected are given as a grouped table like [150;155)[150;155), [155;160)[155;160), rather than each height written out. This lesson helps you compute the mean, median, quartile, and mode from a grouped table, and understand what each of these numbers says about real life.

Practise now

Key ideas: what do you need to know?

Mean of a grouped data sample

Suppose a grouped data sample has kk class intervals [ai;ai+1)[{a_i};{a_{i + 1}}) with frequencies mim_i (i=1,2,...,ki = 1, 2, ..., k).

  • The representative value of the class interval [ai;ai+1)[{a_i};{a_{i + 1}}) is xi=ai+ai+12x_i = \frac{a_i + a_{i + 1}}{2}, that is, the average of its two endpoints.
  • The sample size is n=m1+m2+...+mkn = m_1 + m_2 + ... + m_k.
  • Note: for discrete data, class intervals are usually given in the form k1−k2k_1 - k_2 with k1,k2∈Nk_1, k_2 \in \mathbb{N}, meaning the class interval consists of the values k1,k1+1,...,k2k_1, k_1 + 1, ..., k_2. Before computing the measures, we adjust the class interval k1−k2k_1 - k_2 into the class interval [k1−0,5;k2+0,5)[k_1 - 0,5; k_2 + 0,5); for example, the score class interval 5-7 becomes [4,5;7,5)[4,5; 7,5).
  • The mean of the grouped data sample, denoted x‾\overline{x}, is

x‾=m1x1+m2x2+...+mkxkn.\overline{x} = \frac{m_1x_1 + m_2x_2 + ... + m_kx_k}{n}.

  • Example: the class interval [150;155)[150;155) has representative value 152,5152,5; if this class interval has 7 students, it contributes 7⋅152,57 \cdot 152,5 to the numerator.

In plain words: Each class interval is an interval, with no specific number to add. Imagine the whole class interval is gathered at its middle, and take the average of the two endpoints as its representative. Every student in the class interval [150;155)[150;155) is counted as being 152,5152,5 cm tall. Why is this reasonable? Because the students in the class interval are spread evenly around the middle, where most of them are, so taking the middle as the representative lets the biases cancel each other out. The formula is just a weighted average: a larger class interval has a louder voice.

Phrase by phrase
representative value
The number that stands for the whole class interval, equal to the average of its two endpoints.Example: The class interval [160;165)[160;165) has representative value 162,5162,5.
Sample size
The total number of quantitative data, equal to the sum of the frequencies.Example: If three class intervals have frequencies 7, 10, 5, then n=22n = 22.
Mean
Formula x‾=m1x1+…+mkxkn\overline{x} = \frac{m_1x_1 + \ldots + m_kx_k}{n}: multiply each frequency by its representative value, add them up, then divide by the sample size.Example: Two class intervals: m1=2m_1 = 2, x1=5x_1 = 5; m2=3m_2 = 3, x2=10x_2 = 10, then x‾=2⋅5+3⋅105=8\overline{x} = \frac{2 \cdot 5 + 3 \cdot 10}{5} = 8.

Median of a grouped data sample

The median MeM_e is the value that divides the ordered sample into two halves, each with the same number of data values. How to calculate it:

  • Step 1: Find the group containing the median, that is, the first group whose cumulative frequency is greater than or equal to n2\frac{n}{2}. Suppose that is group number pp: [ap;ap+1)[{a_p};{a_{p + 1}}).
  • Step 2:

Me=ap+n2−(m1+...+mp−1)mp⋅(ap+1−ap).M_e = a_p + \frac{\frac{n}{2} - (m_1 + ... + m_{p-1})}{m_p} \cdot (a_{p + 1} - a_p).
where nn is the sample size, mpm_p is the frequency of group pp; for p=1p = 1 we take by convention m1+...+mp−1=0m_1 + ... + m_{p-1} = 0.

  • Example: if n=56n = 56 then n2=28\frac{n}{2} = 28, the first group whose cumulative frequency reaches 28 is exactly the group containing the median.

In plain words: The median is the place that "splits the group in half". Line up the whole class by height, and the friend standing in the middle is the median. With a grouped table, you do not know where each friend stands, so you have to find which group contains the middle position. Add up the frequencies from the lowest group upward; the group that passes half the sample size contains the median. Why does the formula have a part multiplied by the class width? Because inside that group, the data are treated as spread evenly, so however much of the group is needed, that much of the class width is added.

Phrase by phrase
cumulative frequency
The sum of the frequencies from the first group to the group being considered.Example: With frequencies 3, 12, 15, the cumulative frequency up to group 3 is 30.
group containing the median
The first group whose cumulative frequency is greater than or equal to n2\frac{n}{2}.Example: n=56n = 56, the group with cumulative frequency 30 is the group containing the median.
MeM_e
Notation for the median; the formula takes the left endpoint of the group containing the median and adds the missing part calculated by the proportion within the group.Example: Group [15,5;18,5)[15,5;18,5), n=56n = 56, m1+m2=15m_1 + m_2 = 15, m3=15m_3 = 15: Me=15,5+28−1515⋅3=18,1M_e = 15,5 + \frac{28 - 15}{15} \cdot 3 = 18,1.

Quartiles of grouped data

Quartiles divide the ordered sample into four parts, each with about n4\frac{n}{4} data values.

  • First quartile Q1Q_1: find the group containing Q1Q_1, which is the first group whose cumulative frequency is greater than or equal to n4\frac{n}{4}, suppose it is group number pp: [ap;ap+1)[{a_p};{a_{p + 1}}). Then

Q1=ap+n4−(m1+...+mp−1)mp⋅(ap+1−ap).Q_1 = a_p + \frac{\frac{n}{4} - (m_1 + ... + m_{p-1})}{m_p} \cdot (a_{p + 1} - a_p).

  • Third quartile Q3Q_3: find the group containing Q3Q_3, which is the first group whose cumulative frequency is greater than or equal to 3n4\frac{3n}{4}, suppose it is group number pp: [ap;ap+1)[{a_p};{a_{p + 1}}). Then

Q3=ap+3n4−(m1+...+mp−1)mp⋅(ap+1−ap).Q_3 = a_p + \frac{\frac{3n}{4} - (m_1 + ... + m_{p-1})}{m_p} \cdot (a_{p + 1} - a_p).

  • Second quartile Q2Q_2 is exactly the median MeM_e.
  • For p=1p = 1, we take by convention m1+...+mp−1=0m_1 + ... + m_{p-1} = 0.

In plain words: The median splits in two, the quartiles split in four. Picture a line of friends ordered by height: Q1Q_1 is the friend standing at the one-quarter mark, Q2Q_2 is the middle one, Q3Q_3 is the friend at the three-quarter mark. Finding them works just like the median, only the mark to reach changes: n4\frac{n}{4} for Q1Q_1, n2\frac{n}{2} for Q2Q_2, 3n4\frac{3n}{4} for Q3Q_3. The range from Q1Q_1 to Q3Q_3 contains half the friends in the middle, so it shows how "typical" the whole class is.

Phrase by phrase
Quartiles
The three marks Q1Q_1, Q2Q_2, Q3Q_3 divide the ordered sample into four equal parts.Example: n=56n = 56 then Q1Q_1 is at mark 14, Q2Q_2 at mark 28, Q3Q_3 at mark 42.
First quartile
The formula for the first quartile, the same form as the median but with mark n4\frac{n}{4}.Example: Group [12,5;15,5)[12,5;15,5), n=56n = 56, m1=3m_1 = 3, m2=12m_2 = 12: Q1=12,5+14−312⋅3=15,25Q_1 = 12,5 + \frac{14 - 3}{12} \cdot 3 = 15,25.
Third quartile
The formula for the third quartile, with mark 3n4\frac{3n}{4}.Example: Group [18,5;21,5)[18,5;21,5), n=56n = 56, m1+m2+m3=30m_1 + m_2 + m_3 = 30, m4=24m_4 = 24: Q3=18,5+42−3024⋅3=20Q_3 = 18,5 + \frac{42 - 30}{24} \cdot 3 = 20.
Q2Q_2 is exactly the median MeM_e
The halfway mark is both the second quartile and the median.Example: n=56n = 56: Q2=Me=18,1Q_2 = M_e = 18,1.

Common mistakesMixing up the quartile thresholds: using n2\frac{n}{2} for Q1Q_1 or n4\frac{n}{4} for Q3Q_3.

Mode of grouped data

The mode MoM_o is the value that appears most often, that is, it corresponds to the group with the largest frequency. How to find it:

  • Step 1: Identify the modal class, which is the group with the largest frequency, suppose it is group number jj: [aj;aj+1)[{a_j};{a_{j + 1}}).
  • Step 2:

Mo=aj+mj−mj−1(mj−mj−1)+(mj−mj+1)⋅h,M_o = a_j + \frac{m_j - m_{j-1}}{(m_j - m_{j-1}) + (m_j - m_{j+1})} \cdot h,
where mjm_j is the frequency of group jj, hh is the class width, with the convention m0=mk+1=0m_0 = m_{k+1} = 0.

  • Note: the mode is only defined for grouped data whose groups have equal class widths. A sample may have no mode or more than one mode; for example, when the frequencies of the groups are equal, the grouped data have no mode.
  • Example: group [20;25)[20;25) has frequency 30, the largest; the group before has frequency 12, the group after has frequency 18, h=5h = 5 then Mo=20+30−12(30−12)+(30−18)⋅5=20+1830⋅5=23M_o = 20 + \frac{30 - 12}{(30 - 12) + (30 - 18)} \cdot 5 = 20 + \frac{18}{30} \cdot 5 = 23.

In plain words: The mode is the busiest spot. But if you only say "group [5;7)[5;7) is the busiest", you still do not know which part of the group is busy. The formula pulls the mode toward whichever neighbouring group is busier: if the group before is almost as busy, the mode shifts left; if the group after is busier, the mode moves right. Why divide by the sum of the two differences? So that the added part stays inside the class width and does not go beyond the interval.

Phrase by phrase
modal class
The group with the largest frequency in the table.Example: With frequencies 7, 14, 10, the second group is the modal class.
MoM_o
Notation for the mode; the formula takes the left endpoint of the busiest group and adds the part shifted toward the busier neighbouring group.Example: Group [20;25)[20;25), frequency 30, the two neighbouring groups have frequencies 12 and 18: Mo=20+1830⋅5=23M_o = 20 + \frac{18}{30} \cdot 5 = 23.
equal class widths
The condition for defining the mode of grouped data.Example: The groups [5;7)[5;7), [7;9)[7;9), [9;11)[9;11) all have length 2.
has more than one mode
When two or more groups share the largest frequency, each of those groups gives a mode.Example: With frequencies 5, 8, 3, 8, 2 there are two modal classes.

Common mistakesDividing by the number of groups instead of by the sample size nn when calculating the mean.

TipAfter calculating, check that the result lies within the range of the group you just used; if it falls outside, the formula was wrong.

Meaning and conclusion from the characteristic numbers

The measures of central tendency each give one number representing the whole sample, but each looks at the sample in its own way:

  • The mean uses all the data, suitable when you want to know the general level; but it is easily pulled off by a few very large or very small values.
  • The median only cares about the middle position, little affected by outliers, so use it when the sample has strongly uneven data.
  • Quartile shows how spread out the middle half of the data is: the narrower the range from Q1Q_1 to Q3Q_3, the more concentrated the data.
  • The mode shows the most common value, used when you want to know which size or type is most popular; the mode of grouped data approximates the mode of the original data sample and is also used to measure the central trend of the data sample.
  • The numbers computed from the grouped table (mean, median, quartile, mode) are only approximate values of the corresponding numbers of the original data sample, because each whole group has been replaced by its representative value.
  • Example conclusion: a height mode of about 153,3153,3 cm means students in that class are usually around that tall; a median of 4242 students means half the classes have no more than 42 students.
  • These characteristic numbers are also used in many other subjects and in practice: Biology (leaf length, livestock weight), Geography (temperature, average rainfall), Economics and Law education (salary levels, household spending).

In plain words: Four numbers like four storytellers telling the same story. The mean says "the whole class weighs about this much", the median says "the person in the middle weighs about this much", the quartile says "the middle half lies in this range", the mode says "this size is the most popular". When to use which? If the sample has one student who is much taller, the mean gets pulled up, and then the median is more trustworthy. But when you need to know which size customers prefer so you can stock up, the mode is the answer.

Phrase by phrase
measure the central trend
Find a number in the middle that represents the whole data sample.Example: The average height of the class is a measure of central trend.
easily pulled off by a few very large or very small values
A few unusual data points make the mean change strongly.Example: If 9 people earn 10 million and one earns 200 million, the mean jumps to 29 million.
the narrower the range from Q1Q_1 to Q3Q_3, the more concentrated the data
The length of the quartile range shows how even the middle half of the data is.Example: Q1=15,25Q_1 = 15,25, Q3=20Q_3 = 20 then the middle half stretches from 15.25 to 20.
the most common value
Meaning of the mode: the group with the largest frequency.Example: If shoe size 39 sells best, the mode is 39.

Use spreadsheet software to compute the characteristic numbers

Spreadsheet software (Excel, Google Sheets, LibreOffice Calc) helps quickly compute the characteristic numbers of grouped data. How to do it:

  • Enter one group per row: column AA is the left endpoint aia_i, column BB is the right endpoint ai+1a_{i+1}, column CC is the frequency mim_i.
  • Column DD is the representative value: in cell D2D2 type the formula =(A2+B2)/2=(A2+B2)/2 then drag it down to the end of the table.
  • Sample size: =SUM(C2:Ck)=\text{SUM}(C2:Ck) where kk is the last row of the table.
  • Mean: =SUMPRODUCT(C2:Ck,D2:Dk)/SUM(C2:Ck)=\text{SUMPRODUCT}(C2:Ck,D2:Dk)/\text{SUM}(C2:Ck).
  • Cumulative frequency: in cell E2E2 type =C2=C2, in cell E3E3 type =E2+C3=E2+C3 then drag down; look at column EE to find the group containing the median, Q1Q_1, Q3Q_3.
  • Mode: find the largest frequency with =MAX(C2:Ck)=\text{MAX}(C2:Ck) to identify the modal class.

The software only does the addition, multiplication and division for you; choosing the right group and substituting the right numbers into the formulas for median, quartile and mode is still up to you.

In plain words: The machine does not understand a grouped table by itself, you have to show it one group per row along with its frequency. Once you have the representative values and frequencies, the mean is just a multiplication then a division. For the median, quartile and mode, the machine adds up the frequencies and computes for you, but choosing the group is still yours: look at the cumulative frequency column to see which group the marks n4\frac{n}{4}, n2\frac{n}{2}, 3n4\frac{3n}{4} fall into.

Phrase by phrase
SUMPRODUCT
A function that multiplies each pair of cells then adds them up, exactly the numerator of the mean formula.Example: Frequencies 6; 14 multiplied by representative values 152.5; 157.5 give 6⋅152,5+14⋅157,5=31206 \cdot 152,5 + 14 \cdot 157,5 = 3120.
Cumulative frequency
A column that adds up the frequencies, used to choose the group containing the median and quartile.Example: Frequencies 6; 14; 12; 8 give the cumulative column 6; 20; 32; 40.
MAX
A function that returns the largest frequency, helping detect the modal class.Example: MAX of 6; 14; 12; 8 is 14.

TipThree thresholds to remember: n4\frac{n}{4} for Q1Q_1, n2\frac{n}{2} for the median, 3n4\frac{3n}{4} for Q3Q_3; just count the cumulative frequency until it passes the threshold and you have the group.

TipThe formulas for the median and the quartiles share one pattern: left endpoint plus (threshold minus the cumulative frequency before the group) divided by the group frequency, times the class width.

Worked examples

Example 1

Given grouped data on the weight (kg) of 42 students in class 11D:
Group [40;45)[40;45): 10; group [45;50)[45;50): 7; group [50;55)[50;55): 16; group [55;60)[55;60): 4; group [60;65)[60;65): 2; group [65;70)[65;70): 3.
Compute the mean of the data sample (round to the hundredths place).

Show the solution to example 1

Step 1: Calculate the representative value of each group: 42,542,5; 47,547,5; 52,552,5; 57,557,5; 62,562,5; 67,567,5.
Why: The representative value is the average of the two endpoints, for example 40+452=42,5\frac{40 + 45}{2} = 42,5.
Step 2: Sample size n=10+7+16+4+2+3=42n = 10 + 7 + 16 + 4 + 2 + 3 = 42.
Step 3: Numerator: 10⋅42,5+7⋅47,5+16⋅52,5+4⋅57,5+2⋅62,5+3⋅67,5=425+332,5+840+230+125+202,5=215510 \cdot 42,5 + 7 \cdot 47,5 + 16 \cdot 52,5 + 4 \cdot 57,5 + 2 \cdot 62,5 + 3 \cdot 67,5 = 425 + 332,5 + 840 + 230 + 125 + 202,5 = 2155.
Step 4: x‾=215542≈51,31\overline{x} = \frac{2155}{42} \approx 51,31.
Result: x‾≈51,31\overline{x} \approx 51,31 kg.

Example 2

The time (in minutes) spent on the Internet each evening by 56 students is given in the table:
[9,5;12,5)[9,5;12,5): 3; [12,5;15,5)[12,5;15,5): 12; [15,5;18,5)[15,5;18,5): 15; [18,5;21,5)[18,5;21,5): 24; [21,5;24,5)[21,5;24,5): 2.
Calculate the median of this grouped data.

Show the solution to example 2

Step 1: Sample size n=3+12+15+24+2=56n = 3 + 12 + 15 + 24 + 2 = 56, so n2=28\frac{n}{2} = 28.
Step 2: Build the cumulative frequency: 3; 15; 30; 54; 56. The first group with cumulative frequency greater than or equal to 28 is the third group [15,5;18,5)[15,5;18,5).
Why: The second group only reaches 15, not yet 28; the third group reaches 30, so it contains the middle position.
Step 3: With p=3p = 3: a3=15,5a_3 = 15,5, m3=15m_3 = 15, m1+m2=15m_1 + m_2 = 15, class width 18,5−15,5=318,5 - 15,5 = 3.
Step 4: Me=15,5+28−1515⋅3=15,5+2,6=18,1M_e = 15,5 + \frac{28 - 15}{15} \cdot 3 = 15,5 + 2,6 = 18,1.
Result: Me=18,1M_e = 18,1 minutes.

Common mistakesFinding the group containing the median by comparing n2\frac{n}{2} with the frequency of each group on its own instead of with the cumulative frequency, so the wrong group is chosen.

Common mistakesForgetting the convention m0=0m_0 = 0 when the modal class is the first group, or forgetting mk+1=0m_{k+1} = 0 when it is the last group.

Example 3

Using the data table from example vd-02 (56 students, groups 3 minutes wide), calculate the first quartile Q1Q_1 and the third quartile Q3Q_3.

Show the solution to example 3

Step 1: n=56n = 56, so n4=14\frac{n}{4} = 14 and 3n4=42\frac{3n}{4} = 42.
Step 2: Cumulative frequency: 3; 15; 30; 54; 56. The first group to reach 14 is the second group [12,5;15,5)[12,5;15,5), so this group contains Q1Q_1.
Step 3: Q1=12,5+14−312⋅3=12,5+2,75=15,25Q_1 = 12,5 + \frac{14 - 3}{12} \cdot 3 = 12,5 + 2,75 = 15,25.
Why: Take the mark 14 minus the cumulative frequency before the group (3), divide by the group frequency (12) to find how much of the width 3 is needed.
Step 4: The first group to reach 42 is the fourth group [18,5;21,5)[18,5;21,5), so this group contains Q3Q_3.
Step 5: Q3=18,5+42−3024⋅3=18,5+1,5=20Q_3 = 18,5 + \frac{42 - 30}{24} \cdot 3 = 18,5 + 1,5 = 20.
Result: Q1=15,25Q_1 = 15,25; Q3=20Q_3 = 20 (minutes).

Example 4

The Maths test results of a class are grouped:
[5;7)[5;7): 5; [7;9)[7;9): 18; [9;11)[9;11): 10; [11;13)[11;13): 6.
Calculate the mode of the grouped data (round to the tenths place).

Show the solution to example 4

Step 1: The largest frequency is 18, which belongs to the second group [7;9)[7;9), so the modal class is [7;9)[7;9).
Step 2: Class width h=9−7=2h = 9 - 7 = 2; a2=7a_2 = 7; m2=18m_2 = 18; m1=5m_1 = 5; m3=10m_3 = 10.
Step 3: Mo=7+18−5(18−5)+(18−10)⋅2=7+1321⋅2≈7+1,24=8,24M_o = 7 + \frac{18 - 5}{(18 - 5) + (18 - 10)} \cdot 2 = 7 + \frac{13}{21} \cdot 2 \approx 7 + 1,24 = 8,24.
Why: The following group (10) is larger than the previous group (5), so the mode is pulled to the right, that is greater than 8, the middle point of the group.
Result: Mo≈8,2M_o \approx 8,2 points.

TipThe mode always lies in the largest group; if the next group is larger than the previous one, the mode is greater than the midpoint of the group, otherwise it is less.

Example 5

The height (cm) of 50 students in class 11A is grouped:
[145;150)[145;150): 6; [150;155)[150;155): 14; [155;160)[155;160): 10; [160;165)[160;165): 12; [165;170)[165;170): 8.
a) Calculate the mode. b) Calculate Q1Q_1 and Q3Q_3. c) From the results, draw a simple conclusion about the height of the class.

Show the solution to example 5

Step 1: a) The largest frequency is 14 in the group [150;155)[150;155), h=5h = 5, m1=6m_1 = 6, m3=10m_3 = 10.
Mo=150+14−6(14−6)+(14−10)⋅5=150+812⋅5≈153,33M_o = 150 + \frac{14 - 6}{(14 - 6) + (14 - 10)} \cdot 5 = 150 + \frac{8}{12} \cdot 5 \approx 153,33.
Step 2: b) n=50n = 50, n4=12,5\frac{n}{4} = 12,5, 3n4=37,5\frac{3n}{4} = 37,5. Cumulative frequency: 6; 20; 30; 42; 50.
Step 3: The first group to reach 12.5 is [150;155)[150;155), so Q1=150+12,5−614⋅5≈150+2,32=152,32Q_1 = 150 + \frac{12,5 - 6}{14} \cdot 5 \approx 150 + 2,32 = 152,32.
Step 4: The first group to reach 37.5 is [160;165)[160;165), so Q3=160+37,5−3012⋅5≈160+3,13=163,13Q_3 = 160 + \frac{37,5 - 30}{12} \cdot 5 \approx 160 + 3,13 = 163,13.
Why: Q1Q_1 and Q3Q_3 are the one-quarter and three-quarter marks, so half of the students in the middle of the class are about 152.3 cm to 163.1 cm tall.
Step 5: c) The mode of about 153.3 cm shows the most common height is around that level; the quartile range of about 10.8 cm wide shows that heights in the class are quite spread out.
Result: a) Mo≈153,3M_o \approx 153,3 cm; b) Q1≈152,32Q_1 \approx 152,32 cm, Q3≈163,13Q_3 \approx 163,13 cm; c) the class has a common height around 153 cm and is quite varied.

Example 6

The number of students in 100 classes is grouped, with cumulative frequency:
[36;38)[36;38): 9 (cumulative 9); [38;40)[38;40): 20 (29); [40;42)[40;42): 20 (49); [42;44)[42;44): 30 (79); [44;46)[44;46): 21 (100).
a) Find the median. b) A parent says "every class in this school has about 43 students". Is that reasonable?

Show the solution to example 6

Step 1: a) n=100n = 100, n2=50\frac{n}{2} = 50. The cumulative frequency 49 has not reached 50, the fourth group reaches 79, so the group containing the median is [42;44)[42;44).
Step 2: Me=42+50−4930⋅2=42+230≈42,07M_e = 42 + \frac{50 - 49}{30} \cdot 2 = 42 + \frac{2}{30} \approx 42,07.
Why: It is short by exactly 1 student compared with the mark 50, so the median is very close to the left endpoint 42.
Step 3: b) A median of about 42.07 means that half of the classes have no more than about 42 students, and the other half have more.
Step 4: The largest group is [42;44)[42;44) with 30 classes, the calculated mode is Mo=42+30−20(30−20)+(30−21)⋅2≈43,05M_o = 42 + \frac{30 - 20}{(30 - 20) + (30 - 21)} \cdot 2 \approx 43,05.
Step 5: The mode is about 43 but the median is only about 42, a difference of nearly 1 student; saying "every class has about 43" is too certain, because there are still 29 classes with fewer than 40 students.
Result: a) Me≈42,07M_e \approx 42,07 students; b) the remark is only partly right, not completely reasonable.

Example 7

A shoe shop recorded the shoe sizes sold in one month, in groups of width 1 size:
[36;37)[36;37): 8; [37;38)[37;38): 25; [38;39)[38;39): 40; [39;40)[39;40): 22; [40;41)[40;41): 5.
a) Calculate the mode and the mean. b) Which size should the shop stock in large quantities? If next month one customer buys 10 more pairs of size 45 (group [45;46)[45;46)), how does the mean change, and should it be used to decide what to stock?

Show the solution to example 7

Step 1: a) The largest frequency is 40 in group [38;39)[38;39), h=1h = 1, m1=25m_1 = 25, m3=22m_3 = 22.
Mo=38+40−25(40−25)+(40−22)⋅1=38+1533≈38,45M_o = 38 + \frac{40 - 25}{(40 - 25) + (40 - 22)} \cdot 1 = 38 + \frac{15}{33} \approx 38,45.
Step 2: Representative values: 36,536,5; 37,537,5; 38,538,5; 39,539,5; 40,540,5. Sample size n=8+25+40+22+5=100n = 8 + 25 + 40 + 22 + 5 = 100.
Step 3: x‾=8⋅36,5+25⋅37,5+40⋅38,5+22⋅39,5+5⋅40,5100=292+937,5+1540+869+202,5100=3841100=38,41\overline{x} = \frac{8 \cdot 36,5 + 25 \cdot 37,5 + 40 \cdot 38,5 + 22 \cdot 39,5 + 5 \cdot 40,5}{100} = \frac{292 + 937,5 + 1540 + 869 + 202,5}{100} = \frac{3841}{100} = 38,41.
Step 4: b) The mode is about 38.45 and the mean is about 38.41, both pointing to size 38, so stocking plenty of size 38 makes sense.
Step 5: Adding 10 pairs of size 45 gives n=110n = 110, x‾=3841+10⋅45,5110=4296110≈39,05\overline{x} = \frac{3841 + 10 \cdot 45,5}{110} = \frac{4296}{110} \approx 39,05, pulled up to nearly size 39; the largest group and its two neighbours do not change, so the mode is still about 38.45.
Why: The mean uses every value, so one very large value skews it; the mode only looks at the largest group, so it still reflects the best-selling size.
Conclusion: a) Mo≈38,45M_o \approx 38,45, x‾=38,41\overline{x} = 38,41; b) stock plenty of size 38, and rely on the mode rather than the mean when there is an outlier.

Common mistakesUsing the mean to draw a conclusion when the sample has an outlier, while the median is the one that is hardly skewed.

Example 8

Use spreadsheet software to calculate the mean and the mode for the data sample of the heights (cm) of 40 students:
[150;155)[150;155): 6; [155;160)[155;160): 14; [160;165)[160;165): 12; [165;170)[165;170): 8.

Show the solution to example 8

Step 1: Enter one row per group: column AA is the left endpoint, column BB is the right endpoint, column CC is the frequency.
Step 2: Column DD calculates the representative value with the formula =(A2+B2)/2=(A2+B2)/2, giving 152,5152,5; 157,5157,5; 162,5162,5; 167,5167,5.
Step 3: The sample size is =SUM(C2:C5)=\text{SUM}(C2:C5), giving n=6+14+12+8=40n = 6 + 14 + 12 + 8 = 40.
Step 4: The mean is =SUMPRODUCT(C2:C5,D2:D5)/SUM(C2:C5)=\text{SUMPRODUCT}(C2:C5,D2:D5)/\text{SUM}(C2:C5). The numerator is 6⋅152,5+14⋅157,5+12⋅162,5+8⋅167,5=915+2205+1950+1340=64106 \cdot 152,5 + 14 \cdot 157,5 + 12 \cdot 162,5 + 8 \cdot 167,5 = 915 + 2205 + 1950 + 1340 = 6410, so x‾=641040=160,25\overline{x} = \frac{6410}{40} = 160,25.
Step 5: Mode: the function =MAX(C2:C5)=\text{MAX}(C2:C5) gives the largest frequency as 14, which belongs to group [155;160)[155;160), with m1=6m_1 = 6, m3=12m_3 = 12, h=5h = 5. Substituting: Mo=155+14−6(14−6)+(14−12)⋅5=155+810⋅5=159M_o = 155 + \frac{14 - 6}{(14 - 6) + (14 - 12)} \cdot 5 = 155 + \frac{8}{10} \cdot 5 = 159.
Conclusion: x‾=160,25\overline{x} = 160,25 cm; Mo=159M_o = 159 cm, matching the hand calculation; the software just makes the adding and multiplying faster.

Common mistakesTaking the left endpoint of a group as the representative value when calculating the mean, for example taking 150 instead of 152.5 for group [150;155)[150;155).

Terms

Grouped data
A table dividing the data into groups [ai;ai+1)[{a_i};{a_{i + 1}}) with their frequencies.Example: Group [150;155)[150;155) has 7 students.
Representative value
The average of the two endpoints of the group.Example: The class interval [160;165)[160;165) has representative value 162,5162,5.
Frequency
The number of data values falling into a group.Example: Group [155;160)[155;160) has frequency 10.
Cumulative frequency
The sum of the frequencies of the groups from the first up to the group being considered.Example: With frequencies 3, 12, 15, the cumulative frequency of the third group is 30.
Mean
The weighted average of the representative values, denoted x‾\overline{x}.Example: x‾=2⋅5+3⋅105=8\overline{x} = \frac{2 \cdot 5 + 3 \cdot 10}{5} = 8.
Median
The value that divides the sorted sample into two equal halves, denoted MeM_e.Example: Me=18,1M_e = 18,1 minutes.
Quartiles
The three thresholds Q1Q_1, Q2Q_2, Q3Q_3 divide the sample into four parts.Example: Q1=15,25Q_1 = 15,25, Q3=20Q_3 = 20.
Mode
The value corresponding to the group with the largest frequency, denoted MoM_o.Example: Mo≈153,3M_o \approx 153,3 cm.
Sample size
The total number of data values, equal to the sum of the frequencies, denoted nn.Example: n=3+12+15+24+2=56n = 3 + 12 + 15 + 24 + 2 = 56.

Practise this lesson with instant marking and saved progress in the study app. Suggested plan: Class lessons plan, Maths 11.

Practice

Answer each question, then press Check. If you get stuck, open the hints under the question one step at a time.

Question 1 of 1Written answer · Applying

A commune health station recorded the weights (unit: kg) of 40 newborns during the month and grouped them into the following table:

Weight: [2,5;3,0)[2{,}5; 3{,}0), [3,0;3,5)[3{,}0; 3{,}5), [3,5;4,0)[3{,}5; 4{,}0), [4,0;4,5)[4{,}0; 4{,}5), [4,5;5,0)[4{,}5; 5{,}0).

Number of babies: 4; 10; 14; 9; 3.

a) Calculate the mean weight of a baby in the grouped data above.
b) Calculate the median and the mode of the grouped data.
c) Calculate the first quartile Q1Q_1. The health station considers a baby underweight if its weight is below 3.5 kg. Based on Q1Q_1, can we conclude that at least one quarter of the babies in the sample are underweight? According to the table, what percentage of the babies are underweight?

Do this question in your notebook and show every step. When you finish, press the button below to compare with the mark scheme.

Asking the teacher while practising is for children who have a profile. It is free to turn on: Parent sign-in.

More practice questions for you

Additional exercises

  • Giải thích ý nghĩa, so sánh hai mẫu bằng các số đặc trưng (Applying)

Challenge yourself

  • Tìm trung vị, tứ phân vị của mẫu số liệu ghép nhóm (Applying)
  • Tìm nhóm chứa mốt và tính mốt của mẫu số liệu ghép nhóm (Applying)
  • Tìm giá trị đại diện và số trung bình của mẫu số liệu ghép nhóm (Applying)

Ask a parent to sign in and create your profile to unlock more. It's free. Sign in