One Variable Hypothesis Testing
Steps to Perform a Hypothesis Test
Learning Objectives
In this section, we will:
- Introduce the six steps for hypothesis testing on either means or proportions.
- Outline the different formulae required for left, right or two-tailed tests.
With the exception of the null and alternate hypotheses and the test statistic, the steps to test if there is a difference in two population proportions is identical to the one sample hypothesis testing steps outlined in the last chapter:
- Check that the required assumptions are satisfied.
- State the Null and Alternate Hypotheses.
- Calculate the Value of the Test Statistic:
- Compute the
-value. - Make a Decision (to accept or reject H0).
- Draw a Conclusion (there is or is not enough evidence to conclude that an increase/decrease/change has occurred).
- Sample size: Is the sample size large enough to ensure that the sampling distribution is normal?
- Randomness: Are the data selected at random such that each data point is independent of the one-another. Is the sample random, representative and non-bias?
- The Null Hypothesis (H0): There will be no observed effect for our experiment. The sample result is indeed likely from the population in question and nothing has changed. We will give examples in later sections of how exactly to define the null hypothesis.
- The Alternate Hypothesis (HA): There will be an observed effect for our experiment. The sample result not likely from the population in question and something has changed. We will give examples in later sections of how exactly to define the alternative hypothesis.
For Proportions
Let us call the original/true proportion
- Left-tailed test: We are looking to prove that the new proportion is lower than originally stated. Ie:
. - Right-tailed test: We are looking to prove that the new proportion is higher than originally stated. Ie:
. - Two-tailed test: We are looking to prove that the new proportion is no longer equal to the originally stated proportion. Ie:
.
For Means
Let us call the original/true proportion
- Left-tailed test: We are looking to prove that the new mean is lower than originally stated. Ie:
. - Right-tailed test: We are looking to prove that the new mean is higher than originally stated. Ie:
. - Two-tailed test: We are looking to prove that the new mean is no longer equal to the originally stated mean. Ie:
.
The test statistic is a measure of how many standard errors the test statistic (x̄ or p̄) is away from the population parameter (μ or p). The formulae are:
- For Proportions:
- For Means:
The
For Proportions
We will use Excel’s NORM.S.DIST() function to calculate the p-values:

- Left-tailed test:
- Two-tailed test and negative z
score: - Two-tailed test and positive z
score: - Right-tailed test:
Note: For two-tailed tests, we double the area outside of the z
For Means
We can use Excel’s T.DIST(), T.DIST.2T() and T.DIST.RT() functions to calculate the p-values:

- Left-tailed test:
- Two-tailed test and negative t
score: - Two-tailed test and positive t
score: - Right-tailed test:
Note: When use T.DIST.2T, we must only input a positive t
We either accept or reject the null hypothesis depending on whether the

- Reject H0 if the test statistic lands in the rejection region or if the
-value is less than (<) the level of significance (α). - Do not reject H0 if the test statistic does not land in the rejection region or if the
-value is more than (>) the level of significance (α).
We restate the question asked in the hypothesis test question. The following is true:
- If we reject H0: Then there is sufficient evidence to conclude what is stated in the original question (that HA is true).
- If we do not reject H0: There is not sufficient evidence to conclude what was stated in the original question (ie: there is not enough to conclude that HA is true).