Chapter 14: Review
The chapter problem, solved
The snack company claims that 1 packet in 4 contains a voucher. A customer buys 20 packets and finds 1 voucher. Decide whether the claim is believable at the 5% level.
Step 1. Write the hypotheses and the level
The claim is the null hypothesis. The customer suspects too few vouchers, so the test is one-tailed on the lower tail:
Step 2. State the model under
Under the claim, each packet contains a voucher with probability . The number of vouchers in 20 packets is
The model assumes the packets are independent and that each has the same probability. Both assumptions are checked at the end.
Step 3. Find the test statistic
The sample gives
Step 4. Find the p-value and the critical region
The lower tail contains the observed value and every smaller count:
Work up the tail to find the critical region. The next value gives
so the critical region at the 5% level is , with critical value 1. The acceptance region is .
Step 5. Compare, decide and interpret
so the test rejects . The value lies in the critical region, which agrees with the p-value route.
There is sufficient evidence at the 5% level that fewer than 1 packet in 4 contains a voucher.
What the test does and does not show
The sample proportion is , far below the claimed . If the claim were true, a result this low would happen in only about 2.4% of samples of 20. That is the evidence against the claim.
The test does not prove that the claim is false. It says that the evidence is strong enough to doubt the claim at the 5% level of risk.
The level matters. At the 1% level the same p-value gives
so the test would retain . A conclusion must always name the level.
Three limits apply to the conclusion.
- The sample is small. Twenty packets give limited information. A larger sample would give a clearer answer.
- The packets may not be independent. If the 20 packets came from one box or one delivery, one missing batch of vouchers could produce the whole result.
- The sample may not be random. The customer chose the shop and the day. Another shop may stock a different mix of packets.
Return to the first-contact predictions. One quarter of 20 is 5, so 5 vouchers were expected. Finding 1 is surprising enough to reject the claim at the 5% level. Finding 5 would have been ordinary, and the test would have retained the claim.
Mixed practice — choose the method first
For each question, say which method you will use before you calculate: a binomial test, a Normal test for a mean, a Normal or binomial probability, a summary statistic, or a comparison with a critical value. The items mix this chapter with Chapters 11, 13 and 4.
- A company claims that 1 packet in 4 contains a voucher. A customer buys 20 packets and finds 1 voucher. Test the claim at the 5% level against the alternative that fewer packets contain a voucher.
- A machine fills packets with a mean of 500 g. The standard deviation is known to be 4 g. A sample of 16 packets has mean 497 g. Test at the 5% level whether the mean is below 500 g.
- A sample of 30 pairs gives and a two-tailed p-value of . State, with a symbol, how the p-value compares with the 5% significance level, and name the decision.
- A binomial variable has and . Find , to 4 decimal places.
- A Normal distribution has mean 100 and standard deviation 15. Find , to 4 decimal places.
- A sample of six masses, in grams, is . Find the sample mean.
- A sample is . Find the sample variance, using the sample convention that divides by .
- A coin is tossed 18 times and shows 14 heads. Test at the 5% level whether the coin is fair.
- A depot claims that 20% of vans arrive late. In 25 vans, 10 arrive late. Test at the 5% level whether the late rate is higher than the claim.
- A claim sets . The standard deviation is known to be 2. A sample of four items has mean 22. Test at the 5% level whether the mean has changed.
- A sample of 20 pairs gives . The test is two-tailed at the 5% level and the critical value for 20 pairs is . State, with a symbol, how compares with the critical value, and name the decision.
- A sample of 15 pairs gives . The test is two-tailed at the 5% level and the critical value for 15 pairs is . State, with a symbol, how compares with the critical value, and name the decision.
- A binomial model has . Work out .
- A test gives a p-value of . State, with symbols, how this value compares with the 5% level and with the 1% level, and give the decision at each level.
Answers and concise solutions
1. The p-value, the critical region and the decision
Answer: and . Under , . The p-value is , so reject . The critical region is and the acceptance region is . There is sufficient evidence at the 5% level that fewer than 1 packet in 4 contains a voucher.
2. The p-value and the decision
Answer: and . The standard error is , so . The p-value is , so reject . There is sufficient evidence at the 5% level that the mean is below 500 g.
3. The comparison and the decision
Answer: , so the test rejects . There is sufficient evidence at the 5% level of a linear correlation.
4. The lower tail probability
Answer: to 4 decimal places.
5. The Normal probability
Answer: , and to 4 decimal places.
6. The sample mean
Answer: The total is 120, so the mean is g.
7. The sample variance
Answer: The mean is 5 and the squared deviations add to 32. Dividing by gives a variance of . A variance reports the numbers divided by , so the convention matters.
8. The two-tailed p-value and the decision
Answer: and . The smaller tail is , so the two-tailed p-value is and the test rejects . There is sufficient evidence at the 5% level that the coin is not fair.
9. The p-value and the decision
Answer: and . The p-value is , so reject . There is sufficient evidence at the 5% level that more than 20% of vans arrive late.
10. The p-value and the decision
Answer: and . The standard error is , so . The two-tailed p-value is , so reject . There is sufficient evidence at the 5% level that the mean has changed. The result is close to the level, and at the 1% level the test would retain .
11. The comparison and the decision
Answer: , so the test rejects . There is sufficient evidence at the 5% level of a linear correlation.
12. The comparison and the decision
Answer: , so the test retains . There is not sufficient evidence at the 5% level of a linear correlation. The result is close to the boundary, so a larger sample could change the decision.
13. The binomial coefficient
Answer: . The coefficient is needed when a binomial probability is worked out term by term.
14. The two comparisons and the decisions
Answer: , so the test rejects at the 5% level. Also , so the test retains at the 1% level. The same evidence gives two decisions, which is why the level is part of every conclusion.
What you can now do
- write a null hypothesis and an alternative hypothesis for a proportion or a mean;
- choose a one-tailed or two-tailed test and give a reason;
- explain the significance level as the probability of rejecting a true null hypothesis;
- carry out a binomial test for a proportion, with the exact p-value or the critical region;
- carry out a Normal test for a mean when the variance is known, given or assumed;
- interpret a correlation coefficient with a given p-value or critical value;
- write a conclusion in context that names the significance level and the risk it carries.
Your relevance reflection
Return to the prompt in the chapter opener: a number you have seen in an advert, a news report or a school notice. Write the claim again.
Now add three things you could not have said before this chapter. First, write the null hypothesis and the alternative for the claim. Second, say what sample would test it and what test you would use. Third, say what a p-value would tell you, and what it would still leave open. Finish with one sentence about how a small sample could make a true claim look false, or a false claim look true.