0.21 * 222[1] 46.62
222 - 0.21 * 222[1] 175.38
A survey of 430 randomly chosen adults found that 0.21 of the 222 men and 0.18 of the 208 women had purchased books online. Is there evidence that men are more likely than women to make online purchases of books? Formulate the tested hypothesis and compute the corresponding \(p\)-value at 0.05.
Assumptions: 46.6, 175.38, 37.4, 170.56
\(H_0\): \(p_m \leq p_w\) \(H_1\): \(p_m > p_w\)
alpha <- 0.05
prop.test(c(0.21*222,0.18*208),n=c(222,208),
alternative="greater",
conf.level=1-alpha,
correct=FALSE)$p.value[1] 0.2165452
Conclusion: We fail to reject \(H_0\) because the \(p\)-value \(> \alpha\)
Inference: There is not enough evidence to support the claim that men are more likely than women to make online purchases of books. source
An advertisement claims that children who use Smile toothpaste have fewer cavities than children who use any other brand. To test this claim, a consumer’s group selected 100 children and divided them into two groups of 50 each. The children of group I were told to brush daily with only Smile toothpaste. The children of group II were told to brush daily with Vanish toothpaste. The experiment lasted one year. The children who used Smile toothpaste had a mean of 2.31 cavities with a standard deviation of 0.6. For the children who used Vanish, there was a mean of 2.68 cavities with a standard deviation of 0.4. Is Smile significantly more effective than Vanish at preventing cavities? Use the P-value method with a 0.05 significance level.
\(H_0: \mu_S >= \mu_V\) \(H_1: \mu_S < \mu_V\)
We test the variance homogeneity:
The statistic is:
Which correspond to a p-value of:
The student statistic is:
Which correspond to a p-value of:
[1] 0.0002277979