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
𝑆𝐸(𝑑̅) = √𝑛−1 = √ 11 = 0.8915
𝑠 2
50/11 50
𝑆𝐸 (𝑑̅) = √𝑛−1 = √ 10 = √110 = 0.6742
1 1 1 1
𝑆𝐸(𝑥 𝑥2 = √𝑠 2 (𝑛 + 𝑛 ) = √133.07 (18 + 14) = 4.1106
̅̅̅1 − ̅̅̅)
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? [𝒕(.𝟎𝟓, 𝟏𝟒) = 𝟐. 𝟏𝟒]
1 1 1 1
𝑆𝐸(𝑥 𝑥2 = √𝑠 2 (𝑛 + 𝑛 ) = √3.2621 (9 + 7) = 0.9102
̅̅̅1 − ̅̅̅)
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
1 1 1 1
𝑆𝐸(𝑥 𝑥2 = √𝑠 2 (𝑛 + 𝑛 ) = √21.7020 (10 + 12) = 1.9947
̅̅̅1 − ̅̅̅)
1 2
Home work:
9. A machine is expected to produce nails of length 3 inches. A random sample of 25 nails
gave an average length of 31. Inches with standard deviation 0.3. Can it be said that the
machine is producing nails as per specifications? Given 𝑡0.05 (24) = 2.064
10. Two horses A and B were tested according to the time (seconds) to run a particular race
with the following results:
Horse A 28 30 32 33 33 29 34
Horse B 29 30 30 24 27 29
Test whether you can discriminate between the two horses.
Given that 𝑡0.05 = 2.20 for 11 degrees of freedom
11. Two types of batteries are tested for their length of life and the following results were
obtained:
Battery A Battery B
Mean 500 500
Variance 100 121
Sample size 10 10
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
𝑁 × 𝑃(𝑥): 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 𝑯𝒐 .
2. The following table gives the number of road accidents that occurred in a large city
during the various days of a week. Test the hypothesis that the accidents are
uniformly distributed over all the days of a week. [ 𝝌𝟐𝟎.𝟎𝟓 (𝟔) = 𝟏𝟐. 𝟓𝟗]
1 1 1 1 1 1
𝑃(𝑥): 7 , 7 , 7 , 7 , 7 , 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
3. A set of 5 similar coins is tossed 320 times and the result is
Number of heads: 0 1 2 3 4 5
Frequency: 6 27 72 112 71 32
Test the hypothesis that the data follows a binomial distribution. [𝝌𝟐𝟎.𝟎𝟓 (𝟓) = 𝟏𝟏. 𝟎𝟕]
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
Reject 𝑯𝒐 .
-------------------------------------------------------------------------------------------------------
4. Fit a Poisson distribution to the following data and test for its goodness of fit at
level of significance 0.05.
𝒙: 0 1 2 3 4
Σ𝑓𝑥 904
𝑚 = 𝑚𝑒𝑎𝑛 = = 1000 = 0.904
Σ𝑓
𝑒 −𝑚 = 𝑒 −0.904 = 0.4049
𝑥 𝑂𝑖 𝐸𝑖 (𝑂𝑖 − 𝐸𝑖 )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.
Accept 𝑯𝟎 .
Therefore, the data follows Poisson distribution.
------------------------------------------------------------------------------------------------------
5. Genetic theory states that children having one parent of blood type M and other
blood type N will always be one of the three types M, MN, N and that the
proportion of these types will on average 1:2:1. A report says that out of 300
children having one M parent and one N parent, 30% were found to be type M ,
45% of type MN and remainder of type N. Test the hypothesis by 𝝌𝟐 test.
[𝝌𝟐𝟎.𝟎𝟓 (𝟐) = 𝟓. 𝟗𝟗]
1 2 1
𝑃(𝑥): ,4,4
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
𝑥 𝑂𝑖 𝐸𝑖 (𝑂𝑖 − 𝐸𝑖 )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
Dr. Narasimhan G, RNSIT 13
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]
-------------------------------------------------------------------------------------------------------------------------
F Distribution
Introduction:
❖ The F test is named in honour of the great statistician R A Fisher. The objective of the F
test is to find out whether the two independent estimates of population variance differ
significantly or whether the two samples may be regarded as drawn from the same
population having the same variance.
𝑠2
❖ For carrying out the test significance, The ratio F is defined as 𝐹 = 𝑠12 , 𝑠12 > 𝑠22 where
2
∑(𝑥−𝑥̅ )2 ∑(𝑦−𝑦̅)2
𝑠12 = , 𝑠22 =
𝑛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.