Suppose that in a random selection of 90 colored candies, 25% of them are purple. The candy company claims that the percentage of purple candies is equal to 27%. Use a 0.05 significance level to test that claim.

Identify the null and alternative hypotheses for this test.

Identify the test statistic for this hypothesis test.
The test statistic for this hypothesis test is ___.

Identify the P-value for this hypothesis test.
The P-value for this hypothesis test is ___.

Identify the conclusion for this hypothesis test.


Answer:
Given:

Hypothesized Population Proportion $ (p)=0.27 $

Sample Proportion $ (\hat{p})=0.25 $

Sample Size $ (n)=90 $

Significance Level $ (\alpha) = 0.05$

Solution:

The null and alternative hypothesis:

$H_0:p=0.27$
$H_a:p\neq0.27$

The test statistic:
$z = \frac{\hat{p} – p}{\sqrt{\frac{p(1-p)}{n}}} = \frac{0.25 – 0.27}{\sqrt{\frac{0.27(1-0.27)}{90}}} = \frac{-0.02}{\sqrt{\frac{0.1971}{90}}} = \frac{-0.02}{0.0467} = -0.43$

The p-value:
$\text{The p-value} = 2 \times P(z < -0.43) = 0.6691$

The conclusion:
The p-value is greater than the significance level. Therefore, we fail to reject the null hypothesis, suggesting that there is not enough evidence to support the claim that the fraction of purple candies is different from 27%.

Final answer:
The null and alternative hypothesis:
$H_0:p=0.27$
$H_a:p\neq0.27$

The test statistic $(z)=-0.43$

The p-value $=0.6691$

The conclusion:
We fail to reject the null hypothesis, suggesting that there is not enough evidence to support the claim that the fraction of purple candies is different from 27%.

adbhutah
adbhutah

adbhutah.com

Articles: 1279