Professional Documents
Culture Documents
HY POTHESIS TESTING
FOR CATEGORICAL DATA
Proportion
Group
1 p1
2 p2
Hypotheses To Test
H0:=2 vs (i) Ha: 1 2 (ii) Ha: : 1 > 2 (iii) Ha: : 1 < 2
p i x (1 pi )
Variance for the sample proportion , Var(pi) = ; i 1,2
ni
p1 x (1 p1 ) p 2 x (1 p 2 )
Var(p1-p2) =
n1 n2
distribution
Group 1 Group 2
nmin 52 12
Sample size 78 65
1
Statistical Hypothesis Testing
For each group, the sample size is greater than nmin. Therefore, we can
use the normal approximation.
(0.87 0.63)
3. Standard Normal Variate, Z 3.40
0.0710
Decision Rule
Using = 0.05 as our level of significance, our critical value for the
Therefore:
2
Statistical Hypothesis Testing
Conclusion
Therefore:
Conclusion
3
Statistical Hypothesis Testing
Example 2
Test at = 0.05.
Solution:
i. Hypotheses
4
Statistical Hypothesis Testing
O eij
2
X² where eij is the expected frequency for cell ij and
ij
eij
ni. x n. j
eij .
n
This is given as
o eij 0.5 2
ij
X ² corr .
eij
12 X 13
e11 6.24
25
12 X 12
e21 5.76
25
12 X 13
e12 6.76
25
13 X 12
e22 6.24
25
X2 corr = 3.28
improvement.
5
Statistical Hypothesis Testing
Since X2 corr =3.28 < 3.84, we accept Ho. Treatment is not associated with
improvement.