Sheet 3 in Geostatistics.
Sheet 3 in Geostatistics.
1. Find and compare between the Arithmetic, Geometric and harmonic means
for the following numbers: 84, 91, 72, 68, 87, and 78.
93-97 2
98-102 5
103-107 12
108-112 17
113-117 14
118-122 6
123-127 3
128-132 1
3. For the following data: 157, 23, 98, 112, 171, 122, 140, 165, 182, 177, 150, 136
1) Estimate mean and median
2) Determine the Quartiles: Q1, Q2 and Q3
3) construct the table of the box and whisker plot and draw it
Solution
1. Find and compare between the Arithmetic, Geometric and harmonic means for
the following numbers: 84, 91, 72, 68, 87, and 78.
𝐱𝟏+𝐱𝟐+𝐱𝟑+⋯+𝐱𝐧 𝟖𝟒+𝟗𝟏+𝟕𝟐+𝟔𝟖+𝟖𝟕+𝟕𝟖
• Arithmetic: X = = = 80
𝐧 𝟔
𝟔
• Geometric: G= √𝟖𝟒 ∗ 𝟗𝟏 ∗ 𝟕𝟐 ∗ 𝟔𝟖 ∗ 𝟖𝟕 ∗ 𝟕𝟖 = 79.578
𝟏
Or Log G = 𝐥𝐨𝐠 (𝒙𝟏 ∗ 𝒙𝟐 ∗ … … ∗ 𝒙𝒏),
𝑵
𝟏
• Log G = ∗log (𝟖𝟒 ∗ 𝟗𝟏 ∗ 𝟕𝟐 ∗ 𝟔𝟖 ∗ 𝟖𝟕 ∗ 𝟕𝟖), G = 79.578
𝟔
𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏 𝟏
• Harmonic , = 𝑵 ⅀ 𝑿 , 𝑯 = 𝟔 ∗ (𝟖𝟒 + 𝟗𝟏 + 𝟕𝟐 + 𝟔𝟖 + 𝟖𝟕 + 𝟕𝟖) , H = 79.152
𝑯
∴H<G<X
2- For the following data estimate:
1- Mean and median
2- Determine the Quartiles: Q1, Q2 and Q3
3- Deciles: D1, D5, D8 and
4- Percentiles: P15, P50 and P85 for the data listed in the table below:
93-97 2
98-102 5
103-107 12
108-112 17
113-117 14
118-122 6
123-127 3
128-132 1
1- Mean and median:
X
Class, k Frequency, F Midpoint (center) ,xX*F Cumulative Frequencies
93-97 2 95 190 2+0 = 2
98-102 5 100 500 2+5 = 7
103-107 12 105 1260 7+12 = 19
108-112 17 110 1870 19+17 = 36
113-117 14 115 1610 36+14 = 50
118-122 6 120 720 50+6 = 56
123-127 3 125 375 56+3 = 59
128-132 1 130 130 59+1 = 60
⅀ 60 6655
⅀ 𝑿∗𝑭 𝟔𝟔𝟓𝟓
• Mean = = = 𝟏𝟏𝟎. 𝟗𝟏𝟕
⅀𝐅 𝟔𝟎
𝑵
𝟐
−𝑭 𝑵 𝟔𝟎
Median: = L+(
𝒇
)∗𝑾, 𝟐
=
𝟐
= 𝟑𝟎 ; 𝑳 = 𝟏𝟎𝟖; 𝑭 = 𝟏𝟗 ; 𝒇 = 𝟏𝟕 ; 𝒘 = 𝟒
𝟑𝟎−𝟏𝟗
= 108 + (
𝟏𝟕
) ∗ 𝟒 = 110.588
Q1 = 25% * 60 = 15 (frequency)
𝑸𝟏−𝒅𝟏 𝟏𝟓 − 𝟕
Q1 = A + ( ∗ 𝑳) = 102 + ( ∗ (𝟏𝟎𝟐 − 𝟗𝟖)) = 104.667
𝒅𝟐 𝟏𝟐
Q2 = 50% * 60 = 30 (frequency)
D1 = 10% * 60 = 6 (frequency)
𝑫𝟏−𝒅𝟏 𝟔−𝟐
D1 = A + ( ∗ 𝑳) = 97 + ( ∗ (𝟗𝟕 − 𝟗𝟑)) = 100.2
𝒅𝟐 𝟓
D5 = 50% * 60 = 30 (frequency)
𝑫𝟓−𝒅𝟏 𝟑𝟎 − 𝟏𝟗
D5 = A + ( ∗ 𝑳) = 107 + ( ∗ (𝟏𝟎𝟕 − 𝟏𝟎𝟑)) = 109.588
𝒅𝟐 𝟏𝟕
D8 = 80% * 60 = 48 (frequency)
𝑫𝟖−𝒅𝟏 𝟒𝟖 − 𝟑𝟔
D8 = A + ( ∗ 𝑳) = 112 + ( ∗ (𝟏𝟏𝟐 − 𝟏𝟎𝟖)) = 115.428
𝒅𝟐 𝟏𝟒
4- Percentiles: P15, P50 and P85:
• P15 = 15% of the frequencies.
P15 = 15% * 60 = 9 (frequency)
𝑷𝟏𝟓−𝒅𝟏 𝟗−𝟕
P15 = A + ( ∗ 𝑳) = 102 + ( ∗ (𝟏𝟎𝟐 − 𝟗𝟖)) = 102.667
𝒅𝟐 𝟏𝟐
𝑷𝟓𝟎−𝒅𝟏 𝟑𝟎 − 𝟏𝟗
P50 = A + ( ∗ 𝑳) = 107 + ( ∗ (𝟏𝟎𝟕 − 𝟏𝟎𝟑)) = 109.588
𝒅𝟐 𝟏𝟕
P85 > 50 (Frequency of the first, second, third, fourth and fifth class)
𝑷𝟖𝟓−𝒅𝟏 𝟓𝟏 − 𝟓𝟎
P85 = A + ( ∗ 𝑳) = 117 + ( ∗ (𝟏𝟏𝟕 − 𝟏𝟏𝟑)) = 117.667
𝒅𝟐 𝟔
3- For the following data: 157, 23, 98, 112, 171, 122, 140, 165, 182, 177, 150, 136
1- Estimate mean and median
2- Determine the Quartiles: Q1, Q2 and Q3
3- construct the table of the box and whisker plot and draw it
Ascending
(23, 98, 112, 122, 136, 140, 150, 157, 165, 171, 177, 182)
• Mean =
(𝟐𝟑+𝟗𝟖+𝟏𝟏𝟐+𝟏𝟐𝟐+𝟏𝟑𝟔+𝟏𝟒𝟎+𝟏𝟓𝟎+𝟏𝟓𝟕+𝟏𝟔𝟓+𝟏𝟕𝟏+𝟏𝟕𝟕+𝟏𝟖𝟐)
= 136.083
𝟏𝟐
𝑵 𝑵 𝟏𝟐 𝟏𝟐
• Median order = & +𝟏== & + 𝟏 = 6 &7
𝟐 𝟐 𝟐 𝟐
𝟏𝟒𝟎+𝟏𝟓𝟎
∴ Median value = = 𝟏𝟒𝟓
𝟐
𝑄1 = (1 - 𝑔) ∗ 𝑥 (𝑖 + 1) + 𝑔 ∗ 𝑥 (𝑖 + 2)
𝑄1 = 25% ⟹ p = 0.25 ∵ (𝑛 - 1) ∗ 𝑝 = 𝑖 + 𝑔
∴ (12 - 1) ∗ 0.25 = 2.75 = 𝑖 + 𝑔
∴ 𝑖 = 2 & 𝑔 = 0.75
∴ 𝑄1 = (1 - 0.75) ∗ 112 + 0.75 ∗ 122 = 119.5
𝑄2 = 50%, P = 0.5
∵ (𝑛 - 1) ∗ 𝑝 = 𝑖 + 𝑔
∴ (12 - 1) ∗ 0.5 = 5.5 = 𝑖 + 𝑔
∴ 𝑖 = 5 & 𝑔 = 0.5
∴ 𝑄2 = (1 - 0.5) ∗ 140 + 0.5 ∗ 150 = 145
𝑄3 = 75%, p = 0.75
∵ (𝑛 - 1) ∗ 𝑝 = 𝑖 + 𝑔
∴ (12 - 1) ∗ 0.75 = 8.25 = 𝑖 + 𝑔
∴ 𝑖 = 8 & 𝑔 = 0.25
∴ 𝑄3 = (1 - 0.25) ∗ 165 + 0.25 ∗ 171 = 166.5
3-construct the table of the box and whisker plot and draw it:
𝟓 𝟑 𝟓 𝟑
• upper limit = 𝑄3 - 𝑄1 = ( *166.5) – ( * 119.5) = 237
𝟐 𝟐 𝟐 𝟐
𝟓 𝟑 𝟓 𝟑
• Lower limit = 𝑄1 - 𝑄3 = ( *119.5) – ( * 166.5) = 49
𝟐 𝟐 𝟐 𝟐
Min = 23
Median = 145
Max. = 182
label Value
Min. 23
𝑄1 119.5
Median 145
𝑄3 166.5
Max. 182
IQR 47
Upper outliers Zero
Lower outliers 1 (23)