Answer:
The pvalue of the test is 0.0784 > 0.01, which means that at this significance level, we do not reject the null hypothesis that the percentage of blue candies is equal to 29%.
Explanation:
The candy company claims that the percentage of blue candies is equal to 29%.
This means that the null hypothesis is:
![H_(0): p = 0.29](https://img.qammunity.org/2022/formulas/mathematics/college/svfsebw5qhr7eqfo4cqyves5e23m67wtux.png)
We want to test the hypothesis that this is true, so the alternate hypothesis is:
![H_(a): p \\eq 0.29](https://img.qammunity.org/2022/formulas/mathematics/college/hp8icr48msk3bzjubvtppkqsblzapb546r.png)
The test statistic is:
![z = (X - \mu)/((\sigma)/(√(n)))](https://img.qammunity.org/2022/formulas/mathematics/college/59im90558cjdobm60unnw2lrn6ewzh3ena.png)
In which X is the sample mean,
is the value tested at the null hypothesis,
is the standard deviation and n is the size of the sample.
0.29 is tested at the null hypothesis:
This means that
![\mu = 0.29, \sigma = √(0.29*0.71)](https://img.qammunity.org/2022/formulas/mathematics/college/ltg1ywpmiqtq5m9nly6jbp4o2mpw4uy7cz.png)
Suppose that in a random selection of 100 colored candies, 21% of them are blue.
This means that
![n = 100, X = 0.21](https://img.qammunity.org/2022/formulas/mathematics/college/we2n5ty99nbp3s5sukfop0243i0lgxcaml.png)
Value of the test statistic:
![z = (X - \mu)/((\sigma)/(√(n)))](https://img.qammunity.org/2022/formulas/mathematics/college/59im90558cjdobm60unnw2lrn6ewzh3ena.png)
![z = (0.21 - 0.29)/((√(0.29*0.71))/(√(100)))](https://img.qammunity.org/2022/formulas/mathematics/college/tr18bw8xmcuc16ufi1ypvxqa0nsmewvsox.png)
![z = -1.76](https://img.qammunity.org/2022/formulas/mathematics/college/ldctpsqga05en8ou77xbwbv5bzt9nfguy3.png)
Pvalue of the test:
The pvalue of the test is the probability of the sample proportion differing at least 0.21 - 0.29 = 0.08 from the population proportion, which is 2 multiplied by the pvalue of Z = -1.76.
Looking at the z-table, z = -1.76 has a pvalue of 0.0392
2*0.0392 = 0.0784
The pvalue of the test is 0.0784 > 0.01, which means that at this significance level, we do not reject the null hypothesis that the percentage of blue candies is equal to 29%.