What Is a Null Hypothesis? Meaning, Examples and How It Is Tested

Dr. Rajni Garg

Dr. Rajni Garg

Executive Lead, Research & Content Strategy

7 min read

What Is a Null Hypothesis? Meaning, Examples and How It Is Tested
What Is a Null Hypothesis? Meaning, Examples and How It Is Tested

A null hypothesis is the claim that there is no effect, no difference or no relationship in the population you are studying. A statistical test checks whether your data give enough evidence to reject that claim.

The null hypothesis is written as H₀. The opposite claim is the alternative hypothesis, written as H₁ or Hₐ. This guide explains both, shows how a test works step by step, and lists the mistakes to avoid.

TL;DR

  • The null hypothesis (H₀) says there is no effect or no difference.

  • The alternative hypothesis (H₁ or Hₐ) says there is one.

  • If the p-value is at or below alpha, you reject H₀. If it is above alpha, you fail to reject H₀.

  • A test never proves that the null hypothesis is true.

What is a null hypothesis?

The null hypothesis is the starting assumption of a statistical test. It says that nothing is going on. Any difference you see in your sample is due to chance.

Researchers do not test their own idea directly. They test the null hypothesis and ask whether the data are too unusual to fit it. If the data are too unusual, they reject the null hypothesis.

The null hypothesis is always about the population, not the sample. It usually contains an equals sign, as in “the two group means are equal”.

What is the difference between the null and the alternative hypothesis?

The two hypotheses are opposites. The null says there is no effect. The alternative says there is one. The table shows three pairs.

Research question

Null hypothesis (H₀)

Alternative hypothesis (H₁)

Does peer tutoring change reading scores?

Mean reading scores are the same with and without peer tutoring.

Mean reading scores are different with and without peer tutoring.

Is sleep related to exam scores?

There is no relationship between hours of sleep and exam scores.

There is a relationship between hours of sleep and exam scores.

Is course choice linked to sex?

Course choice and sex are independent.

Course choice and sex are not independent.

This guide is about what the null hypothesis means and how it is tested. For help with wording, see our guide on how to write a hypothesis.

How is a null hypothesis tested?

  1. State the null and the alternative hypothesis. Do this before you collect data.

  2. Choose alpha, the significance level. Alpha is the risk of a false positive that you are willing to accept. Many fields use 0.05.

  3. Run the test that fits your data, such as a t-test. The test gives a p-value.

  4. Compare the p-value with alpha.

  5. Decide. If the p-value is less than or equal to alpha, reject H₀. If it is greater than alpha, fail to reject H₀.

The p-value is the probability of getting results at least as extreme as yours if the null hypothesis were true. A small p-value means your data would be unusual under the null hypothesis.

Here is a short example. You compare the mean scores of two classes with a t-test, and alpha is 0.05. The p-value is 0.03. Because 0.03 is less than 0.05, you reject the null hypothesis that the two means are equal. If the p-value were 0.20, you would fail to reject it.


Five steps for testing a null hypothesis: state the hypotheses, choose alpha, run the test, compare the p-value with alpha, then reject or fail to reject.


What does the null hypothesis say in common tests?

Each test has its own null hypothesis. The table lists five tests that students use often.

Test

What the null hypothesis says

Independent samples t-test

The two group means are equal.

One-way ANOVA

All the group means are equal.

Chi-square test of independence

The two variables are independent.

Pearson correlation

The correlation in the population is zero.

Simple linear regression

The slope of the predictor is zero.

What are one-tailed and two-tailed tests?

A two-tailed test looks for a difference in either direction. Its alternative hypothesis says the two means are not equal.

A one-tailed test looks for a difference in one direction only. Its alternative hypothesis says one mean is greater than the other, or less than the other.

Use a one-tailed test only if you chose the direction before you saw the data. If you are not sure, use a two-tailed test.

What are type I and type II errors?

A test can lead to two kinds of wrong decision.

  • A type I error happens when you reject a null hypothesis that is true. It is a false positive. Its probability is alpha.

  • A type II error happens when you fail to reject a null hypothesis that is false. It is a false negative. Its probability is called beta.

Power is the probability that a test rejects a null hypothesis that is false. It equals 1 minus beta. A larger sample gives more power.


Grid of test decisions: rejecting a true null hypothesis is a type I error, and failing to reject a false null hypothesis is a type II error.


To plan your sample, the AnswerThis power analysis calculator is free and has no limit on runs. It uses a normal approximation. Keep in mind that power is not the probability that your hypothesis is true.


Overview of AnswerThis power analysis calculator


What are the most common mistakes?

  • Saying you accept or prove the null hypothesis. A result that is not significant only means you did not find enough evidence against it. Write “fail to reject”.

  • Reading the p-value as the chance that the null hypothesis is true. P-values do not measure the probability that the studied hypothesis is true.

  • Writing the null hypothesis as your prediction. The null is the claim of no effect. Your prediction is usually the alternative hypothesis.

Draft your own pair of hypotheses

The AnswerThis null and alternative hypothesis generator drafts three pairs of null and alternative hypotheses for your topic. Each pair comes with variables, a population and suggested measurements. You get 3 free runs. Treat the pairs as candidates to refine with your adviser.

FAQs

What is the symbol for the null hypothesis?

It is H₀, read as “H zero” or “H naught”. The alternative hypothesis is H₁ or Hₐ.

What does “fail to reject the null hypothesis” mean?

It means the data did not give enough evidence against the null hypothesis. It does not mean the null hypothesis is true.

Can a null hypothesis be proven true?

No. A test can only show whether the data are unusual under the null hypothesis. It cannot prove that the null hypothesis is true.

When do you reject the null hypothesis?

You reject it when the p-value is less than or equal to the alpha you chose before the test.

Do qualitative studies need a null hypothesis?

No. A null hypothesis is used in studies that test a relationship or a difference with statistics.