01 / 20
\( H_0 \)
\( H_a \)

Null & Alternative
Hypotheses

Learn to formulate \( H_0 \) and \( H_a \): the foundational step in every hypothesis test across biostatistics, clinical trials, and research.

Biostatistics

What Is Hypothesis Testing?

Hypothesis testing is a formal procedure used in biostatistics to decide whether observed data provide enough evidence to reject a claim about a population. Every test begins with two competing statements about the world.

Defining \( H_0 \) and \( H_a \)

Null Hypothesis \( H_0 \)
The default claim: there is no effect, no difference, or no relationship. It represents the status quo that we assume true until proven otherwise.
Alternative Hypothesis \( H_a \)
The research claim: there is an effect, a difference, or a relationship. This is what the investigator wants to provide evidence for.

Why This Matters in Biology & Medicine

★ Drug Trials
"Does a new drug lower blood pressure more than a placebo?"
★ Genetics
"Is a gene variant associated with disease risk?"
★ Ecology
"Does pollution change species diversity in a lake?"

In every case, the first step is writing clear, testable hypotheses before collecting data.

The Formal Structure

Null Hypothesis
\( H_0: \text{parameter} = \text{value} \)
(uses \( = \), \( \leq \), or \( \geq \))
Alternative Hypothesis
\( H_a: \text{parameter} \neq \text{value} \)
(uses \( \neq \), \( \lt \), or \( \gt \))
vs. Decision from Data
Reject \( H_0 \) or Fail to Reject \( H_0 \)

One-Tailed vs. Two-Tailed Tests

Two-Tailed
\( H_a: \mu \neq \mu_0 \)
Tests for any difference (higher or lower).
Left-Tailed
\( H_a: \mu \lt \mu_0 \)
Tests whether the parameter is less than the claimed value.
Right-Tailed
\( H_a: \mu \gt \mu_0 \)
Tests whether the parameter is greater than the claimed value.

Visualizing Rejection Regions

Two-Tailed Reject Reject Fail to Reject Left-Tailed Reject Right-Tailed Reject
Direction from \( H_a \)
\( \mu_0 \)

\( H_0 \) vs. \( H_a \): Key Distinctions

Feature \( H_0 \) (Null) \( H_a \) (Alternative)
Represents Status quo / no effect Research claim / effect exists
Symbol \( = \), \( \leq \), \( \geq \) \( \neq \), \( \lt \), \( \gt \)
Assumed True until rejected Supported only if \( H_0 \) rejected
Burden of proof None (default) Needs strong evidence
Analogy "Innocent" "Guilty"

How to Formulate Hypotheses

1
Identify the parameter. What population quantity are you testing? (e.g., mean \( \mu \), proportion \( p \))
2
State the null. Write \( H_0 \) as an equality: \( \mu = \mu_0 \) or \( p = p_0 \).
3
Determine direction. Read the research question for keywords like "increased," "different," or "decreased."
4
Write the alternative. Use \( \neq \) for two-tailed, \( \gt \) for right-tailed, or \( \lt \) for left-tailed.
5
Check complementarity. \( H_0 \) and \( H_a \) must cover all possibilities and be mutually exclusive.

Example 1: Blood Pressure Drug

A pharmaceutical company claims a new drug lowers systolic blood pressure. The average systolic BP for untreated patients is 130 mmHg. Researchers want to test if the drug produces a mean BP less than 130.

Null Hypothesis
\( H_0: \mu = 130 \)
Alternative Hypothesis
\( H_a: \mu \lt 130 \)
vs.
Left-Tailed Test (\( \mu \lt 130 \))

Example 2: Vaccine Effectiveness

A vaccine manufacturer claims their vaccine has an effectiveness rate greater than 90%. A health agency tests a sample to verify.

Null Hypothesis
\( H_0: p = 0.90 \)
Alternative Hypothesis
\( H_a: p \gt 0.90 \)
vs.
Right-Tailed Test (\( p \gt 0.90 \))

Example 3: Gene Expression

A biologist wants to know if exposure to a toxin changes the average expression level of a gene (currently measured at 5.2 units). She has no directional prediction.

Null Hypothesis
\( H_0: \mu = 5.2 \)
Alternative Hypothesis
\( H_a: \mu \neq 5.2 \)
vs.
Two-Tailed Test (\( \mu \neq 5.2 \))

Keyword Cheat Sheet

Research Question Keywords Direction \( H_a \) Symbol
different, changed, not equal Two-Tailed \( \neq \)
increased, more, greater, higher Right-Tailed \( \gt \)
decreased, less, lower, fewer Left-Tailed \( \lt \)

Common Mistakes

✕ Putting \( \neq \) in \( H_0 \)
The null must always contain an equality. \( H_0: \mu \neq 10 \) is never correct.
✕ Saying "Accept \( H_0 \)"
We fail to reject \( H_0 \): we never "prove" it true. Absence of evidence is not evidence of absence.
✕ Wrong Tail Direction
Mixing up "greater than" and "less than" reverses the entire conclusion. Read the research question carefully.

Summary at a Glance

Concept Details
\( H_0 \) Default claim: no effect. Uses \( = \), \( \leq \), or \( \geq \).
\( H_a \) Research claim: effect exists. Uses \( \neq \), \( \lt \), or \( \gt \).
Two-Tailed \( H_a: \text{parameter} \neq \text{value} \): any difference.
Left-Tailed \( H_a: \text{parameter} \lt \text{value} \): decrease expected.
Right-Tailed \( H_a: \text{parameter} \gt \text{value} \): increase expected.
Decision Reject \( H_0 \) or Fail to Reject \( H_0 \). Never "accept" \( H_0 \).

Question 1 of 5

A researcher believes a new fertilizer increases the mean yield of tomato plants beyond 12 kg. Which hypotheses are correct?

Question 2 of 5

Which of the following is always true about the null hypothesis \( H_0 \)?

Question 3 of 5

A biologist suspects a toxin decreases the average lifespan of fruit flies from 45 days. What is the correct \( H_a \)?

Question 4 of 5

After conducting a hypothesis test, a student writes: "We accept \( H_0 \)." What is wrong with this statement?

Question 5 of 5

A clinical trial tests whether a new treatment changes the recovery time from 14 days. Which test type is appropriate?