8.6: Hypothesis Test of a Single Population Mean with Examples

Steps for performing Hypothesis Test of a Single Population Mean

The sampling distribution for the one-mean test statistic is, approximately, T- distribution if the following conditions are met

Step 3: Perform the procedure based on the assumption that \(H_\) is true

Step 4: Make a decision about \(H_\) and \(H_\)

Step 5: Make a conclusion

The following examples illustrate a left-, right-, and two-tailed test.

Example \(\PageIndex\)

Normal distribution curve of a single population mean with a value of 5 on the x-axis and the p-value points to the area on the left tail of the curve.

Exercise \(\PageIndex\)

Assume the \(p\)-value is 0.0935. What type of test is this? Draw the picture of the \(p\)-value.

Answer

alt

Example \(\PageIndex\)

Normal distribution curve of a single population proportion with the value of 0.2 on the x-axis. The p-value points to the area on the right tail of the curve.

Exercise \(\PageIndex\)

Assume the \(p\)-value is 0.1243. What type of test is this? Draw the picture of the \(p\)-value.

Answer

alt

Example \(\PageIndex\)

Normal distribution curve of a single population mean with a value of 50 on the x-axis. The p-value formulas, 1/2(p-value), for a two-tailed test is shown for the areas on the left and right tails of the curve.

Exercise \(\PageIndex\)

Assume the p-value is 0.2564. What type of test is this? Draw the picture of the \(p\)-value.

Answer

alt

Full Hypothesis Test Examples

Example \(\PageIndex\)

Statistics students believe that the mean score on the first statistics test is 65. A statistics instructor thinks the mean score is higher than 65. He samples ten statistics students and obtains the scores 65 65 70 67 66 63 63 68 72 71. He performs a hypothesis test using a 5% level of significance. The data are assumed to be from a normal distribution.

Answer

Set up the hypothesis test:

A 5% level of significance means that \(\alpha = 0.05\). This is a test of a single population mean.

Since the instructor thinks the average score is higher, use a "\(>\)". The "\(>\)" means the test is right-tailed.

Determine the distribution needed:

Random variable: \(\bar =\) average score on the first statistics test.

Distribution for the test: If you read the problem carefully, you will notice that there is no population standard deviation given. You are only given \(n = 10\) sample data values. Notice also that the data come from a normal distribution. This means that the distribution for the test is a student's \(t\).

Use \(t_\). Therefore, the distribution for the test is \(t_\) where \(n = 10\) and \(df = 10 - 1 = 9\).

The sample mean and sample standard deviation are calculated as 67 and 3.1972 from the data.

Calculate the \(p\)-value using the Student's \(t\)-distribution:

Use the T-table or Excel's t_dist() function to find p-value:

\(p\text = P(\bar > 67) =P(T >1.9782 )= 1-0.9604=0.0396\)

Interpretation of the p-value: If the null hypothesis is true, then there is a 0.0396 probability (3.96%) that the sample mean is 65 or more.

Normal distribution curve of average scores on the first statistic tests with 65 and 67 values on the x-axis. A vertical upward line extends from 67 to the curve. The p-value points to the area to the right of 67.

Compare \(\alpha\) and the \(p-\text\):

Since \(α = 0.05\) and \(p\text = 0.0396\). \(\alpha > p\text\).

Make a decision: Since \(\alpha > p\text\), reject \(H_\).

This means you reject \(\mu = 65\). In other words, you believe the average test score is more than 65.

Conclusion: At a 5% level of significance, the sample data show sufficient evidence that the mean (average) test score is more than 65, just as the math instructor thinks.

The \(p\text\) can easily be calculated.

Put the data into a list. Press STAT and arrow over to TESTS . Press 2:T-Test . Arrow over to Data and press ENTER . Arrow down and enter 65 for \(\mu_\), the name of the list where you put the data, and 1 for Freq: . Arrow down to \(\mu\): and arrow over to \(> \mu_\). Press ENTER . Arrow down to Calculate and press ENTER . The calculator not only calculates the \(p\text\) (p = 0.0396) but it also calculates the test statistic (t-score) for the sample mean, the sample mean, and the sample standard deviation. \(\mu > 65\) is the alternative hypothesis. Do this set of instructions again except arrow to Draw (instead of Calculate ). Press ENTER . A shaded graph appears with \(t = 1.9781\) (test statistic) and \(p = 0.0396\) (\(p\text\)). Make sure when you use Draw that no other equations are highlighted in \(Y =\) and the plots are turned off.

Exercise \(\PageIndex\)

It is believed that a stock price for a particular company will grow at a rate of $5 per week with a standard deviation of $1. An investor believes the stock won’t grow as quickly. The changes in stock price is recorded for ten weeks and are as follows: $4, $3, $2, $3, $1, $7, $2, $1, $1, $2. Perform a hypothesis test using a 5% level of significance. State the null and alternative hypotheses, find the p-value, state your conclusion, and identify the Type I and Type II errors.

Answer

Example \(\PageIndex\)

The National Institute of Standards and Technology provides exact data on conductivity properties of materials. Following are conductivity measurements for 11 randomly selected pieces of a particular type of glass.

1.11; 1.07; 1.11; 1.07; 1.12; 1.08; .98; .98 1.02; .95; .95

Is there convincing evidence that the average conductivity of this type of glass is greater than one? Use a significance level of 0.05. Assume the population is normal.

Answer

Let’s follow a four-step process to answer this statistical question.

  1. State the Question: We need to determine if, at a 0.05 significance level, the average conductivity of the selected glass is greater than one. Our hypotheses will be
    1. \(H_: \mu \leq 1\)
    2. \(H_: \mu > 1\)

    4. State the Conclusions: Since the \(p\text (= 0.036)\) is less than our alpha value, we will reject the null hypothesis. It is reasonable to state that the data supports the claim that the average conductivity level is greater than one.

    Review

    The hypothesis test itself has an established process. This can be summarized as follows:

    1. Determine \(H_\) and \(H_\). Remember, they are contradictory.
    2. Determine the random variable.
    3. Determine the distribution for the test.
    4. Draw a graph, calculate the test statistic, and use the test statistic to calculate the \(p\text\). (A t-score is an example of test statistics.)
    5. Compare the preconceived α with the p-value, make a decision (reject or do not reject H0), and write a clear conclusion using English sentences.

    Notice that in performing the hypothesis test, you use \(\alpha\) and not \(\beta\). \(\beta\) is needed to help determine the sample size of the data that is used in calculating the \(p\text\). Remember that the quantity \(1 – \beta\) is called the Power of the Test. A high power is desirable. If the power is too low, statisticians typically increase the sample size while keeping α the same.If the power is low, the null hypothesis might not be rejected when it should be.

    References

    1. Data from Amit Schitai. Director of Instructional Technology and Distance Learning. LBCC.
    2. Data from Bloomberg Businessweek. Available online at www.businessweek.com/news/2011- 09-15/nyc-smoking-rate-falls-to-record-low-of-14-bloomberg-says.html.
    3. Data from energy.gov. Available online at http://energy.gov (accessed June 27. 2013).
    4. Data from Gallup®. Available online at www.gallup.com (accessed June 27, 2013).
    5. Data from Growing by Degrees by Allen and Seaman.
    6. Data from La Leche League International. Available online at www.lalecheleague.org/Law/BAFeb01.html.
    7. Data from the American Automobile Association. Available online at www.aaa.com (accessed June 27, 2013).
    8. Data from the American Library Association. Available online at www.ala.org (accessed June 27, 2013).
    9. Data from the Bureau of Labor Statistics. Available online at http://www.bls.gov/oes/current/oes291111.htm.
    10. Data from the Centers for Disease Control and Prevention. Available online at www.cdc.gov (accessed June 27, 2013)
    11. Data from the U.S. Census Bureau, available online at quickfacts.census.gov/qfd/states/00000.html (accessed June 27, 2013).
    12. Data from the United States Census Bureau. Available online at www.census.gov/hhes/socdemo/language/.
    13. Data from Toastmasters International. Available online at http://toastmasters.org/artisan/deta. eID=429&Page=1.
    14. Data from Weather Underground. Available online at www.wunderground.com (accessed June 27, 2013).
    15. Federal Bureau of Investigations. “Uniform Crime Reports and Index of Crime in Daviess in the State of Kentucky enforced by Daviess County from 1985 to 2005.” Available online at http://www.disastercenter.com/kentucky/crime/3868.htm (accessed June 27, 2013).
    16. “Foothill-De Anza Community College District.” De Anza College, Winter 2006. Available online at research.fhda.edu/factbook/DA. t_da_2006w.pdf.
    17. Johansen, C., J. Boice, Jr., J. McLaughlin, J. Olsen. “Cellular Telephones and Cancer—a Nationwide Cohort Study in Denmark.” Institute of Cancer Epidemiology and the Danish Cancer Society, 93(3):203-7. Available online at http://www.ncbi.nlm.nih.gov/pubmed/11158188 (accessed June 27, 2013).
    18. Rape, Abuse & Incest National Network. “How often does sexual assault occur?” RAINN, 2009. Available online at www.rainn.org/get-information. sexual-assault (accessed June 27, 2013).

    Glossary

    Central Limit Theorem Given a random variable (RV) with known mean \(\mu\) and known standard deviation \(\sigma\). We are sampling with size \(n\) and we are interested in two new RVs - the sample mean, \(\bar\), and the sample sum, \(\sum X\). If the size \(n\) of the sample is sufficiently large, then \(\bar - N\left(\mu, \frac>\right)\) and \(\sum X - N \left(n\mu, \sqrt\sigma\right)\). If the size n of the sample is sufficiently large, then the distribution of the sample means and the distribution of the sample sums will approximate a normal distribution regardless of the shape of the population. The mean of the sample means will equal the population mean and the mean of the sample sums will equal \(n\) times the population mean. The standard deviation of the distribution of the sample means, \(\frac>\), is called the standard error of the mean.

    This page titled 8.6: Hypothesis Test of a Single Population Mean with Examples is shared under a CC BY 4.0 license and was authored, remixed, and/or curated by Zoya Kravets via source content that was edited to the style and standards of the LibreTexts platform.

    1. Back to top
      • 8.5E: Rare Events, the Sample, Decision and Conclusion (Exercises)
      • 8.7: Hypothesis Test of Single Population Proportion with Examples