Skip to content

Hypothesis Testing Explained

For people

Null hypotheses, p-values and significance: what a hypothesis test tells you, and the misunderstandings to avoid.

Editorial team 2 min read

Share X LinkedIn Reddit Bluesky Email

A hypothesis test asks whether an observed pattern is likely to be real or could easily have happened by chance.

The Setup

  • Null hypothesis (H0): no effect or no difference — the new page converts the same as the old.
  • Alternative hypothesis (H1): there is an effect.
  • Collect data and compute a test statistic.
  • The p-value is the probability of seeing a result at least this extreme if the null hypothesis were true.

A small p-value (commonly below 0.05) suggests the data is unlikely under the null, so you reject it.

What a p-Value Is Not

  • Not the probability that the null hypothesis is true.
  • Not a measure of how large or important an effect is.
  • Not proof — just evidence under assumptions.

Errors

  • Type I error (false positive): rejecting a true null. Controlled by the significance level.
  • Type II error (false negative): missing a real effect. Reduced by larger samples.

Common Tests

  • t-test: compare means of two groups.
  • Chi-squared test: compare proportions or check association between categories.
  • Mann–Whitney U: compare two groups without assuming normality.
  • ANOVA: compare means across several groups.

Good Practice

  • Decide the test and sample size before collecting data.
  • Report effect sizes and confidence intervals, not just p-values.
  • Beware multiple comparisons: test enough things and some will look significant by chance.
  • Practical significance matters as much as statistical significance.

More in Data science & analytics

All Data science & analytics guides →
Data science & analytics Guide · 2 min

Descriptive Statistics Essentials

Mean, median, mode, spread and shape: the summary numbers every analysis starts with, and when each one misleads.

Data science & analytics 2 min read 14 Mar 2026 For people

Data science & analytics Guide · 2 min

Probability Basics for Data Work

The probability ideas analysts use every day: events, conditional probability, independence and Bayes' theorem.

Data science & analytics 2 min read 13 Mar 2026 For people

Data science & analytics Guide · 2 min

Common Probability Distributions

Normal, binomial, Poisson, exponential and more: recognising the shapes data takes and what they imply.

Data science & analytics 2 min read 12 Mar 2026 For people

Data science & analytics Guide · 2 min

Confidence Intervals

How confidence intervals express uncertainty around an estimate, how to read them correctly and why they're more useful than p-values alone.

Data science & analytics 2 min read 10 Mar 2026 For people

Discussion 0

Use @handle to bring somebody in, and #tag to file it.

Nothing here yet. Ask a question, or say how you used it.

Sign in to join the discussion. Sign in