Notes on Lesson 1: Measures of central tendency for grouped data (Maths 11 Canh Dieu, Chapter V)
Lesson summary
Grouped data is data given in the form of a grouped frequency table.
+ Count the number of values of the data that belong to each class interval (frequency) and set up a grouped frequency table.
Picture grouped data like sorting students into rooms by total score: each room takes those with scores in a range, and we only record how many students are in each room.
This content is not yet available in English. It is shown below in the original Vietnamese.
- Đọc, giải thích mẫu số liệu ghép nhóm
- 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
A school wants to know the average height of its grade 11 students, the height below which half the students fall, and the range where the most common height usually lies. The data collected is given as a grouped table like , , not as individual heights. This lesson helps you read and explain grouped data and calculate the mean, median, quartile and mode from a grouped table, and understand what each of these numbers says about real life.
Key ideas: what do you need to know?
Grouped data
- Grouped data is data given in the form of a grouped frequency table.
- Each class interval contains a number of values of the data sample grouped by a given criterion, of the form , where is the left endpoint and is the right endpoint. The class width is .
- The frequency of a class interval is the number of values in the sample that belong to that class interval. The frequencies of class interval 1, class interval 2, ..., class interval are denoted respectively by .
- The grouped frequency table is set up as in Table 1, where the data sample of values is divided into class intervals corresponding to half-intervals , , ..., , where and .
- Example: The table of total scores in three subjects has class intervals , , ..., , with the corresponding numbers of candidates. The class interval has 192 candidates, meaning 192 candidates got a total score from 7 to under 8.
In plain words: Picture grouped data like sorting students into rooms by total score: each room takes those with scores in a range, and we only record how many students are in each room. Reading the table lets you answer: which class interval has the most values, how many values are below a certain mark, and what the total sample size is. Note the notation : it includes but not . So a value exactly equal to belongs to the next class interval, which means each value falls into exactly one class interval.
Phrase by phrase
- Grouped data
- The data is presented as groups of values and the frequency of each group.Example: The class interval has frequency 12.
- left endpoint
- The number of class interval , the smallest value is counted in the class interval.Example: The class interval has left endpoint 20.
- right endpoint
- The number of class interval , it does not belong to that class interval (unless the last class interval includes the right endpoint too).Example: The value 25 does not belong to but belongs to .
Grouping the data. Cumulative frequency
- To turn ungrouped data into grouped data, we do the following:
+ Divide the range of values of the data into a number of class intervals by a given criterion;
+ Count the number of values of the data that belong to each class interval (frequency) and set up a grouped frequency table.
- Note: When grouping data, we usually divide into class intervals of equal width, and the endpoints of the class intervals may not be values of the data. The last class interval may be .
- The cumulative frequency of a class interval is the number of values in the data sample that are less than the right endpoint of that class interval. The cumulative frequencies of class interval 1, class interval 2, ..., class interval are denoted respectively by .
- The grouped frequency table including cumulative frequency is set up as in Table 2.
- Example: The running times (minutes) of 30 athletes have a minimum value of 129, a maximum of 145, and a range of . Divide into six class intervals of width 3 (total width 18), choose the left endpoint of the first class interval as : the class intervals , , ..., .
In plain words: Grouping follows a clear order: find the minimum and maximum values, calculate the range; choose the number of class intervals and the class width so that the total width is greater than the range; choose the left endpoint of the first class interval slightly less than the minimum value; then count. When the data are integers, choosing endpoints with decimal part like is a handy trick: no value falls exactly on an endpoint, so you don't have to wonder which class interval it belongs to. After counting, add the frequencies to check that they equal the sample size. Cumulative frequency is the running total of frequencies from the first class interval to the current one, often used when finding the median and quartile.
Phrase by phrase
- Cumulative frequency
- The sum of the frequencies from the first class interval to the current one.Example: With frequencies 3, 12, 15, the cumulative frequency up to class interval 3 is 30.
- Class width
- The right endpoint minus the left endpoint.Example: The class interval has width 3.
- range
- The difference between the maximum value and the minimum value of the data sample.Example: If the sample has values from 129 to 145, the range is 16.
The mean of grouped data
- Given grouped data as in Table 3, where the representative value of a group is the midpoint of the half-interval (calculated as the average of the two endpoints) corresponding to group .
- The mean of the grouped data, denoted , is calculated by the formula:
- Example: Group has representative value ; if this group has 7 students, it contributes to the numerator.
In plain words: Each group is an interval, with no specific number to add. Imagine the whole group bunched up at the middle of the interval, taking the average of the two endpoints as the representative. Everyone in group is counted as being cm tall. Why is that reasonable? Because the students in the group 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 bigger group has a louder voice.
Phrase by phrase
- representative value
- A single number standing in for the whole group, equal to the average of the two endpoints.Example: Group has representative value .
- Sample size
- The sum of all the quantitative data, equal to the sum of the frequencies.Example: Three groups with frequencies 7, 10, 5 give .
- Mean
- Formula : multiply each frequency by the representative value, add them up, then divide by the sample size.Example: Two groups: , ; , give .
Common mistakesTaking the left endpoint of the class as the representative value when calculating the mean, for example taking 150 instead of 152.5 for the class . You must take the average of the two endpoints.
Median of grouped data
- Given grouped data including cumulative frequency as in Table 2.
- Suppose group is the first group with cumulative frequency greater than or equal to , that is, but . Let be the left endpoint, length, and frequency of group respectively; is the cumulative frequency of group .
- The median of the grouped data, denoted , is calculated by the formula:
- Convention: .
- Example: if then , the first group whose cumulative frequency reaches 28 is exactly the group containing the median.
In plain words: The median is the spot that “splits the troops in half”. Line the whole class up by height, and the student in the middle is the median. With a grouped table, you don't know where each student stands, so you have to find which group contains the middle position. Add up the frequencies from the lowest group upward, and the group that reaches or passes half the sample size contains the median. Why does the formula have a part multiplied by the class width? Because within that group, the data are treated as spread evenly, so however much of the group you need, you add that much of the length.
Phrase by phrase
- cumulative frequency
- The sum of the frequencies from the first class interval to the current one.Example: With frequencies 3, 12, 15, the cumulative frequency up to class interval 3 is 30.
- group containing the median
- The first group with cumulative frequency greater than or equal to .Example: , the group with cumulative frequency 30 is the group containing the median.
- Notation for the median; the formula takes the left endpoint of the group containing the median and adds the missing part, calculated by proportion within the group.Example: Groups , , , : .
Quartiles of grouped data
- Given grouped data including cumulative frequency as in Table 2.
- The second quartile, denoted , equals the median .
- Suppose group is the first group with cumulative frequency greater than or equal to , that is, but . Let be the left endpoint, length, and frequency of group respectively; is the cumulative frequency of group .
- The first quartile, denoted , is calculated by the formula:
- Suppose group is the first group with cumulative frequency greater than or equal to , that is, but . Let be the left endpoint, length, and frequency of group respectively; is the cumulative frequency of group .
- The third quartile, denoted , is calculated by the formula:
- For or , convention .
In plain words: The median splits in two, the quartiles split in four. Picture a line of students sorted by height: is the student at the one-quarter mark, is the middle one, is the student at the three-quarter mark. Finding them works just like the median, only the mark to reach changes: for , for , for . The range from to contains half the students in the middle, so it shows how “typical” the whole class is.
Phrase by phrase
- Quartile
- The three marks , , divide the sorted sample into four equal parts.Example: gives at mark 14, at mark 28, at mark 42.
- First quartile
- Formula for the first quartile, same form as the median but with mark .Example: Groups , , , : .
- Third quartile
- Formula for the third quartile, with mark .Example: Groups , , , : .
- is exactly the median
- The halfway mark is both the second quartile and the median.Example: : .
TipThree marks to remember: for , for the median, for ; just count the cumulative frequency until it reaches or passes the mark and you have the class.
TipThe formulas for the median and the quartiles follow the same pattern: left endpoint plus (mark minus the cumulative frequency before the class) divided by the class frequency, multiplied by the class width.
Mode of grouped data
- Given grouped data as in Table 1.
- Suppose class is the class with the largest frequency. Let be respectively the left endpoint, the class width, and the class frequency of class ; let be respectively the frequency of class and class .
- The mode of the grouped data, denoted , is calculated by the formula:
- Convention: ; .
- Note: The mode is only defined for grouped data whose classes have equal width. A sample may have no mode or more than one mode; for example, when the class frequencies are equal, the grouped data has no mode.
- Example: class has frequency 30, the largest; the previous class has frequency 12, the next class has frequency 18, then .
In plain words: The mode is where the crowd is. But saying only "class is the most crowded" does not tell where in the class the crowd is. The formula pulls the mode toward the neighbouring class that is more crowded: if the previous class is almost as crowded, the mode shifts left; if the next class is more crowded, the mode shifts right. Why divide by the sum of the two differences? So that the added part stays within the class width and does not go outside the interval.
Phrase by phrase
- modal class
- The class with the largest frequency in the table.Example: With frequencies 7, 14, 10, the second class is the modal class.
- Denoted mode; the formula takes the left endpoint of the most crowded class and adds the part shifted toward the more crowded neighbouring class.Example: Class , frequency 30, the two neighbouring classes have frequencies 12 and 18: .
- classes of equal width
- The condition for defining the mode of grouped data.Example: The classes , , all have width 2.
- more than one mode
- When two or more classes share the largest frequency, each class gives one mode.Example: With frequencies 5, 8, 3, 8, 2, there are two modal classes.
Common mistakesDividing by the number of classes instead of dividing by the sample size when calculating the mean. The denominator must be the sum of the frequencies.
Worked examples
Example 1
Given grouped data on the weight (kg) of 42 students in class 11D:
Class : 10; class : 7; class : 16; class : 4; class : 2; class : 3.
Calculate the mean of the data (round to the hundredths place).
Show the solution to example 1
Step 1: Calculate the representative value of each class: ; ; ; ; ; .
Why: The representative value is the average of the two endpoints, for example .
Step 2: Sample size .
Step 3: Numerator: .
Step 4: .
Result: kg.
Example 2
The time (minutes) spent on the Internet each evening by 56 students is given by the table:
: 3; : 12; : 15; : 24; : 2.
Calculate the median of this grouped data.
Show the solution to example 2
Step 1: Sample size , so .
Step 2: Build the cumulative frequencies: 3; 15; 30; 54; 56. The first class with cumulative frequency greater than or equal to 28 is the third class .
Why: The second class only reaches 15, not yet 28; the third class reaches 30, so it contains the middle position.
Step 3: With : , , , class width .
Step 4: .
Result: minutes.
Common mistakesFinding the class containing the median by comparing with the frequency of each individual class instead of with the cumulative frequency, so you pick the wrong class. You must compare with the cumulative frequency.
Example 3
Using the data table of example 2 (56 students, classes of width 3 minutes), calculate the first quartile and the third quartile .
Show the solution to example 3
Step 1: , so and .
Step 2: Cumulative frequencies: 3; 15; 30; 54; 56. The first class to reach 14 is the second class , so this class contains .
Step 3: .
Why: Take the mark 14, subtract the cumulative frequency before the class (3), divide by the class frequency (12) to find how much of the width 3 is needed.
Step 4: The first class to reach 42 is the fourth class , so this class contains .
Step 5: .
Result: ; (minutes).
Example 4
The Math test results of a class are grouped:
: 5; : 18; : 10; : 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 class , so the modal class is .
Step 2: Class width ; ; ; ; .
Step 3: .
Why: The next class (10) is more crowded than the previous class (5), so the mode is pulled to the right, that is, greater than 8, the middle of the class.
Result: points.
Common mistakesForgetting the convention when the modal class is the first class, or forgetting when it is the last class, which leads to a wrong mode formula.
TipThe mode always lies in the most crowded class; if the next class is more crowded than the previous one, the mode is greater than the midpoint of the class, otherwise it is less.
Example 5
Heights (cm) of 50 students in class 11A grouped into intervals:
: 6; : 14; : 10; : 12; : 8.
a) Find the mode. b) Find and . c) From the results, draw a simple conclusion about the heights in the class.
Show the solution to example 5
Step 1: a) The largest frequency is 14 in the class , , , .
.
Step 2: b) , , . Cumulative frequencies: 6; 20; 30; 42; 50.
Step 3: The first class reaching 12.5 is , so .
Step 4: The first class reaching 37.5 is , so .
Why: and are the one-quarter and three-quarter marks, so half of the students in the middle of the class are between about 152.3 cm and 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) cm; b) cm, cm; c) the class has a most common height around 153 cm and is quite varied.
Common mistakesMixing up the quartile marks: using for or for . The correct marks are for and for .
Example 6
The numbers of students in 100 classes are grouped into intervals, with cumulative frequencies:
: 9 (cumulative 9); : 20 (29); : 20 (49); : 30 (79); : 21 (100).
a) Find the median. b) A parent says "every class in this school has about 43 students". Is that remark reasonable?
Show the solution to example 6
Step 1: a) , . The cumulative frequency 49 has not reached 50, the fourth class reaches 79, so the class containing the median is .
Step 2: .
Why: It is short by exactly 1 student compared with the mark 50, so the median lies 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 most crowded class is with 30 classes, the mode is calculated as .
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) students; b) the remark is only partly right, not fully reasonable.
Terms
- Grouped data
- The data sample is given as a frequency table of class intervals.Example: A table of numbers of students by height interval.
- Class interval
- A set of values grouped by one criterion, usually of the form .Example: The class minutes.
- Left endpoint, right endpoint
- The two numbers and of the class .Example: The class has left endpoint 5 and right endpoint 10.
- Class width
- Equal to for the class .Example: The class has width 5.
- Class frequency
- The number of values in the sample that belong to that class.Example: If 12 students are from 150 to under 155 cm tall, the frequency is 12.
- Cumulative frequency
- The sum of the frequencies of the classes from the first up to the class being considered.Example: With frequencies 3, 12, 15, the cumulative frequency of the third class is 30.
- Representative value
- The average of the two endpoints of the class.Example: Group has representative value .
- Mean
- The weighted average of the representative values, denoted .Example: .
- Median
- The value that divides the sorted sample into two equal halves, denoted .Example: minutes.
Practise similar problems
Practice questions from the Ket noi tri thuc series on the same ideas as this lesson. Answer each one and get it marked straight away.
- Tìm giá trị đại diện và số trung bình của mẫu số liệu ghép nhóm
- Tìm nhóm chứa mốt và tính mốt của mẫu số liệu ghép nhóm
- Tìm trung vị, tứ phân vị của mẫu số liệu ghép nhóm
- Giải thích ý nghĩa, so sánh hai mẫu bằng các số đặc trưng
- Đọc bảng tần số ghép nhóm: số nhóm, độ dài nhóm, đầu mút, tần số
- Ghép nhóm một mẫu số liệu và lập bảng tần số ghép nhóm