Statistics How To

One Sample Z Test: How to Run One

Hypothesis Testing > One Sample Z Test

Before reading this, you may find it helpful to review:
What is a Normal distribution?
What is a Z-score?

How to Run a One Sample Z Test

A one sample z test is one of the most basic types of hypothesis test. In order to run a one sample z test, you work through several steps:

Step 1: State the Null Hypothesis. This is one of the common stumbling blocks–in order to make sense of your sample and have the one sample z test give you the right information you must make sure you’ve written the null hypothesis and alternate hypothesis correctly. For example, you might be asked to test the hypothesis that the mean weight gain of pregnant women was more than 30 pounds. Your null hypothesis would be: H0: μ = 30 and your alternate hypothesis would be H,sub>1: μ > 30.

Step 2: Use the z-formula to find a z-score.
One Sample Z Test
All you do is put in the values you are given into the formula. Your question should give you the sample mean (x̄), the standard deviation (σ), and the number of items in the sample (n). Your hypothesized mean (in other words, the mean you are testing the hypothesis for, or your null hypothesis) is μ0.

1,500 women followed the Atkin’s diet for a month. A random sample of 29 women gained an average of 6.7 pounds. Test the hypothesis that the average weight gain per woman for the month was over 5 pounds. The standard deviation for all women in the group was 7.1.
Z = 6.7 – 5 / (7.1/√29) = 1.289.

Step 3: Look up your z score in the z-table. The sample score above gives you an area of 0.8997. This area is your probability up to that point (i.e. the area to the left of your z-score). For this one sample z test, you want the area in the right tail, so subtract from 1:
1 – 0.8997 = 0.1003.

If you have difficulty figuring out if you have a left- or-right tailed test, see:
Left Tailed Test or Right Tailed Test? How to Decide in Easy Steps.

Next: several specific examples of one sample z tests (with answers):
Hypothesis Testing Examples


Need help with a homework or test question? Chegg offers 30 minutes of free tutoring, so you can try them out before committing to a subscription. Click here for more details.

If you prefer an online interactive environment to learn R and statistics, this free R Tutorial by Datacamp is a great way to get started. If you're are somewhat comfortable with R and are interested in going deeper into Statistics, try this Statistics with R track.

Comments? Need to post a correction? Please post on our Facebook page.
One Sample Z Test: How to Run One was last modified: October 12th, 2017 by Stephanie