BCS301 - Module 4
BCS301 - Module 4
Sample ̅
𝒙 𝒔
Population 𝝁 𝝈
Problems:
1. A Machinist making engine parts with axle diameter of 0.7 inches. A random sample
of 10 parts shows mean diameter 0.742 inches with a SD of 0.04 inches. On the basis
of this sample, would you say that the work is inferior at 5% level of significance?
[𝒕(.𝟎𝟓, 𝟗) = 𝟐. 𝟐𝟔]
∑ 𝑥2 ∑𝑥 2 21762
𝑠2 = −( 𝑛 ) = − 49.112 = 2418 − 2411.79 = 6.2079
𝑛 9
𝑠2 6.2079
𝑆. 𝐸(𝑥̅ ) = √𝑛−1 = √ = 0.8809
8
∑ 𝑥2 ∑𝑥 2 96312
𝑠2 = −( 𝑛 ) = − 97.22 = 183.36
𝑛 10
𝑠2 183.36
𝑆𝐸(𝑥̅ ) = √𝑛−1 = √ = 4.5136
9
𝑠2 8.7433
𝑆𝐸(𝑑̅) = √ =√ = 0.8915
𝑛−1 11
𝑠2 50/11 50
𝑆𝐸 (𝑑̅) = √𝑛−1 = √ = √110 = 0.6742
10
Assume H0: 𝜇 = 0,
The students did not have benefitted by extra coaching.
𝑑̅ −𝜇 1−0
|𝑡| = | | = |0.6742| = 1.4832
𝑆𝐸(𝑑̅ )
[𝒕(.𝟎𝟓,𝟑𝟎) = 𝟐. 𝟎𝟒]
2 1 1 1 1
𝑆𝐸(𝑥
̅̅̅1 − 𝑥 2 = √𝑠 (𝑛 + 𝑛 ) = √133.07 (18 + 14) = 4.1106
̅̅̅)
1 2
H0: 𝜇1 = 𝜇2 , the mean score of boys does not differ significantly from that of girls.
̅𝑥̅̅1̅ −̅̅̅̅
𝑥2 124 −121
|𝑡| = | |=| | = 0.7298
̅̅̅̅ −̅̅̅̅)
𝑆.𝐸(𝑥 1 𝑥 2 4.1106
7. The means of two random samples of sizes 9 and 7 are 196.42 and 198.82 respectively.
The sum of squares of the deviations from the mean are 26.94 and 18.73 respectively.
Can the sample be considered to have been drawn from the same normal population?
[𝒕(.𝟎𝟓, 𝟏𝟒) = 𝟐. 𝟏𝟒]
2 1 1 1 1
𝑆𝐸(𝑥
̅̅̅1 − 𝑥 2 = √𝑠 (𝑛 + 𝑛 ) = √3.2621 (9 + 7) = 0.9102
̅̅̅)
1 2
8. From a random sample of 10 pigs fed on diet A, the increases in weight in a certain
period were 10, 6, 16, 17, 13, 12, 8, 14, 15, 9 lbs. For another random sample of 12
pigs fed on diet B, the increases in the same period were 7, 13, 22, 15, 12, 14, 18, 8, 21,
23, 10, 17 lbs. Test whether diets A and B differ significantly as regards their effect on
increases in weight? [𝒕(.𝟎𝟓, 𝟏𝟒) = 𝟐. 𝟎𝟗]
∑ 𝑥1 2 ∑𝑥 2 1560
𝑠12 = − ( 𝑛 1) = − 144 = 12
𝑛1 1 10
∑ 𝑥2 2 ∑𝑥 2 3014
𝑠22 = − ( 𝑛 2) = − 225 = 26.17
𝑛2 2 12
2 1 1 1 1
𝑆𝐸(𝑥
̅̅̅1 − 𝑥 2 = √𝑠 (𝑛 + 𝑛 ) = √21.7020 (10 + 12) = 1.9947
̅̅̅)
1 2
Check whether there is a significant difference between two means. [𝑡0.05 (18) = 0.086]
12. A sample of 12 measurements of the diameter of a metal ball gave the mean 7.38 mm
with standard deviation 1.24 mm. Find 99% confidence limits for actual diameter.
[𝑡0.01 (11) = 3.11]
𝑠
Note: Confidence limits for the mean are 𝑥̅ ± 𝑡 (𝛾)
√𝑛−1 𝛼
13. A group of 10 boys fed on a diet A and another group of 8 boys fed on a different diet B
for a period of six months recorded the following increase in weight (lbs).
Diet A 5 6 8 1 12 4 3 9 6 10
Diet B 2 3 6 8 10 1 2 8
Test whether diet A and B differ significantly regarding their effort on increase in
weight.
𝒙: 1 2 3 4 5 6
𝒇: 15 6 4 7 11 17
2 (5)
Test the hypothesis that the die is unbiased. [𝜒0.05 = 11.07]
1 1 1 1 1 1
𝑃(𝑥): 6 , 6 , 6 , 6 , 6 , 6
1 1 1 1 1 1
𝑁 × 𝑃(𝑥): 60 × (6) , 60 × (6) , 60 × (6) , 60 × (6) , 60 × (6) , 60 × (6)
𝑥𝑖 𝑂𝑖 (𝑂𝑖 − 𝐸𝑖 )2 (𝑂𝑖 − 𝐸𝑖 )2
𝐸𝑖
𝐸𝑖
1 15 10 25 2.5
2 6 10 16 1.6
3 4 10 36 3.6
4 7 10 9 0.9
5 11 10 1 0.1
6 17 10 49 4.9
13.6
Calculated value = 13.6
Reject 𝑯𝒐 .
1 1 1 1 1 1
𝑃(𝑥): 7 , 7 , 7 , 7 , 7 , 7
1 1 1 1 1 1
𝑁 × 𝑃(𝑥): 84 × (7) , 84 × (7) , 84 × (7) , 84 × (7) , 84 × (7) , 84 × (7)
𝑨𝒔𝒔𝒖𝒎𝒆 𝑯𝟎 : The accidents are uniformly distributed over all the days of a week.
(𝑶𝒊 −𝑬𝒊 )𝟐
Under 𝑯𝟎 , 𝝌𝟐 = ∑ , with 𝒏 − 𝟏 = 𝟔 degrees of freedom.
𝑬𝒊
𝑥 𝑂𝑖 (𝑂𝑖 − 𝐸𝑖 )2 (𝑂𝑖 − 𝐸𝑖 )2
𝐸𝑖
𝐸𝑖
Sun 14 12 4 4/12
Mon 16 12 16 16/12
Tue 8 12 16 16/12
Wed 12 12 0 0
Thu 11 12 1 1/12
Fri 9 12 9 9/12
Sat 14 12 4 4/12
50/12
50
Calculated value = 12
Accept 𝑯𝒐 .
Therefore, the accidents are uniformly distributed over all the days of a week
1 𝑥 1 5−𝑥 1
𝑃(𝑥) = 𝑛𝐶𝑥 𝑝 𝑥 𝑞 𝑛−𝑥 = 5𝐶𝑥 (2) (2) = 32 × 5𝐶𝑥 (n- no. of coins)
1
𝑁 × 𝑃(𝑥) = 320 × 32 × 5𝐶𝑥 = 10 × 5𝐶𝑥
(𝑶𝒊 −𝑬𝒊 )𝟐
Under 𝑯𝟎 , 𝝌𝟐 = ∑ , with 𝒏 − 𝟏 = 𝟔 − 𝟏 = 𝟓 degrees of freedom.
𝑬𝒊
(n-number of frequencies)
𝐸𝑖 𝑥 𝑂𝑖 𝐸𝑖(𝑂𝑖 − 𝐸𝑖 )2 (𝑂𝑖 − 𝐸𝑖 )2
𝐸𝑖
0 6 10 16 1.6
1 27 50 529 10.58
2 72 100 784 7.84
3 112 100 144 1.44
4 71 50 441 8.82
5 32 10 484 48.4
78.68
Calculated value = 78.68
Reject 𝑯𝒐 .
-------------------------------------------------------------------------------------------------------
𝒙: 0 1 2 3 4
Σ𝑓𝑥 904
𝑚 = 𝑚𝑒𝑎𝑛 = = 1000 = 0.904
Σ𝑓
𝑒 −𝑚 = 𝑒 −0.904 = 0.4049
𝑒 −𝑚 𝑚 𝑥 (0.4049)(0.904)𝑥
∴ 𝑃(𝑥) = =
𝑥! 𝑥!
(0.904)𝑥
𝐸𝑖 = 𝑁 × 𝑃(𝑥) = 1000 × 𝑃(𝑥) = 404.9 ×
𝑥!
𝑥 𝑂𝑖 𝐸𝑖 (𝑂𝑖 − 𝐸𝑖 )2 (𝑂𝑖 − 𝐸𝑖 )2
(𝑖) 𝐸𝑖
0 419 405+1 169 0.4033
1 352 366 196 0.5355
2 154 165 121 0.7333
3 56 50 36 0.7200
4 19 11+2 36 2.7692
5.1613
Numbers added in 𝐸𝑖 only to preserve totality.
1 2 1
𝑃(𝑥): ,4,4
4
1 2 1
𝑁 × 𝑃 (𝑥): 300 × 4 , 300 × 4 , 300 × 4
𝐸𝑖 : 75, 150, 75
𝑥 𝑂𝑖 𝐸𝑖 (𝑂𝑖 − 𝐸𝑖 )2 (𝑂𝑖 − 𝐸𝑖 )2
𝐸𝑖
1
M 30% of 300 = 90 300 × 4 = 75
225 3
MN 45% of 300 = 135 2
300 × = 150
4 225 1.5
M 25% of 300 = 75 1
300 × = 75
4 0 0
4.5
Calculated value = 4.5
Accept 𝑯𝟎 .
Therefore, the Genetic theory, ‘The proportion of these types is on average
1:2:1’, fitted to the report.
-------------------------------------------------------------------------------------------------------
9 3 3 1
𝑃(𝑥): 16 , 16 , 16 , 16
9 3 3 1
𝑁 × 𝑃(𝑥): 556 × 16 , 556 × 16 , 556 × 16 , 556 × 16
(𝑶𝒊 −𝑬𝒊 )𝟐
Under 𝑯𝟎 , 𝝌𝟐 = ∑ with 𝒏 − 𝟏 = 𝟒 − 𝟏 = 𝟑 degrees of freedom.
𝑬𝒊
𝑥 𝑂𝑖 𝐸𝑖 (𝑂𝑖 − 𝐸𝑖 )2 (𝑂𝑖 − 𝐸𝑖 )2
(𝑖) 𝐸𝑖
RY 315 9 4 0.0128
556 ( ) = 313
16
WY 101 3 9 0.0865
556 ( ) = 104
16
RG 108 3 16 0.1538
556 ( ) = 104
16
WG 32 1 9 0.2571
556 ( ) = 35
16
0.5102
Calculated value = 0.5102
Accept 𝑯𝒐 .
Therefore, the theory, ‘The frequencies should be in proportions 𝟗: 𝟑: 𝟑: 𝟏, fitted
to the experiment.
------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
7. The theory predicates the proportion of beans in the four groups 𝐺1 , 𝐺2 , 𝐺3 𝑎𝑛𝑑 𝐺4
should be in the ratio 9: 3: 3: 1. In an experiment with 1600 beans the numbers in the
four groups were 882, 313, 287 and 118. Does the experimental result support the
2 (3)
theory? [𝜒0.05 =
7.815]
8. Records taken of the number of male and female births in 800 families having four
children are as follows:
Number of male births 0 1 2 3 4
Number of female births 4 3 2 1 0
Number of families 32 178 290 236 94
Test whether the data are consistent with the hypothesis that the binomial law holds and
2 (4)
the chance of male birth is equal to that of female birth. [𝜒0.05 = 9.488]
-------------------------------------------------------------------------------------------------------------------------
𝑠12
, 𝑖𝑓 𝑠12 > 𝑠22
𝑠22
𝐹= 2
𝑠2
2 , 𝑖𝑓 𝑠22 > 𝑠12
{𝑠1
where
∑(𝑥1 − 𝑥 2 ∑(𝑥2 − 𝑥 2
̅̅̅)
1 ̅̅̅)
2
𝑠12 = 2
𝑎𝑛𝑑 𝑠2 =
𝑛1 − 1 𝑛2 − 1
❖ The calculated value of F is compared with the tabulated value for 𝜈1 and 𝜈2 at 5% or
1% level of significance. 𝜈1 – Degrees of freedom for sample having larger variance and
𝜈2 - Degrees of freedom for sample having smaller variance.
❖ If the calculated value is less than the tabulated value the null hypothesis is accepted and
it is inferred that both the samples come from the same population.
❖ Since F test is based on the ratio of two variances, it is also known as the variance ratio
test.
❖ The ratio of two variances follows a distribution called the F distribution.
❖ F- Test is based on the following assumptions:
(i) The values in each group are normally distributed.
(ii) The variance within each group should equal for all groups (𝜎12 = 𝜎22 = ⋯ = 𝜎𝑐2 )
(iii) The error (variation of each value around its own group mean) should be
independent for each value.
Σ𝑥1 720
𝑥1 =
̅̅̅ = = 80
𝑛1 9
Σ𝑥2 913
𝑥2 =
̅̅̅ = = 83
𝑛2 11
𝑥1 𝑥1 − 𝑥
̅̅̅1 𝑥2 𝑥1 2
(𝑥1 − ̅̅̅) 𝑥2 − ̅̅̅
𝑥2 𝑥2 2
(𝑥2 − ̅̅̅)
2
= 𝑥1 − 80 = (𝑥1 − 80) = 𝑥2 − 83 = (𝑥2 − 83)2
66 −14 64 196 −19 361
67 −13 66 169 −17 289
75 −5 74 25 −9 81
76 −4 78 16 −5 25
82 2 82 4 −1 1
84 4 85 16 2 4
88 8 87 64 4 16
90 10 92 100 9 81
92 12 93 144 10 100
95 12 144
97 14 196
720 0 913 734 0 1298
2
Σ𝑥1 −−−− Σ𝑥2 Σ(𝑥1 − ̅̅̅)
𝑥1 −−−− 𝑥2 2
Σ(𝑥2 − ̅̅̅)
̅̅̅1̅)2
∑(𝑥1 −𝑥 734
𝑠12 = = = 91.75
𝑛1 −1 8
̅̅̅2̅)2
∑(𝑥2 −𝑥 1298
𝑠22 = = = 129.8
𝑛2 −1 10
Calculated value:
𝑠2 129.8
𝐹 = 𝑠22 = 91.75 = 𝟏. 𝟒𝟏𝟓
1
Critical value:
Degrees of freedom 𝜈1 = 𝑛2 − 1 = 10, 𝜈2 = 𝑛2 − 1 = 8
At 5% level of significance, 𝑭𝟏𝟎,𝟖 = 𝟑. 𝟑𝟔
Conclusion:
Since Calculated value < Critical value, accept 𝐻0 .
Therefore, the two populations have the same variance.
𝑛2 = 10 𝑥2 2 = 102.6
∑(𝑥2 − ̅̅̅)
Therefore,
𝑥1 2
∑(𝑥1 − ̅̅̅) 84.4
𝑠12 = = = 12.06
𝑛1 − 1 8−1
∑(𝑥2 − 𝑥 2
̅̅̅)
2 102.6
𝑠22 = = = 11.4
𝑛2 − 1 10 − 1
Calculated value:
𝑠12 12.06
𝐹= 2= = 1.06
𝑠2 11.4
Critical value:
Degrees of freedom (𝜈1 , 𝜈2 ) = (𝑛1 − 1, 𝑛2 − 1) = (7, 9).
At 5% level of significance, 𝑭𝟕,𝟗 = 𝟑. 𝟐𝟗
Conclusion:
Calculated value < Critical value. Accept 𝐻0 .
There is no significant difference in the variances of the two samples at 5% level of
significance.
Assume 𝑯𝟎 : Two samples drawn from two normal populations have the same variance.
Σ𝑥1 600
𝑥1 =
̅̅̅ = = 75
𝑛1 8
Σ𝑥2 770
𝑥2 =
̅̅̅ = = 77
𝑛2 10
𝑥1 𝑥1 − ̅̅̅
𝑥1 𝑥1 2
(𝑥1 − ̅̅̅) 𝑥2 𝑥2 − 𝑥
̅̅̅2 𝑥2 2
(𝑥2 − ̅̅̅)
= 𝑥1 − 75 = (𝑥1 − 75)2 = 𝑥2 − 77 = (𝑥2 − 77)2
60 −15 225 61 −16 256
65 −10 100 66 −11 121
71 −4 16 67 −10 100
74 −1 1 85 8 64
76 1 1 78 1 1
82 7 49 63 −14 196
85 10 100 85 8 64
87 12 144 86 9 81
88 11 121
91 14 196
600 0 636 770 0 1200
Σ𝑥1 −−−− 𝑥1 2
Σ(𝑥1 − ̅̅̅) Σ𝑥2 −−−− 𝑥2 2
Σ(𝑥2 − ̅̅̅)
̅̅̅1̅)2
∑(𝑥1 −𝑥 636
𝑠12 = = = 90.857
𝑛1 −1 7
̅̅̅2̅)2
∑(𝑥2 −𝑥 1200
𝑠22 = = = 133.33
𝑛2 −1 9
Calculated value:
𝑠22 133.33
𝐹= = = 𝟏. 𝟒𝟔𝟕𝟓
𝑠12 90.857
Critical value:
Degrees of freedom 𝜈1 = 𝑛2 − 1 = 9, 𝜈2 = 𝑛1 − 1 = 7
At 5% level of significance, 𝑭𝟗,𝟕 = 𝟑. 𝟔𝟖
Conclusion:
Since Calculated value < Critical value, accept 𝐻0 .
Therefore, the two samples taken from the two populations have the same variance.
𝑥1 𝑥1 − 𝑥
̅̅̅1 𝑥1 2
(𝑥1 − ̅̅̅) 𝑥2 𝑥2 − ̅̅̅
𝑥2 𝑥2 2
(𝑥2 − ̅̅̅)
= 𝑥1 − 6 = (𝑥1 − 6)2 = 𝑥2 − 5.7 = (𝑥2 − 5.7)2
6.2 0.2 0.04 5.6 −0.1 0.01
5.7 −0.3 0.09 5.9 0.2 0.04
6.5 0.5 0.25 5.6 −0.1 0.01
6.0 0 0 5.7 0 0
6.3 0.3 0.09 5.8 0.1 0.01
5.8 −0.2 0.04 5.7 0 0
5.7 −0.3 0.09 6.0 0.3 0.09
6.0 0 0 5.5 −0.2 0.04
6.0 0 0 5.7 0 0
5.8 −0.2 0.04 5.5 −0.2 0.04
60 −−−− 0.64 57 −−−− 0.24
Σ𝑥1 −−−− 𝑥1 2
Σ(𝑥1 − ̅̅̅) Σ𝑥2 −−−− Σ(𝑥2 − 𝑥 ̅̅̅)
2
2
̅̅̅1̅)2
∑(𝑥1 −𝑥 0.64
𝑠12 = = = 0.071
𝑛1 −1 9
̅̅̅2̅)2
∑(𝑥2 −𝑥 0.24
𝑠22 = = = 0.027
𝑛2 −1 9
Calculated value:
𝑠12 0.071
𝐹= 2= = 𝟐. 𝟔𝟑
𝑠2 0.027
Critical value:
Degrees of freedom 𝜈1 = 𝑛1 − 1 = 9, 𝜈2 = 𝑛2 − 1 = 9
At 5% level of significance, 𝑭𝟗,𝟗 = 𝟑. 𝟏𝟖
Conclusion:
Since Calculated value < Critical value, accept 𝐻0 .
Therefore, the two samples taken from the two populations have the same variance.
𝑛2 = 8 𝑥2 2 = 91
∑(𝑥2 − ̅̅̅)
Therefore,
𝑥1 2
∑(𝑥1 − ̅̅̅) 160
𝑠12 = = = 20
𝑛1 − 1 9−1
∑(𝑥2 − 𝑥 2
2
̅̅̅)
2 91
𝑠2 = = = 13
𝑛2 − 1 8−1
Calculated value:
𝑠12 20
𝐹= 2= = 1.54
𝑠2 13
Critical value:
Degrees of freedom (𝜈1 , 𝜈2 ) = (𝑛1 − 1, 𝑛2 − 1) = (8, 7).
At 5% level of significance, 𝑭𝟖,𝟕 = 𝟑. 𝟕𝟑
Conclusion:
Calculated value < Critical value. Accept 𝐻0 .
Two samples are drawn from the same population.
𝑥1 𝑥1 − ̅̅̅
𝑥1 𝑥1 2
(𝑥1 − ̅̅̅) 𝑥2 𝑥2 − ̅̅̅
𝑥2 𝑥2 2
(𝑥2 − ̅̅̅)
= 𝑥1 = (𝑥1 − 6)2 = 𝑥2 − 12.27 = (𝑥2 − 5.7)2
− 12.32
12.29 −0.03 0.0009 12.39 0.12 0.0144
12.25 −0.07 0.0049 12.46 0.19 0.0361
11.86 −0.46 0.2116 12.34 0.07 0.0049
12.13 0.19 0.0361 12.22 −0.05 0.0025
12.44 0.12 0.0144 11.98 −0.29 0.0841
12.78 0.46 0.2116 12.46 0.19 0.0361
12.77 0.45 0.2025 12.23 −0.04 0.0016
11.90 −0.42 0.1764 12.06 −0.21 0.0441
12.47 0.15 0.0225
110.89 −−−− 0.8809 98.14 −−−− 0.2238
Σ𝑥1 −−−− 𝑥1 2
Σ(𝑥1 − ̅̅̅) Σ𝑥2 −−−− Σ(𝑥2 − 𝑥
̅̅̅)
2
2
̅̅̅1̅)2
∑(𝑥1 −𝑥 0.8809
𝑠12 = = = 0.1101
𝑛1 −1 8
̅̅̅2̅)2
∑(𝑥2 −𝑥 0.2238
𝑠22 = = = 0.032
𝑛2 −1 7
Calculated value:
𝑠12 0.1101
𝐹= 2= = 𝟑. 𝟒𝟒𝟏
𝑠2 0.032
Critical value:
Degrees of freedom 𝜈1 = 𝑛1 − 1 = 8, 𝜈2 = 𝑛2 − 1 = 7
At 5% level of significance, 𝑭𝟖,𝟕 = 𝟑. 𝟕𝟑
Conclusion:
Since Calculated value < Critical value, accept 𝐻0 .
Therefore, Both measurements have the same variance.