In: Statistics and Probability
Dan believes the success rate of students who take a morning class is higher than students who take an afternoon class in the same subject. In a morning class of 34 students, 30 have passing grades (C or better). In an afternoon class of 25 students, 18 have passing grades.
What is H0:
What is Ha:
What is the p-value? Round answer to three decimal places (i.e. 0.123)? Answer
At a level of significance (alpha) of 0.05, what is your decision?
reject the null hypothesis
accept the null hypothesis
fail to reject the null hypothesis
Solution :
Given that,
n1 = 34
x1 = 30
Point estimate = sample proportion = 1 = x1 / n1 = 0.88
n2 = 25
x2 = 18
Point estimate = sample proportion = 2 = x2 / n2 = 0.81
The value of the pooled proportion is computed as,
= ( x1 + x2 ) / ( n1 + n2 )
= (30 + 18 ) / ( 34 + 25)
= 0.81
1 - = 0.19
Level of significance = = 0.05
This a right(one)-tailed test.
The null and alternative hypothesis is,
Ho: p1 = p2
Ha: p1 > p2
Test statistics
z = (1 - 2 ) / *(1-) ( 1/n1 + 1/n2 )
= (0.88 - 0.72 ) / (0.81 * 0.19 ) (1/34 + 1/25 )
= 1.582
P-value = P(Z > z )
= 1 - P(Z< 1.582)
= 1 - 0.9432
= 0.057
Since, P-value = 0.057 > 0.05 , It is concluded that fail to reject null hypothesis.
fail to reject the null hypothesis