Hypothesis testing with z and t statistics

What is the difference really between z and t tests? The main thing is that t tests are used when you don’t know the population variance! You use the Student’s t distribution instead of the standard normal distribution. This wikiHow compares the t test to the z test.

Things You Should Know

  • This article covers one-sample z and t tests, comparing their key differences.
  • Calculate the z statistic using the formula
  • Calculate the t statistic using
  • The main difference is that the t test is used when population variance is unknown.
Section 1 of 3:

Z Test

  1. 1
    Use the z statistic to carry out hypothesis testing. The z statistic uses a sampling distribution. Then, it turns it into a standard normal distribution. To calculate the z statistic, use this formula:
    • where
      • is the sample mean
      • is the population mean
      • is the sample standard error
      • is the population standard deviation
      • is the sample size
  2. 2
    Make a decision. If the calculated z statistic (also called z score) is greater than the critical z value, you reject the null hypothesis and have significant evidence supporting the alternative hypothesis.
  3. Advertisement
Section 2 of 3:

T Test

  1. 1
    Use the t statistic to carry out hypothesis testing. The t statistic uses a sampling distribution. Then, it turns it into the t distribution. To calculate the t statistic, use this formula:
    • where
      • is the sample mean
      • is the population mean
      • is the estimated standard error
      • is the sample standard deviation
      • is the sample size
  2. 2
    Make a decision. If the calculated z statistic is greater than the critical z value, you reject the null hypothesis and have significant evidence supporting the alternative hypothesis.
  3. Advertisement
Section 3 of 3:

Key Differences

  1. Take a look at these key differences between the z test and t test.
    • We don’t know the population variance in t testing, while we do know it in z testing.
    • The z test uses a normal distribution while the t test uses the Student's t distribution.
    • Degrees of freedom are needed in t testing, not in z testing.
    • The z statistic is calculated with the standard error. The t statistic uses the estimated standard error.

About This Article

wikiHow is a “wiki,” similar to Wikipedia, which means that many of our articles are co-written by multiple authors. To create this article, volunteer authors worked to edit and improve it over time.
How helpful is this?
Co-authors: 2
Updated: November 14, 2022
Views: 529
Categories: Mathematics
Advertisement