In: Statistics and Probability
Does Mars, Incorporated use the same proportion of red candies in its plain and peanut varieties? A random sample of 60 plain M&M'S contained 15 red candies, and another random sample of 38 peanut M&M'S contained 9 red candies. (Use p1 for the proportion of red candies in plain M&M'S and p2 for the proportion of red candies in peanut M&M'S.)
(a) Construct a 95% confidence interval for the difference in the proportions of red candies for the plain and peanut varieties
(p1 − p2).
(Round your answers to three decimal places.)
_______ to ________
Solution :
Given that,
= x1 / n1 = 15 / 60 = 0.25
1- = 0.75
= x2 / n2 = 9 / 38 = 0.237
1 - = 0.763
At 95% confidence level the z is ,
Z/2 = 1.96
95% confidence interval for p1 - p2 is
,
(
-
)
Z/2 *
[(1-
) / n1 +
(1 -
) / n2]
(0.25 - 0.237) * [(0.25 * 0.75) / 60 + (0.237 * 0.763) / 38]
-0.161 < p1 - p2 < 0.187
-0.161 to 0.187