What is a null hypothesis?

What is a null hypothesis?

All statistical tests have a null hypothesis. For most tests, the null hypothesis is that there is no relationship between your variables of interest or that there is no difference among groups.

For example, in a two-tailed test, the null hypothesis is that the difference between two groups is zero.

Example: Null and alternative hypothesis
You want to know whether there is a difference in longevity between two groups of mice fed on different diets, diet A and diet B. You can statistically test the difference between these two diets using a two-tailed t test. 

  • Null hypothesis (H0): there is no difference in longevity between the two groups.
  • Alternative hypothesis (HA or H1): there is a difference in longevity between the two groups.

Receive feedback on language, structure, and formatting

Professional editors proofread and edit your paper by focusing on:

  • Academic style
  • Vague sentences
  • Grammar
  • Style consistency

See an example

What exactly is a value?

The value, or probability value, tells you how likely it is that your data could have occurred under the null hypothesis. It does this by calculating the likelihood of your test statistic, which is the number calculated by a statistical test using your data.

The value tells you how often you would expect to see a test statistic as extreme or more extreme than the one calculated by your statistical test if the null hypothesis of that test was true. The value gets smaller as the test statistic calculated from your data gets further away from the range of test statistics predicted by the null hypothesis.

The value is a proportion: if your value is 0.05, that means that 5% of the time you would see a test statistic at least as extreme as the one you found if the null hypothesis was true.

Example: Test statistic and value
If the mice live equally long on either diet, then the test statistic from your test will closely match the test statistic from the null hypothesis (that there is no difference between groups), and the resulting value will be close to 1. It likely won’t reach exactly 1, because in real life the groups will probably not be perfectly equal. 

If, however, there is an average difference in longevity between the two groups, then your test statistic will move further away from the values predicted by the null hypothesis, and the value will get smaller. The value will never reach zero, because there’s always a possibility, even if extremely unlikely, that the patterns in your data occurred by chance.