# Question: Let p equal the proportion of yellow candies in a

Let p equal the proportion of yellow candies in a package of mixed colors. It is claimed that p = 0.20.

(a) Define a test statistic and critical region with a significance level of α = 0.05 for testing H0: p = 0.20 against a two-sided alternative hypothesis

(b) To perform the test, each of 20 students counted the number of yellow candies, y, and the total number of candies, n, in a 48.1-gram package, yielding the following ratios, y/n: 8/56, 13/55, 12/58, 13/56, 14/57, 5/54, 14/56, 15/57, 11/54, 13/55, 10/57, 8/59, 10/54, 11/55, 12/56, 11/57, 6/54, 7/58, 12/58, 14/58. If each individual tests H0: p = 0.20, what proportion of the students rejected the null hypothesis?

(c) If we may assume that the null hypothesis is true, what proportion of the students would you have expected to reject the null hypothesis?

(d) For each of the 20 ratios in part (b), a 95% confidence interval for p can be calculated. What proportion of these 95% confidence intervals contain p = 0.20?

(a) Define a test statistic and critical region with a significance level of α = 0.05 for testing H0: p = 0.20 against a two-sided alternative hypothesis

(b) To perform the test, each of 20 students counted the number of yellow candies, y, and the total number of candies, n, in a 48.1-gram package, yielding the following ratios, y/n: 8/56, 13/55, 12/58, 13/56, 14/57, 5/54, 14/56, 15/57, 11/54, 13/55, 10/57, 8/59, 10/54, 11/55, 12/56, 11/57, 6/54, 7/58, 12/58, 14/58. If each individual tests H0: p = 0.20, what proportion of the students rejected the null hypothesis?

(c) If we may assume that the null hypothesis is true, what proportion of the students would you have expected to reject the null hypothesis?

(d) For each of the 20 ratios in part (b), a 95% confidence interval for p can be calculated. What proportion of these 95% confidence intervals contain p = 0.20?

**View Solution:**## Answer to relevant Questions

For developing countries in Africa and the Americas, let p1 and p2 be the respective proportions of babies with a low birth weight (below 2500 grams). We shall test H0: p1 = p2 against the alternative hypothesis H1: p1 > ...Let p equal the proportion of drivers who use a seat belt in a state that does not have a mandatory seat belt law. It was claimed that p = 0.14. An advertising campaign was conducted to increase this proportion. Two months ...The outcomes on n = 10 simulations of a Cauchy random variable were −1.9415, 0.5901, −5.9848, −0.0790, −0.7757, −1.0962, 9.3820, −74.0216, −3.0678, and 3.8545. For the Cauchy distribution, the mean does not ...Let X have a Bernoulli distribution with pmf We would like to test the null hypothesis H0: p ≤ 0.4 against the alternative hypothesis H1: p > 0.4. For the test statistic, use is a random sample of size n from this ...Let X1, X2, ... , Xn be a random sample from an exponential distribution with mean θ. Show that the likelihood ratio test of H0: θ = θ0 against H1: θ ≠ θ0 has a critical region of the form How would you modify this ...Post your question