11.test of Significance
11.test of Significance
Test of Significance
Type-I Error: The Error of rejecting 𝐻0 (accepting 𝐻1 ) when it is true is called error of first kind or Type-I
Ex.: The test that shows a patient to have a disease where in fact the patient does not have disease
Type-II Error: The Error of accepting 𝐻0 when it is false(𝐻1 is true) is called error of 2nd kind or Type-II
Ex.: Blood test failing to detect a disease where in fact the patient does not have disease
The general procedure followed in testing hypothesis comprises the following steps :
Set up a hypothesis
Set up a suitable significance level
Determination of a suitable test statistic
Determine the critical region
Doing computations
Making decisions
Test
Ӽ2 (chi −square) test: Let 𝑂𝑖 be the observed frequencies and 𝐸𝑖 expected frequencies then the test
𝑂𝑖 −𝐸𝑖 2
statistic is 𝜒 2 =σ
𝐸𝑖
If the calculated value of Ӽ2 is less than the tabled value then null hypothesis is accepted.
Chi-Square Test
An investigator obtained the following data on the effectiveness of inoculation as a means of preventing from a disease.
Diseased Non-Diseased Total
Inoculated 5 20 25
No Inoculated 10 15 25
Total 15 35 50
Test whether the inoculation has preventive effect or not (Where at the 5% level of significance, the tabulated chi-squared
value with 1 d.f is 3.841)
Solution: 𝐻0 : Inoculation has no preventive effect (Inoculation and disease are independent). The expected frequencies are
𝑅1 ×𝐶1 25×15 𝑅1 ×𝐶2 25×35 𝑅2 ×𝐶1 25×15 𝑅2 ×𝐶2 25×35
𝐸11 = 𝑁
= 50
= 7.5 , 𝐸12 = 𝑁
= 50
= 17.5 , 𝐸21 = 𝑁
=50
= 7.5 and 𝐸12 = 𝑁
= 50
= 17.5
𝑂𝑖 𝐸𝑖 𝑂𝑖 − 𝐸𝑖 2 𝑂𝑖 − 𝐸𝑖 2 /𝐸𝑖
5 7.5 6.25 0.833
10 7.5 6.25 0.833
20 17.5 6.25 0.357
15 17.5 6.25 0.357
= 2.38
The calculated value of Ӽ2 =2.38 is less than the tabled value=3.841. Therefore the null hypothesis is accepted. Hence
Inoculation has no preventive effect.
t-test
A set of 15 observations and another set of 14 observations in lea strength are measured and the output
shown below: Mean (in kg) Standard Deviation (in kg) Number of tests
Set-1 66.48 2.40 15
Set-2 64.00 2.70 14
Use t-test to find whether two sets of data were drawn from population with same mean.(The tabulated t-
value with 27 df is 2.052)
Solution: Let 𝐻0 : two sets of data were drawn from population with same mean.
Given that 𝑛1 = 15, 𝑛2 = 14 , 𝑥ҧ1 = 66.48 , 𝑥ҧ2 = 64.00 , 𝑠1 = 2.40 and 𝑠2 = 2.70
𝑥ҧ 1 −𝑥ҧ 2 𝑛1 𝑛2 𝑛1 −1 𝑠1 2 + 𝑛2 −1 𝑠2 2
We know that 𝑡 = where 𝑠 = with 𝑛1 + 𝑛2 − 2 df
𝑠 𝑛1 +𝑛2 𝑛1 +𝑛2 −2
Hence the null hypothesis is rejected. So two sets of data were not drawn from population with same mean.
t-test
The average salary of 17 employees in a textile company is 42 thousand taka and sample standard deviation
5 thousand taka. Now test whether the population mean salary is 50 thousand taka.(The tabulated t-value
with 16 df is 2.12)
Solution: Let 𝐻0 : 𝜇0 = 50
Given that 𝑛 = 17, 𝑥ҧ = 42, 𝑠 = 5,𝜇0 = 50
ҧ 0
𝑥−𝜇 42−50
We have, 𝑡 = 𝑠 = 5 = −11.314 with 16 d.f
𝑛 50