A Galway oat packer claims a 500 g mean. Is a sample mean of 502 g far enough away?
A Galway oat packer claims that its packs contain five hundred grams of oats on average. You weigh a random sample of one hundred packs and get a mean of five hundred and two grams. Could ordinary sampling variation explain that gap?
Take one random sample and calculate its mean. Repeat that with samples of the same size and the means will vary. Those means have a distribution of their own. Its standard deviation is called the standard error, the same measure of spread you use when building a confidence interval.
If the claim is true, the sample means follow an approximately normal curve centred at five hundred grams. This curve uses a standard error of one gram, which you'll calculate shortly. Four hundred and ninety-eight and five hundred and two are equally far from the centre. Include outcomes that far out or farther in both directions.
Suppose the claimed mean is forty grams and your sample mean is thirty-seven grams. On the high side, which sample means count as equally or more extreme? Pick one answer.
Let mu stand for the true mean mass of oats per pack. The null hypothesis, H zero, says mu equals five hundred grams. The alternative, H one, says mu differs from five hundred grams. It allows a difference in either direction.
For a large random sample with independent observations, divide the sample standard deviation by the square root of the sample size to estimate the standard error. Subtract the claimed mean from the sample mean and divide by that estimate. This gives your z score, which follows approximately the standard normal distribution under the null hypothesis.
For a hundred packs, the sample standard deviation is ten grams. Divide by the square root of one hundred to get one gram. The two-gram gap gives z equal to two. The table gives about zero point nine seven seven two to the left. Subtract from one, then double for both tails.
This time your z score is minus one point five. The normal table gives an area of zero point zero six six eight to its left. Pick the two-tailed p-value.
A p-value of about four point five six per cent doesn't tell you the chance the packer's claim is true. It gives the chance that another sample of the same size gives a z score at least as far from zero as yours, in either direction, assuming the claim is true.
A Leaving Cert question may ask you to test the claim at the five per cent level of significance. Your p-value is below zero point zero five, so reject H zero. Your sample gives evidence that the true mean mass differs from five hundred grams.