Data - Grouped Data Calculations
Data - Grouped Data Calculations
Find the mean, standard deviation, median, upper quartile and 99th percentile for the following grouped table in blue below (on the left).
Number of Frequency we Midpoint 𝑓𝑥 𝑥! 𝑓𝑥 ! UCB 𝑐𝑓
goals (𝑥) (𝑓) 𝑥 (running total of f)
"#$
2(7)=14 7! =49 2(49)=98 9 2
5≤𝑥<9 2 must !
=7
$#%" !
9 ≤ 𝑥 < 15 9 create !
=12 9(12)=108 12 =144 9(144)=1296 15 2 + 9 =11
%"#!% !
15 ≤ 𝑥 < 21 20 the !
=18 20(18)=360 18 =324 20(324)=6480 21 11 + 20 =31
!%#!"
21 ≤ 𝑥 < 25 13 following =23 13(23)=299 23! =529 13(529)=6877 25 31 + 13 =44
!
!"#!$
25 ≤ 𝑥 < 29 8 columns =27 8(27)=216 27! =729 8(729)=5832 29 44 + 8 =52
!
!$#&"
3(32)=96 32! =1024 3(1024)=3072 35 52 + 3 =55
29 ≤ 𝑥 < 35 3 in yellow !
=32
∑ 𝑓𝑥 =1093
2 𝑓𝑥 ! = 23655
Quartiles:
This is longer. We MUST INTERPOLATE using the UCB and cf columns. We CANNOT use the calculator for quartiles with grouped data.
Median: Upper Quartile: 99th percentile:
"
Find # Find
%"
Find *++ 𝑛
))
&
$$
= 27.5𝑡ℎ value %($$)
= 41.25𝑡ℎ value
))
(55) = 54.45𝑡ℎ value
# *++
&
Way 1: Way 1:
See where 27.5 would insert in the cf See where 41.25 would insert in the cf Way 1:
column and drop down to the next row column and drop down to the next row See where 54.45 would insert in the cf
column and drop down to the next row
Number of 𝒇 UCB 𝒄𝒇 Number of 𝒇 UCB 𝒄𝒇
goals (𝑥) goals (𝑥) Number of 𝒇 UCB 𝒄𝒇
5≤𝑥<9 2 9 2 5≤𝑥<9 2 9 2 goals (𝑥)
9 ≤ 𝑥 < 15 9 15 11 9 ≤ 𝑥 < 15 9 15 11 5≤𝑥<9 2 9 2
15 ≤ 𝑥 < 21 20 21 31 15 ≤ 𝑥 < 21 20 21 31 9 ≤ 𝑥 < 15 9 15 11
21 ≤ 𝑥 < 25 13 25 44 15 ≤ 𝑥 < 21 20 21 31
21 ≤ 𝑥 < 25 13 25 44
25 ≤ 𝑥 < 29 8 29 52 21 ≤ 𝑥 < 25 13 25 44
25 ≤ 𝑥 < 29 8 29 52
29 ≤ 𝑥 < 35 3 35 55 25 ≤ 𝑥 < 29 8 29 52
29 ≤ 𝑥 < 35 3 35 55
29 ≤ 𝑥 < 35 3 35 55
Apply the formula:
Apply the formula:
how many in Apply the formula:
LCB + × class width how many in
group total LCB + × class width how many in
group total LCB + × class width
group total
27.5 − 11
15 + × (21 − 15) = 44.9 41.25 − 31
20 21 + × (25 − 21) = 24.2 54.45 − 52
13 29 + × (35 − 29) = 44.9
3
Way 2: Way 2: Way 2:
Find where the 27.5𝑡ℎ value INSERTS in the cf Find where the 41. 25𝑡ℎ value INSERTS in the cf Find where the 54. 45𝑡ℎ value INSERTS in the cf
column and zoom in on the box above and below column and zoom in on the box above and below column and zoom in on the box above and below
this with the UCB column also this with the UCB column also this with the UCB column also
UCB 𝑐𝑓
15 11 UCB 𝑐𝑓
UCB 𝑐𝑓
𝑥 27.5 29 52
21 31
21 31 𝑥 54.45
𝑥 41.25
35 55
25 44
Now interpolate Now interpolate Now interpolate
'(%" !)."(%% '(%" '(!$ ",.,"("! '(!$
= ⟺ = 0.825 ⟺ 𝑥 = 19.95 '(!%
=
,%.!"(&%
⟺
'(!%
= 0.788 ⟺ 𝑥 = 24.2 = ⟺ = 0.817 ⟺ 𝑥 = 33.9
!%(%" &%(%% + &"(!$ ""("! +
!"(!% ,,(&% ,
Note: We sometimes have gaps between the boundaries (between a upper-class boundary of a row and the
lower class boundary of the subsequent row)
𝑥 𝑓
5≤𝑥<9 1
9 ≤ 𝑥 < 15 3
15 ≤ 𝑥 < 21 2
𝑥 𝑓
5-9 1
10-15 3
16-21 2
𝑥 𝑓
4.5 ≤ 𝑥 < 9.5 1
9.5 ≤ 𝑥 < 15.5 3
15.5 ≤ 𝑥 < 21 2