Learning Objectives
Terminology:
· Mean (arithmetic average)
· Median
· Quartiles (Q1,Q2,Q3)
· Mode
· Class midpoint (class mark), cumulative frequency
Knowledge and Skills:
· Compute measures of central tendency for grouped data proficiently: mean, median, quartiles, and mode.
· Understand the statistical meaning and role of each measure to appropriately describe the distribution of empirical data.
· Adjust discrete integer intervals of the form k1−k2 to continuous class boundaries [k1−0.5;k2+0.5) prior to calculations.
· Apply central tendency measures to solve practical statistical problems (fuel expenditure, body weights, study duration, sleep duration, exam scores, battery lifespan).
Mean of Grouped Data
Computation Formula:
Let a grouped dataset consist of k class intervals [ai;a_i+1) with corresponding frequencies mi (i=1,2,…,k).
• The class midpoint (representative value) of the interval [ai;a_i+1) is the average of its boundaries:
xi=2ai+a_i+1
• The sample mean of the grouped data, denoted by x, is given by:
x=nm1x1+m2x2+⋯+mkxk
where n=m1+m2+⋯+mk is the total sample size.
Note: For discrete integer data given as classes k1−k2 (k1,k2∈N), adjust them to continuous intervals [k1−0.5;k2+0.5) before determining midpoints and evaluating statistics.
b) Illustrative Examples and Practice on the Mean
Example 1: Find the mean weight of 42 students in class 11D given in the table:
• [40.5;45.5): 10 students;
• [45.5;50.5): 7 students;
• [50.5;55.5): 16 students;
• [55.5;60.5): 4 students;
• [60.5;65.5): 2 students;
• [65.5;70.5): 3 students.
Solution for Example 1:
• Determine the class midpoints xi for each interval:
x1=43;x2=48;x3=53;x4=58;x5=63;x6=68.
• Total number of students is n=42.
• The mean weight is:
x=4210⋅43+7⋅48+16⋅53+4⋅58+2⋅63+3⋅68=422,176≈51.81 (kg).
Practice 1: A survey on television viewing time during the previous week (in hours) among students yielded:
• [0;5): 8 students; [5;10): 16 students; [10;15): 4 students; [15;20): 2 students; [20;25): 2 students.
Calculate the average weekly television viewing time for these students.
Solution for Practice 1:
• Sample size: n=8+16+4+2+2=32 students.
• Class midpoints: 2.5;7.5;12.5;17.5;22.5.
• The mean viewing time is:
x=328(2.5)+16(7.5)+4(12.5)+2(17.5)+2(22.5)=3220+120+50+35+45=32270=8.4375 (hours).
Procedure for Determining the Median:
• Step 1: Identify the median class. Suppose it is the p-th class: [ap;a_p+1). This is the first class interval whose cumulative frequency is greater than or equal to 2n.
• Step 2: Apply the linear interpolation formula for the median Me:
Me=ap+mp2n−(m1+m2+⋯+m_p−1)⋅(a_p+1−ap)
where n is the sample size, mp is the frequency of the median class, and ap,a_p+1 are the class boundaries (by convention, m1+⋯+m_p−1=0 when p=1).
Example 2: Evening Internet access time (in minutes) of students is recorded as follows:
• [9.5;12.5): 3 students; [12.5;15.5): 12 students;
• [15.5;18.5): 15 students; [18.5;21.5): 24 students; [21.5;24.5): 2 students.
Compute the median of this grouped dataset.
Solution for Example 2:
• Sample size: n=3+12+15+24+2=56⇒2n=28.
• Cumulative frequencies: cf1=3;cf2=15;cf3=30>28. Hence, the median class is the 3rd class: [15.5;18.5).
• Parameters: p=3,a3=15.5,m3=15,cf2=15,h=18.5−15.5=3.
• The median is:
Me=15.5+1528−15⋅3=15.5+1513⋅3=15.5+2.6=18.1 (minutes).
Practice 2: Serve speeds (km/h) recorded across 200 serves by a tennis player:
• [150;155): 18 serves; [155;160): 28 serves; [160;165): 35 serves;
• [165;170): 43 serves; [170;175): 41 serves; [175;180): 35 serves.
Find the median serve speed.
Solution for Practice 2:
• Sample size n=200⇒2n=100.
• Cumulative frequencies: cf1=18;cf2=46;cf3=81;cf4=124>100. The median class is the 4th class: [165;170).
• Applying the formula with a4=165,m4=43,cf3=81,h=5:
Me=165+43100−81⋅5=165+4319⋅5=165+4395≈167.21 (km/h).
Quartiles of Grouped Data
The second quartile coincides with the median: Q2=Me.
First Quartile Q1:
• The class containing Q1 is the p-th class: [ap;a_p+1), which is the first class whose cumulative frequency is at least 4n.
Q1=ap+mp4n−(m1+m2+⋯+m_p−1)⋅(a_p+1−ap)
Third Quartile Q3:
• The class containing Q3 is the q-th class: [aq;a_q+1), which is the first class whose cumulative frequency is at least 43n.
Q3=aq+mq43n−(m1+m2+⋯+m_q−1)⋅(a_q+1−aq)
b) Illustrative Examples and Practice on Quartiles
Example 3: Find the first quartile Q1 and third quartile Q3 for the Internet usage dataset in Example 2 (n=56).
Solution for Example 3:
• Calculating Q1:
We have 4n=456=14. Cumulative frequencies: cf1=3,cf2=15>14. The class containing Q1 is [12.5;15.5).
Q1=12.5+1214−3⋅3=12.5+411=15.25 (minutes).
• Calculating Q3:
We have 43n=43⋅56=42. Cumulative frequencies: cf3=30,cf4=54>42. The class containing Q3 is [18.5;21.5).
Q3=18.5+2442−30⋅3=18.5+2412⋅3=18.5+1.5=20 (minutes).
Practice 3: Find the first and third quartiles for the tennis serve speed dataset in Practice 2 (n=200).
Solution for Practice 3:
• Cumulative frequencies: cf1=18;cf2=46;cf3=81;cf4=124;cf5=165;cf6=200.
• Finding Q1: 4n=50. Since cf2=46<50<cf3=81, the class containing Q1 is [160;165).
Q1=160+3550−46⋅5=160+354⋅5=160+74≈160.57 (km/h).
• Finding Q3: 43n=150. Since cf4=124<150<cf5=165, the class containing Q3 is [170;175).
Q3=170+41150−124⋅5=170+4126⋅5=170+41130≈173.17 (km/h).
Mode of Grouped Data
Procedure for Determining the Mode Mo:
• Step 1: Identify the modal class (the class interval with the largest frequency), denoted by [aj;a_j+1).
• Step 2: Apply the formula:
Mo=aj+(mj−m_j−1)+(mj−m_j+1)mj−m_j−1⋅h
where mj is the frequency of the modal class (convention: m0=m_k+1=0), m_j−1 and m_j+1 are frequencies of adjacent preceding and succeeding classes, and h=a_j+1−aj is the class width.
Note: The mode is defined strictly for grouped data with equal class widths. If all classes have identical frequencies, the distribution has no mode.
b) Illustrative Examples and Practice on the Mode
Example 4: Heights (in cm) of 50 students in class 11A:
• [145;150): 7 students; [150;155): 14 students; [155;160): 10 students;
• [160;165): 10 students; [165;170): 9 students.
Compute the mode of this grouped dataset.
Solution for Example 4:
• The maximum frequency is 14, so the modal class is [150;155).
• Parameters: j=2,a2=150,m2=14,m1=7,m3=10,h=5.
• The mode is:
Mo=150+(14−7)+(14−10)14−7⋅5=150+7+47⋅5=150+1135≈153.18 (cm).
Interpretation: The height value around 153.18 cm occurs with the greatest relative frequency.
Practice 4: Time (in minutes) required for students to complete an exam question:
• [0.5;10.5): 2 students; [10.5;20.5): 10 students; [20.5;30.5): 6 students;
• [30.5;40.5): 4 students; [40.5;50.5): 3 students.
Find the mode of this grouped dataset.
Solution for Practice 4:
• Maximum frequency is 10, so the modal class is [10.5;20.5).
• Parameters: a2=10.5,m2=10,m1=2,m3=6,h=10.
• The mode is:
Mo=10.5+(10−2)+(10−6)10−2⋅10=10.5+8+48⋅10=10.5+1280=10.5+6.67≈17.17 (minutes).
Applications and Exercises
a) Comprehensive Real-World Applications
Application (Fuel Purchase Expenditure Estimation): Gasoline sales recorded for 35 motorcyclists (Table 3.1):
• [0;30): 3 customers; [30;60): 15 customers; [60;90): 10 customers; [90;120): 7 customers.
Calculate the measures of central tendency (mean, median, quartiles, mode) and interpret their significance.
Solution for Application:
• 1. Sample Mean:
Midpoints: x1=15;x2=45;x3=75;x4=105.
x=353(15)+15(45)+10(75)+7(105)=3545+675+750+735=352,205=63 (thousand VND).
• 2. Median Me (n=35⇒2n=17.5):
Cumulative frequencies: cf1=3;cf2=18>17.5. Median class is [30;60).
Me=30+1517.5−3⋅30=30+1514.5⋅30=30+29=59 (thousand VND).
• 3. Quartiles Q1,Q3:
+ 4n=8.75. Class containing Q1 is [30;60) (cf1=3<8.75<cf2=18):
Q1=30+158.75−3⋅30=30+2(5.75)=41.5 (thousand VND).
+ 43n=26.25. Class containing Q3 is [60;90) (cf2=18<26.25<cf3=28):
Q3=60+1026.25−18⋅30=60+3(8.25)=84.75 (thousand VND).
• 4. Mode Mo:
Modal class is [30;60) with m1=3,m2=15,m3=10,h=30.
Mo=30+(15−3)+(15−10)15−3⋅30=30+12+512⋅30=30+17360≈51.18 (thousand VND).
b) Detailed Section Exercises
Exercise 3.4: Commuting distances (in km) from home to workplace for 40 factory workers:
5, 3, 10, 20, 25, 11, 13, 7, 12, 31, 19, 10, 12, 17, 18, 11, 32, 17, 16, 2, 7, 9, 7, 8, 3, 5, 12, 15, 18, 3, 12, 14, 2, 9, 6, 15, 15, 7, 6, 12.
a) Group the dataset into equal-width classes of width 5, starting with [0;5). Identify the midpoint of each class.
b) Compute the mean for the ungrouped data and the grouped data. Which value is more accurate?
c) Determine the modal class of the grouped data.
Solution for Exercise 3.4:
• a) Grouped frequency distribution across 7 intervals of width 5:
+ [0;5): frequency 5, midpoint 2.5;
+ [5;10): frequency 9, midpoint 7.5;
+ [10;15): frequency 11, midpoint 12.5;
+ [15;20): frequency 9, midpoint 17.5;
+ [20;25): frequency 2, midpoint 22.5;
+ [25;30): frequency 1, midpoint 27.5;
+ [30;35): frequency 3, midpoint 32.5.
• b) Computing the mean:
+ Ungrouped raw mean: x_raw=40∑xi=40498=12.45 km.
+ Grouped mean: x_grouped=405(2.5)+9(7.5)+11(12.5)+9(17.5)+2(22.5)+1(27.5)+3(32.5)=40515=12.875 km.
The raw mean x_raw=12.45 km is more accurate because it computes directly from exact individual data points.
• c) The highest frequency is 11, so the modal class is [10;15).
Exercise 3.5: Operational lifespan (in years) of 50 automotive batteries:
• [2;2.5): 4; [2.5;3): 9; [3;3.5): 14; [3.5;4): 7; [4;4.5): 11; [4.5;5): 5.
a) Determine the mode and interpret its meaning.
b) Calculate the mean lifespan of these 50 automotive batteries.
Solution for Exercise 3.5:
• a) The highest frequency is 14 in class [3;3.5). With a3=3,m3=14,m2=9,m4=7,h=0.5:
Mo=3+(14−9)+(14−7)14−9⋅0.5=3+5+75⋅0.5=3+122.5≈3.21 (years).
Interpretation: The battery lifespan occurring with highest density is approximately 3.21 years.
• b) Midpoints: 2.25;2.75;3.25;3.75;4.25;4.75.
x=504(2.25)+9(2.75)+14(3.25)+7(3.75)+11(4.25)+5(4.75)=509+24.75+45.5+26.25+46.75+23.75=50176=3.52 (years).
Exercise 3.6: Mathematics exam scores (on a 100-point scale rounded to integers) of 60 candidates: 0-9 (1); 10-19 (2); 20-29 (4); 30-39 (6); 40-49 (15); 50-59 (12); 60-69 (10); 70-79 (6); 80-89 (3); 90-99 (1).
a) Adjust the discrete classes into continuous standard intervals [ai;a_i+1).
b) Find the quartiles and interpret their statistical meaning.
Solution for Exercise 3.6:
• a) Adjusted continuous intervals: [−0.5;9.5) (1); [9.5;19.5) (2); [19.5;29.5) (4); [29.5;39.5) (6); [39.5;49.5) (15); [49.5;59.5) (12); [59.5;69.5) (10); [69.5;79.5) (6); [79.5;89.5) (3); [89.5;99.5) (1).
• b) Sample size n=60.
+ Calculating Q1 (4n=15): Cumulative frequencies: cf3=7,cf4=13,cf5=28>15. Class containing Q1 is [39.5;49.5):
Q1=39.5+1515−13⋅10=39.5+1520≈40.83.
+ Calculating Q2=Me (2n=30): Cumulative frequencies cf5=28<30<cf6=40. Class containing Q2 is [49.5;59.5):
Q2=49.5+1230−28⋅10=49.5+1220≈51.17.
+ Calculating Q3 (43n=45): Cumulative frequencies cf6=40<45<cf7=50. Class containing Q3 is [59.5;69.5):
Q3=59.5+1045−40⋅10=59.5+5=64.5.
Interpretation: Approximately 25% of candidates scored below 40.83; 50% scored below 51.17; and 75% scored below 64.5.
Exercise 3.7: Nightly sleep duration (in hours) among male students (45 boys) and female students (41 girls):
• [4;5): 6 boys, 4 girls; [5;6): 10 boys, 8 girls; [6;7): 13 boys, 10 girls; [7;8): 9 boys, 11 girls; [8;9): 7 boys, 8 girls.
a) Compare the average sleep duration between boys and girls.
b) Determine the minimum number of hours that 75% of Grade 11 students sleep each night.
Solution for Exercise 3.7:
• a) Midpoints: 4.5;5.5;6.5;7.5;8.5.
+ Boys (n1=45): x_1=456(4.5)+10(5.5)+13(6.5)+9(7.5)+7(8.5)=4527+55+84.5+67.5+59.5=45293.5≈6.52 hours.
+ Girls (n2=41): x_2=414(4.5)+8(5.5)+10(6.5)+11(7.5)+8(8.5)=4118+44+65+82.5+68=41277.5≈6.77 hours.
The average sleep duration of female students (6.77 hours) is slightly higher than that of male students (6.52 hours).
• b) Combining all Grade 11 students (n=45+41=86 students):
Aggregated table: [4;5) has 10; [5;6) has 18; [6;7) has 23; [7;8) has 20; [8;9) has 15.
The threshold where 75% of students sleep at least that amount corresponds to the 1st quartile Q1 (since 25% sleep less than Q1 and 75% sleep Q1 or more).
With n=86⇒4n=21.5. Cumulative frequencies: cf1=10,cf2=28>21.5. Class containing Q1 is [5;6):
Q1=5+1821.5−10⋅1=5+1811.5≈5.64 (hours)≈5 hours 38 minutes.
Conclusion: 75% of Grade 11 students sleep at least approximately 5.64 hours (about 5 hours 38 minutes) each night.