190k views
0 votes
Suppose that in a random selection of 100 colored​ candies, 21​% of them are blue. The candy company claims that the percentage of blue candies is equal to 28​%. Use a 0.05 significance level to test that claim.

User Lashanda
by
4.5k points

2 Answers

4 votes

Given the problem, first, we denote the sample size, observed proportion of blue candies, claimed proportion of blue candies, and significance level as:

- n = 100
- p_observed = 0.21
- p_claimed = 0.28
- significance_level = 0.05

Our first step in the hypothesis testing process is to calculate the standard error. We do this using the formula:

standard_error = sqrt((p_claimed*(1 - p_claimed))/n)

which gives us a standard error of approximately 0.0449. The standard error measures the variability or dispersion of our sample proportion from the claimed proportion.

Next, we will calculate the z-score, which measures the number of standard deviations an observation (or in this case, the sample proportion) is away from the mean, or the claimed proportion. We do this using the formula:

z = (p_observed - p_claimed)/standard_error

which gives us a z-score of approximately -1.559. The negative sign indicates that the observed proportion is less than the hypothesized proportion.

Then, we need to calculate the p-value. The p-value is the probability of getting a sample as extreme, or more extreme, than the one we have, assuming the null hypothesis is true. In other words, it is the likelihood of observing our sample data if the candy company's claim of 28% blue candies is accurate.

As the observed proportion is less than the hypothesized proportion, we calculate the cumulative probability up to the z-score. Doing this gives us a p-value of approximately 0.0595.

Finally, we need to determine whether to accept or reject the null hypothesis based on the p-value and the significance level.

Here, we can see our p-value is slightly larger than the given significance level (0.0595 > 0.05), thus, we do not reject the null hypothesis. This means there is not enough evidence at the 5% significance level to reject the candy company's claim that 28% of their candies are blue.

In conclusion, given our sample and the given significance level, our analysis does not provide sufficient evidence to say with 95% confidence that the company's claim is false. Our data does not contradict the company's claimed proportion of 28%.

User Narayan Yerrabachu
by
5.4k points
5 votes

Answer:

The percentage of blue candies is equal to 28​%.

Explanation:

Sample size = n = 1000

21​% of them are blue

So, No. of blue candies =
21\% * 100 =(21)/(100) * 100=21

Claim : The percentage of blue candies is equal to 28​%.


H_0:\mu = 0.28\\H_a:\mu \\eq 0.28

We will use one sample proportion test


\widehat{p}=(x)/(n)


\widehat{p}=(21)/(100)


\widehat{p}=0.21

Formula of test statistic =
\frac{\widehat{p}-p}{\sqrt{(p(1-p))/(n)}}

=
\frac{0.21-0.28}{\sqrt{(0.28(1-0.28))/(100)}}

=−1.55

Now refer the p value from the z table

p value =0.0606

α =0.05

So, p value > α

So, we failed to reject null hypothesis

So, the percentage of blue candies is equal to 28​%.

User Sean Wei
by
5.5k points