Sample Tests for a Population Mean

This section talks about using the central limit theorem to test a population mean when the sample size is large. It also addresses how to interpret the test results in the application background. Then, it discusses testing a population mean when the sample size is small, outlines a five-step testing procedure, and illustrates the procedure with an example. Study the example carefully and complete the relevant exercises and applications. Finally, it talks about large sample tests for a population proportion. The critical value and p-value approach are introduced based on a standardized test statistic.

Small Sample Tests for a Population Mean

LEARNING OBJECTIVE

  1. To learn how to apply the five-step test procedure for test of hypotheses concerning a population mean when the sample size is small.

In the previous section hypotheses testing for population means was described in the case of large samples. The statistical validity of the tests was insured by the Central Limit Theorem, with essentially no assumptions on the distribution of the population. When sample sizes are small, as is often the case in practice, the Central Limit Theorem does not apply. One must then impose stricter assumptions on the population to give statistical validity to the test procedure. One common assumption is that the population from which the sample is taken has a normal probability distribution to begin with. Under such circumstances, if the population standard deviation is known, then the test statistic \left(\bar{x}-\mu_{0}\right) /(\sigma / \sqrt{n}) still has the standard normal distribution, as in the previous two sections. If \sigma is unknown and is approximated by the sample standard deviation s, then the resulting test statistic \left(\bar{x}-\mu_{0}\right) /(s / \sqrt{n}) follows Student's t-distribution with n-1 degrees of freedom.


Standardized Test Statistics for Small Sample Hypothesis Tests Concerning a Single Population Mean

If \sigma is known: \quad Z=\frac{\bar{x}-\mu_{0}}{\sigma / \sqrt{n}}

If \sigma is unknown: \quad T=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}

The first test statistic (\sigma known) has the standard normal distribution.

The second test statistic (\sigma unknown) has Student's t-distribution with n-1 degrees of freedom.

The population must be normally distributed.

The distribution of the second standardized test statistic (the one containing s) and the corresponding rejection region for each form of the alternative hypothesis (left-tailed, right-tailed, or two-tailed), is shown in Figure 8.11 "Distribution of the Standardized Test Statistic and the Rejection Region". This is just like Figure 8.4 "Distribution of the Standardized Test Statistic and the Rejection Region", except that now the critical values are from the t-distribution. Figure 8.4 "Distribution of the Standardized Test Statistic and the Rejection Region" still applies to the first standardized test statistic (the one containing \sigma) since it follows the standard normal distribution.

Figure 8.11 Distribution of the Standardized Test Statistic and the Rejection Region


The p-value of a test of hypotheses for which the test statistic has Student's t-distribution can be computed using statistical software, but it is impractical to do so using tables, since that would require 30 tables analogous to Figure 12.2 "Cumulative Normal Probability", one for each degree of freedom from 1 to 30. Figure 12.3 "Critical Values of" can be used to approximate the p-value of such a test, and this is typically adequate for making a decision using the p-value approach to hypothesis testing, although not always. For this reason the tests in the two examples in this section will be made following the critical value approach to hypothesis testing summarized at the end of Section 8.1 "The Elements of Hypothesis Testing", but after each one we will show how the p-value approach could have been used.


EXAMPLE 10

The price of a popular tennis racket at a national chain store is $179. Portia bought five of the same racket at an online auction site for the following prices:

\begin{array}{lllll}155 & 179 & 175 & 175 & 161\end{array}

Assuming that the auction prices of rackets are normally distributed, determine whether there is sufficient evidence in the sample, at the 5% level of significance, to conclude that the average price of the racket is less than $179 if purchased at an online auction.


Solution:

  • Step 1. The assertion for which evidence must be provided is that the average online price \mu is less than the average price in retail stores, so the hypothesis test is

\begin{aligned} H_{0}: \mu &=179 \\ \text { vs. } H_{a}: \mu & < 179 @ \alpha=0.05 \end{aligned}

  • Step 2. The sample is small and the population standard deviation is unknown. Thus the test statistic is

T=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}

and has the Student t-distribution with n-1=5-1=4 degrees of freedom.

  • Step 3. From the data we compute \bar{x}=169 and s=10.39. Inserting these values into the formula for the test statistic gives

T=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}=\frac{169-179}{10.39 / \sqrt{5}}=-2.152

  • Step 4. Since the symbol in H_{a} is "<" this is a left-tailed test, so there is a single critical value, -t_{\alpha}=-t_{0.05}[d f=4]. Reading from the row labeled d f=4 in Figure 12.3 "Critical Values of " its value is -2.132. The rejection region is (-\infty,-2.132].
  • Step 5. As shown in Figure 8.12 "Rejection Region and Test Statistic for" the test statistic falls in the rejection region. The decision is to reject H_{0}. In the context of the problem our conclusion is:

The data provide sufficient evidence, at the 5% level of significance, to conclude that the average price of such rackets purchased at online auctions is less than $179.

Figure 8.12

Rejection Region and Test Statistic for Note 8.42 "Example 10"


To perform the test in Note 8.42 "Example 10" using the p-value approach, look in the row in Figure 12.3 "Critical Values of" with the heading d f=4 and search for the two t-values that bracket the unsigned value 2.152 of the test statistic. They are 2.132 and 2.776, in the columns with headings t_{0.050} and t_{0.025}. They cut off right tails of area 0.050 and 0.025, so because 2.152 is between them it must cut off a tail of area between 0.050 and 0.025. By symmetry -2.152 cuts off a left tail of area between 0.050 and 0.025, hence the p-value corresponding to t=-2.152 is between 0.025 and 0.05. Although its precise value is unknown, it must be less than \alpha=0.05, so the decision is to reject H_{\mathrm{0}}.


EXAMPLE 11

A small component in an electronic device has two small holes where another tiny part is fitted. In the manufacturing process the average distance between the two holes must be tightly controlled at 0.02 mm, else many units would be defective and wasted. Many times throughout the day quality control engineers take a small sample of the components from the production line, measure the distance between the two holes, and make adjustments if needed. Suppose at one time four units are taken and the distances are measured as

\begin{array}{llll}0.021 & 0.019 & 0.023 & 0.020\end{array}

Determine, at the 1% level of significance, if there is sufficient evidence in the sample to conclude that an adjustment is needed. Assume the distances of interest are normally distributed.


Solution:

  • Step 1. The assumption is that the process is under control unless there is strong evidence to the contrary. Since a deviation of the average distance to either side is undesirable, the relevant test is

 \begin{aligned} H_{0} &: \mu=0.02 \\ \text { vs. } H_{a}: \mu & \neq 0.02 @ \alpha=0.01\end{aligned}

where \mu denotes the mean distance between the holes.

  • Step 2. The sample is small and the population standard deviation is unknown. Thus the test statistic is

T=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}

and has the Student t-distribution with n-1=4-1=3 degrees of freedom.

  • Step 3. From the data we compute \bar{x}=0.02075 and s=0.00171. Inserting these values into the formula for the test statistic gives

T=\frac{\bar{x}-\mu_{0}}{s / \sqrt{n}}=\frac{0.02075-0.02}{0.00171 / \sqrt{4}}=0.877

  • Step 4. Since the symbol in H_{a} is "\neq" this is a two-tailed test, so there are two critical values, \pm t_{\alpha / 2}=-t_{0.005}[d f=3]. Reading from the row in \underline{\text { Figure }} 12.3 "Critical Values of " labeled d f=3 their values are \pm 5.841. The rejection region is (-\infty,-5.841] \cup[5.841, \infty).
  • Step 5. As shown in Figure 8.13 "Rejection Region and Test Statistic for " the test statistic does not fall in the rejection region. The decision is not to reject H_{0}. In the context of the problem our conclusion is:
    The data do not provide sufficient evidence, at the 1% level of significance, to conclude that the mean distance between the holes in the component differs from 0.02 mm.

Figure 8.13

Rejection Region and Test Statistic for Note 8.43 "Example 11"


To perform the test in Note 8.43 "Example 11" using the p-value approach, look in the row in Figure 12.3 "Critical Values of" with the heading d f=3 and search for the two t-values that bracket the value 0.877 of the test statistic. Actually 0.877 is smaller than the smallest number in the row, which is 0.978, in the column with heading t_{0.200}. The value 0.978 cuts off a right tail of area 0.200, so because 0.877 is to its left it must cut off a tail of area greater than 0.200. Thus the p-value, which is the double of the area cut off (since the test is two-tailed), is greater than 0.400. Although its precise value is unknown, it must be greater than \alpha=0.01, so the decision is not to reject H_{0}.