Null and alternative hypotheses
Every hypothesis test starts with two competing statements about the population. Writing them precisely makes clear what the test is actually testing, and many research-methods markers check that you did it.
The null hypothesis (H₀)
The null hypothesis is the “nothing going on” position: no difference between groups, no relationship between variables, no effect of the treatment. It’s the claim the test looks for evidence against. You start out assuming it’s true and ask whether your data make it implausible.
The alternative hypothesis (H₁ or Hₐ)
The alternative is what you conclude if the data are inconsistent with the null: there is a difference, a relationship, an effect. It’s usually the thing your research question is really about.
Examples for common tests
| Research question | H₀ | H₁ |
|---|---|---|
| Do online and in-person students differ in exam score? (independent t-test) | μ_online = μ_in-person | μ_online ≠ μ_in-person |
| Does anxiety change from before to after therapy? (paired t-test) | μ_difference = 0 | μ_difference ≠ 0 |
| Does mean yield differ across three fertilisers? (ANOVA) | μ₁ = μ₂ = μ₃ | At least one mean differs |
| Is study time related to grade? (correlation) | ρ = 0 | ρ ≠ 0 |
| Is smoking status related to region? (chi-square) | The two variables are independent | The two variables are related |
| Does hours worked predict wellbeing? (regression) | β = 0 | β ≠ 0 |
Note the Greek letters: μ (mu) is a population mean, ρ (rho) a population correlation and β (beta) a population slope. Hypotheses are about the population. Your sample mean is already known exactly, so there’s nothing to test about it.
Note also the ANOVA alternative. It’s “at least one mean differs”, not “all the means differ”. Finding out which ones differ is the job of post-hoc tests.
Writing them in words
A simple template works for most designs:
- H₀: There is no [difference in / relationship between] [outcome] [between groups / and predictor] in [population].
- H₁: There is a [difference in / relationship between] [outcome] [between groups / and predictor] in [population].
For example: “H₀: There is no difference in mean exam score between first-year students taught online and those taught in person.”
One-sided vs two-sided alternatives
A two-sided (two-tailed) alternative says the effect could go either way: μ₁ ≠ μ₂. A one-sided alternative names a direction: μ₁ > μ₂.
A one-sided test has more power in its chosen direction, but it’s only legitimate when you specified the direction before seeing the data, and a result in the opposite direction would genuinely be uninteresting to you. Switching to one-sided afterwards to get p under .05 is a well-known red flag. When in doubt, use two-sided. It’s the default in nearly all software and expected by most reviewers.
Reject or fail to reject, never “accept”
A hypothesis test has only two outcomes:
- Reject H₀: the data would be surprising if H₀ were true (p below α), so you conclude there’s evidence for H₁.
- Fail to reject H₀: the data aren’t surprising enough. That’s not evidence that H₀ is true. Your study may simply have been too small to detect a real effect.
That’s why the right phrasing for a non-significant result is “no evidence of a difference”, not “no difference” or “the groups are the same”. If you need to show that an effect is negligible, you need a different approach, such as equivalence testing or a confidence interval that excludes every meaningful effect size.
Research hypotheses vs statistical hypotheses
Your dissertation might predict that “mindfulness training reduces exam anxiety”. That’s a research hypothesis. The statistical hypotheses translate it into a testable statement about a parameter: H₀: μ_training = μ_control. Spell out this translation in your methods section, so the reader can see exactly which test answers which question.
More in Hypothesis testing
Try it with the free tools
Run this on your own data
Upload a dataset and ask your question in plain English. Analytika checks the assumptions, picks the test, runs it, and writes the results up in APA format.