Skip to main content

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 ΞΌ:
H0:ΞΌ=ΞΌ0Ha:ΞΌβ‰ ΞΌ0
H0:μ≀μ0Ha:ΞΌ>ΞΌ0
H0:ΞΌβ‰₯ΞΌ0Ha:ΞΌ<ΞΌ0
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 Οƒ 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 Οƒ 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 Οƒe is given by
Οƒe=sn
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 Οƒe.
To determine the p-value for a given sample with sample mean x―,
t=xβ€•βˆ’ΞΌsn
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 ΞΌ using
H0:ΞΌ=200Ha:ΞΌβ‰ 200
using a sample of size n = 49 and with a resulting mean of x―=206, a sample standard deviation of s=15, and a significance level of Ξ±=0.01.
The standard error for this test is
Οƒe=1549=157
and so using the t-distribution with degrees of freedom n-1 = 48 yields a t-statistic of
t=xβ€•βˆ’200Οƒe=206βˆ’200157=145=2.80.
To compute the p-value,
P(t>2.80)+P(t<2.80)β‰ˆ0.0037+0.0037=0.0074.
Since this p-value is less than our significance level Ξ±=0.01 then you can reject the null hypothesis and accept the alternate.
A random sample of 10 observations was drawn from a large normally distributed population. The data is below.
22 20 22 20 25 18 22 23 19 18
To determine if you can infer at the 4% significance level that the population mean is not equal to 22, complete the steps below:
The value of the standardized test statistic:
Using interval notation with ∞ written as β€œinfty” and βˆͺ written as β€œU” (capital u), determine each of the following:
The rejection region for the standardized test statistic:
The p-value is
Your decision for the hypothesis test therefore would be to not reject the null hypothesis H0.
Answer 1.
βˆ’1.5238
Answer 2.
Answer 3.
0.161894
A random sample of 10 observations was drawn from a large normally distributed population. The data is below.
24241515211914191916
Test to determine if we can infer at the 10% significance level that the population mean is not equal to 19, filling in the requested information below.
A. The value of the standardized test statistic:
Note: For the next part, your answer should use interval notation. An answer of the form (βˆ’βˆž,a) is expressed (-infty, a), an answer of the form (b,∞) is expressed (b, infty), and an answer of the form (βˆ’βˆž,a)βˆͺ(b,∞) is expressed (-infty, a)U(b, infty).
B. The rejection region for the standardized test statistic:
C. The p-value is
D. Your decision for the hypothesis test:
  • Reject H1.
  • Reject H0.
  • Do Not Reject H1.
  • Do Not Reject H0.
Answer 1.
βˆ’0.348742916231457
Answer 2.
(βˆ’βˆž,βˆ’1.83311)βˆͺ(1.83311,∞)
Answer 3.
0.735302
Consider One-tailed Hypothesis test for ΞΌ 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:
H0:ΞΌ=16Ha:ΞΌ>200.
To test this hypothesis at significance level Ξ±=0.05, 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 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
Οƒe=0.0820β‰ˆ0.01789
and using the t-distribution with n-1 = 19 degrees of freedom yields a t-statistic of
t=xβ€•βˆ’16Οƒe=16.05βˆ’160.01789β‰ˆ2.795.
To compute the p-value,
P(t>2.795)β‰ˆ0.0058.
Since this p-value is less than our significance level Ξ±=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.
Andrew thinks that people living in a rural environment have a healthier lifestyle than other people. He believes the average lifespan in the USA is 77 years. A random sample of 18 obituaries from newspapers from rural towns in Idaho give xΒ―=78.92 and s=2. Does this sample provide evidence that people living in rural Idaho communities live longer than 77 years?
(a) State the null and alternative hypotheses: (Type "mu" for the symbol ΞΌ , e.g. mu >1 for the mean is greater than 1, mu < 1 for the mean is less than 1, mu not = 1 for the mean is not equal to 1)
H0 :
Ha :
(b) Find the test statistic, t =
(c) Answer the question: Does this sample provide evidence that people living in rural Idaho communities live longer than 77 years? (Use a 10% level of significance)
(Type: Yes or No)
Answer 1.
mu = 77
Answer 2.
mu > 77
Answer 3.
78.92βˆ’77218
Answer 4.
Yes