Login
📚 Statistics with Technology 2e
Chapters ▾
⇩ Download ▾

7.3 One-Sample Test for the Mean

It is time to go back to look at the test for the mean that was introduced in section 7.1 called the z-test. In the example, you knew what the population standard deviation, σ, was. What if you don’t know σ?

You could just use the sample standard deviation, s, as an approximation of σ. That means the test statistic is now xμs/n. Great, now you can go and find the p-value using the normal curve. Or can you? Is this new test statistic normally distributed? Actually, it is not. How is it distributed? A man named W. S. Gossett figured out what this distribution is and called it the Student’s t-distribution. There are some assumptions that must be made for this formula to be a Student’s t-distribution. These are outlined in the following theorem. Note: the t-distribution is called the Student’s t-distribution because that is the name he published under because he couldn’t publish under his own name due to employer not wanting him to publish under his own name. His employer by the way was Guinness and they didn't want competitors knowing they had a chemist working for them. It is not called the Student’s t-distribution because it is only used by students.

Theorem: If the following assumptions are met

  1. A random sample of size n is taken.
  2. The distribution of the random variable is normal or the sample size is 30 or more.

Then the distribution of t=xμs/n is a Student’s t-distribution with n1 degrees of freedom.

Explanation of degrees of freedom:

Recall the formula for sample standard deviation is s=(xx)2n1. Notice the denominator is n - 1. This is the same as the degrees of freedom. This is no accident. The reason the denominator and the degrees of freedom are both n -1 comes from how the standard deviation is calculated. Remember, first you take each data value and subtract x. If you add up all of these new values, you will get 0. This must happen. Since it must happen, the first n - 1 data values you have “freedom of choice”, but the nth data value, you have no freedom to choose. Hence, you have n - 1 degrees of freedom. Another way to think about it is that if you five people and five chairs, the first four people have a choice of where they are sitting, but the last person does not. They have no freedom of where to sit. Only 5 - 1 =4 people have freedom of choice.

The Student’s t-distribution is a bell-shape that is more spread out than the normal distribution. There are many t-distributions, one for each different degree of freedom.

Here is a graph of the normal distribution and the Student’s t-distribution for df = 1 and df = 2.

Line chart comparing the standard normal density curve with Student’s t density curves for 1 and 2 degrees of freedom, with the t curves lower at the center and heavier in the tails.
Figure 1: Typical Student t-Distributions

As the degrees of freedom increases, the student’s t-distribution looks more like the normal distribution.

To find probabilities for the t-distribution, again technology can do this for you. There are many technologies out there that you can use. On the TI-83/84, the command is in the DISTR menu and is tcdf(. The syntax for this command is

tcdf(lower limit, upper limit, df)

On R: the command to find the area to the left of a t value is pt(t value, df)

Hypothesis Test for One Population Mean (t-Test)

  1. State the random variable and the parameter in words.
    x = random variable
    μ = mean of random variable
  2. State the null and alternative hypotheses and the level of significance
    Ho:μ=μo, where μo is the known mean
    HA:μ<μo
    HA:μ>μo, use the appropriate one for your problem
    HA:μμo
    Also, state your α level here.
  3. State and check the assumptions for a hypothesis test
    1. A random sample of size n is taken.
    2. The population of the random variable is normally distributed, though the t-test is fairly robust to the condition if the sample size is large. This means that if this condition isn’t met, but your sample size is quite large (over 30), then the results of the t-test are valid.
    3. The population standard deviation, σ, is unknown.
  4. Find the sample statistic, test statistic, and p-value
    Test Statistic:
    t=xμsn
    with degrees of freedom df = n - 1
    p-value:
    Using TI-83/84: tcdf(lower limit, upper limit, df) Using R: pt(t value, df)
  5. This is where you write reject Ho or fail to reject Ho. The rule is: if the p-value < α, then reject Ho. If the p-value α, then fail to reject Ho.
  6. This is where you interpret in real world terms the conclusion to the test. The conclusion for a hypothesis test is that you either have enough evidence to show HA is true, or you do not have enough evidence to show HA is true.

How to check the assumptions of t-test:

In order for the t-test to be valid, the assumptions of the test must be true. Whenever you run a t-test, you must make sure the assumptions are true. You need to check them. Here is how you do this:

  1. For the condition that the sample is a random sample, describe how you took the sample. Make sure your sampling technique is random.
  2. For the condition that population of the random variable is normal, remember the process of assessing normality from chapter 6.

Homework

Data Sources:

Australian Human Rights Commission, (1996). Indigenous deaths in custody 1989 - 1996. Retrieved from website: www.humanrights.gov.au/public...deaths-custody

CDC features - new data on autism spectrum disorders. (2013, November 26). Retrieved from www.cdc.gov/features/countingautism/

Center for Disease Control and Prevention, Prevalence of Autism Spectrum Disorders - Autism and Developmental Disabilities Monitoring Network. (2008). Autism and developmental disabilities monitoring network-2012. Retrieved from website: www.cdc.gov/ncbddd/autism/doc...nityReport.pdf

CO2 emissions. (2013, November 19). Retrieved from http://data.worldbank.org/indicator/EN.ATM.CO2E.PC

Federal Trade Commission, (2008). Consumer fraud and identity theft complaint data: January-December 2007. Retrieved from website: www.ftc.gov/opa/2008/02/fraud.pdf

Gallup news service. (2013, November 7-10). Retrieved from www.gallup.com/file/poll/1658...acy_131115.pdf

Healthy breakfast story. (2013, November 16). Retrieved from lib.stat.cmu.edu/DASL/Stories...Breakfast.html

IQ of famous people. (2013, November 13). Retrieved from http://www.kidsiqtestcenter.com/IQ-famous-people.html

Maintaining balance while concentrating. (2013, September 25). Retrieved from http://www.statsci.org/data/general/balaconc.html

Morgan Gallup poll on unemployment. (2013, September 26). Retrieved from http://www.statsci.org/data/oz/gallup.html

Multi-disciplinary niser activity - mercury in bass. (2013, November 16). Retrieved from http://gozips.uakron.edu/~nmimoto/pa.../MercuryInBass - description.txt

Pregnant woman receiving prenatal care. (2013, October 14). Retrieved from http://data.worldbank.org/indicator/SH.STA.ANVC.ZS

SOCR data 2008 world countries rankings. (2013, November 16). Retrieved from http://wiki.stat.ucla.edu/socr/index...ntriesRankings

Student t-distribution. (2013, November 25). Retrieved from lib.stat.cmu.edu/DASL/Stories/student.html

WHO life expectancy. (2013, September 19). Retrieved from www.who.int/gho/mortality_bur...n_trends/en/in dex.html