In the previous section, we compared data collected from a sample against a known or supposed baseline.
But the statistics for that baseline would also generally be approximated by collecting data from a sample.
We'll now consider hypothesis tests that directly involve two samples of data, one called a
Suppose a sample of 50 plants have a mean height of 35 cm.
A separate sample of 30 plants are taken from another plot which has been using a new fertilizer intended to increase plant growth, and they have a mean height of 36.4 cm.
If the height of a plant has a variance of
Let
According to the null hypothesis, the two plots of plants should behave the same way, so
However, we don't know
Suppose a sample of 100 people from the general population contains 10 left-handed people, and a sample of 100 patients from a carpal tunnel syndrome clinic contains 16 left-handed people.
If
A farmer is testing an experimental new plant fertilizer that is supposed to increase the weight of a particular apple variety.
A control sample of 25 apples grown using the usual fertilizer have a mean weight of 75 grams and a sample variance of 90 grams
We have an established factory which produces coins that are close to fair. We're opening up a second factory, and we'd like to ensure the machines are calibrated to produce coins which behave similarly to the ones produced in the established factory. We pick one sample coin from each factory, and flip each sample coin 100 times. The coin from the established factory flips 52 heads in 100 flips. The coin from the new factory flips 62 heads in 100 flips. Is this strong enough evidence to reject the null hypothesis that the two factories produce similar coins at a 0.05 significance level?