Topic contents

Lesson 2

Null and alternative hypotheses and test direction

Starting from a hypothesized population mean, learn to express research questions as statistical hypotheses

Previously, we hypothesized a population mean of 175 cm

Continuing the previous lesson · Male students' height survey

The sample mean is 173 cm, the population standard deviation is 6 cm, and the sample size is 100. Standardizing gives:

Z=xˉ−μ0σ/n=173−1756/100≈−3.33Z = \frac{\bar{x} - {\mu }_{0}}{\sigma / \sqrt{n}} = \frac{173 - 175}{6 / \sqrt{100}} ≈ - 3.33
Question: When the sample data disagree with the claim "the population mean is 175 cm," exactly which claim are we testing?

Null hypothesis H₀

The statement initially used as the reference for the test and provisionally assumed true.

H0:μ=175{H}_{0} : \mu = 175

This hypothesized value is the reference used to calculate the Z statistic.

Alternative hypothesis H₁

A research claim proposed in advance based on theory, previous studies, practical experience, or preliminary observations, for which the researcher seeks supporting sample evidence.

H1:μ≠175{H}_{1} : \mu \ne 175

If the question is only "Does it differ?" without specifying higher or lower in advance, use a two-sided test. The alternative hypothesis is not necessarily correct.

For example: Based on past experience, a teacher thinks a new teaching method may increase the mean score and proposes H₁: μ > 80 before analyzing the sample data. This is a research claim to test, rather than an established conclusion.

Note: The test direction should follow the research question specified in advance. Do not wait to see the sample results and then choose the direction more likely to be statistically significant. Hypothesis testing also cannot directly prove a hypothesis "true" or "false."

Asking only "Does it differ?": a two-sided test

Direction 1 · Does it differ?

Research question: Does the population mean height of male students at this university differ from 175 cm? Both higher and lower values matter. The alternative hypothesis H₁: μ ≠ 175 expresses the researcher's question: "Does the population mean differ from 175?"

H0:μ=175H1:μ≠175{H}_{0} : \mu = 175 \qquad {H}_{1} : \mu \ne 175
Significance level α
−4−2024−1.9601.960α/2 = 2.5%α/2 = 2.5%
Standard normal reference distribution at the null hypothesis boundary
Two-sided critical values: ±1.960; each tail α/2 = 2.5%, total α = 5%

Change the significance level and observe how the lower and upper critical values move. The next lesson explains rejection regions in full.

Why are there two tails?

Because the alternative hypothesis uses ≠, meaning that both directions of departure are relevant to the research question.

If the sample mean is 173 cm, the lower value matters; if it is 177 cm, the higher value matters just as much.

In a two-sided test, the significance level α is divided equally between the two tails, and the two critical values are symmetric about 0.

This plot shows the reference distribution of the test statistic when the null hypothesis holds.

Why does testing for an increase put the alternative hypothesis on the right?

Direction 2 · Right-tailed test: Is it greater?

For example, a school wants to determine whether students' population mean score after a training program is above 80 points. The null hypothesis should include every case "not above 80 points." The alternative hypothesis H₁: μ > 80 expresses the researcher's question: "Is the population mean above 80 points?"

H0:μ≤80H1:μ>80{H}_{0} : \mu \le 80 \qquad {H}_{1} : \mu > 80
Significance level α
−4−20241.645α = 5%
Standard normal reference distribution at the null hypothesis boundary
Upper critical value: +1.645; one tail α = 5%

Shading on the right indicates the direction of larger statistic values. The reference distribution helps illustrate direction here; precise definitions of rejection regions and critical values follow in the next lesson.

How do we interpret these hypotheses?

H₀:μ ≤ 80 includes "no increase" and "below 80."

H₁:μ > 80: only a population mean truly above 80 supports the direction of interest.

A sample mean score of 78 points does not support "the population mean is above 80 points."

To calculate the critical probability for a right-tailed z-test, the reference distribution is usually constructed at the null hypothesis boundary μ=80. This does not mean the null hypothesis includes only equality to 80.

Why does testing for a decrease put the alternative hypothesis on the left?

Direction 3 · Left-tailed test: Is it smaller?

For example, an environmental agency wants to determine whether the population mean pollution indicator after control measures is below 50. The null hypothesis includes every case "not below 50." The alternative hypothesis H₁: μ < 50 expresses the researcher's question: "Is the population mean below 50?"

H0:μ≥50H1:μ<50{H}_{0} : \mu \ge 50 \qquad {H}_{1} : \mu < 50
Significance level α
−4−2024−1.645α = 5%
Standard normal reference distribution at the null hypothesis boundary
Lower critical value: −1.645; one tail α = 5%

Shading on the left indicates the direction of smaller statistic values. Here the focus is on test direction; formal decision rules come later.

How do we interpret these hypotheses?

H₀:μ ≥ 50 includes "no decrease" and "above 50."

H₁:μ < 50: the researcher seeks evidence of a decrease.

A sample mean pollution indicator of 53 does not support "the population mean is below 50."

To calculate the critical probability for a left-tailed z-test, the reference distribution is usually constructed at the null hypothesis boundary μ=50.

Which direction would you choose for the research question?

Class exercise · Define the research question before writing the hypotheses

Read the research question, choose two-sided, left-tailed, or right-tailed, then reveal the correct statistical hypotheses.

Select research question

Does the mean height of all male students at the university differ from 175 cm?

Select a test direction first.

Corresponding hypotheses

Click "Reveal hypotheses and reasoning."

Summary: "Different" → two-sided; "increase / greater than" → right-tailed; "decrease / less than" → left-tailed.
The research question determines the test direction in advance; do not choose it arbitrarily after seeing the sample results.