Answer:
1)
We can calculate the p value with the following formula:
The p value for this case is very high and using the significance level of 0.01 we have enough evidence to FAIL to reject the null hypothesis and we can conclude that the statment makes sense.
2)
(b)
And replacing into equation (b) the values from part a we got:
And rounded up we have that n=2167
Explanation:
Information given
n=300 represent the random sample taken
X=21 represent the number of peanuts empty
estimated proportion of peanust empty
is the value to test
represent the significance level
z would represent the statistic
represent the p value
Part 1
We want to test if the true proportion is 6% or no the system of hypothesis are:
Null hypothesis:
Alternative hypothesis:
The statistic is given by:
(1)
Replacing the info given we got:
We can calculate the p value with the following formula:
The p value for this case is very high and using the significance level of 0.01 we have enough evidence to FAIL to reject the null hypothesis and we can conclude that the statment makes sense.
Part 2
The margin of error for the proportion interval is given by this formula:
(a)
And on this case we have that
and we are interested in order to find the value of n, if we solve n from equation (a) we got:
(b)
And replacing into equation (b) the values from part a we got:
And rounded up we have that n=2167