Section 11.4 Hypothesis Test for one mean
In this section, you will consider the following options for null hypothesis and corresponding alternate hypothesis with respect to the unknown value \(\mu\text{:}\)
or
or
Again, we choose only one of these three options and as before the first is called a "two-tailed" test and the last two are called "one-tailed" tests. Note that some people will write all of these null hypothesis options using equality but the alternate hypothesis determines the number of tails.
Once again, if the test sample size is sufficiently large and the standard deviation \(\sigma\) of the underlying distribution is known, one can use the normal distribution to compute probabilities. If the test sample size is relatively small or if \(\sigma\) is not known (and therefore is approximated by the sample standard deviation s), then the t-distribution can be utilized to compute probabilities. We will only consider using the t-distribution to compute p-values.
The Standard Error \(\sigma_e\) is given by
where s is the standard deviation of the sample. For this presentation, we will assume that the actual population is relatively large relative to the sample size. In cases where this is not true, an adjustment (not presented here) will need to be made when computing \(\sigma_e\text{.}\)
To determine the p-value for a given sample with sample mean \(\overline{x}\text{,}\)
is a t-variable with n-1 degrees of freedom. Therefore, probabilities on t can be computed using the t-distribution.
Consider a Two-tailed Hypothesis test for \(\mu\) using
using a sample of size n = 49 and with a resulting mean of \(\overline{x} = 206\text{,}\) a sample standard deviation of \(s = 15\text{,}\) and a significance level of \(\alpha = 0.01\text{.}\)
The standard error for this test is
and so using the t-distribution with degrees of freedom n-1 = 48 yields a t-statistic of
To compute the p-value,
Since this p-value is less than our significance level \(\alpha = 0.01\) then you can reject the null hypothesis and accept the alternate.
Checkpoint 11.4.1.
Checkpoint 11.4.2. WebWorK - Another Two Tailed Test.
Consider One-tailed Hypothesis test for \(\mu\) using an interesting application:
Suppose that a manufacturer bottling a delicious beverage and the label indicates that the bottle contains 16 fluid ounces. Since providing the customer too little product might cause a significant negative reaction relative to the modest additional cost of providing a little too much, consider the following hypothesis test:
To test this hypothesis at significance level \(\alpha = 0.05\text{,}\) you randomly pull out 20 bottles from the production line and accurately measure the amount of produce in each bottle. If the resulting average of these measurements is \(\overline{x} = 16.05\) ounces with a standard deviation of \(s = 0.08\) ounces, determine if you can safely make it known that more product is actually delivered in general to each consumer.
The standard error for this test is
and using the t-distribution with n-1 = 19 degrees of freedom yields a t-statistic of
To compute the p-value,
Since this p-value is less than our significance level \(\alpha = 0.05\) (by a lot) then you can reject the null hypothesis and accept the alternate. It is safe therefore to say that customers can expect at least 16 ounces! However, note that some folks will still be stiffed since the standard deviation of 0.08 certainly means that some bottles have less than 16.05-0.08 ounces of beverage.