Skip to main content
BetaLucidstat is in beta. Results are checked against R, but always verify them against your source data.Send feedback via EZY Research

Hypothesis testing and p-values

Null and alternative hypotheses, significance level, p-value and the two kinds of error, explained without formulas.

7 min read

Inferential statistics use a sample to draw conclusions about a population. The catch: even when two populations are identical, two samples almost never have exactly the same mean. Hypothesis testing asks whether the difference you see is too large to be explained by random sampling alone.

Two hypotheses

  • The null hypothesis (H₀) says "no effect": the two population means are equal, or the two variables are unrelated.
  • The alternative hypothesis (H₁) is what the researcher expects to find: the means differ.

A test starts by assuming H₀ is true and then asks how surprising your data would be under that assumption.

What a p-value is

The p-value is the probability of getting a result at least as extreme as yours if H₀ were true.

  • A small p (say .003) means that, if there were no real effect, data like yours would be rare. That is a reason to reject H₀.
  • A large p (say .62) means data like yours are common even without a real effect, so you cannot reject H₀.

The significance level (α)

Before collecting data, you set a significance level α. Most research uses .05.

  • If p ≤ α, reject H₀: the difference is statistically significant.
  • If p > α, do not reject H₀: the difference is not statistically significant.

Two kinds of error

Truth: H₀ trueTruth: H₀ false
Decision: reject H₀Type I error (probability α)Correct (power = 1 − β)
Decision: do not reject H₀CorrectType II error (probability β)
  • A Type I error is concluding there is an effect when there is none. α controls it.
  • A Type II error is missing an effect that really exists. It is common when samples are too small.

Statistical significance is not practical importance

With a very large sample, a tiny, practically meaningless difference can be statistically significant. With a small sample, even a large effect can be missed. Always report an effect size and a confidence interval alongside p. See Effect size.

Two-tailed tests

Every test in Lucidstat is two-tailed: it tests for a difference in either direction. This is the default in SPSS and R and what most journals expect.

Reporting p-values

  • Report exact p-values to three decimals, such as p = .032, not just p < .05.
  • When p is below .001, write p < .001.
  • Do not write a leading zero, because p cannot exceed 1 (APA, 2020).

References

  • American Psychological Association. (2020). Publication manual of the American Psychological Association (7th ed.).
  • Wasserstein, R. L., & Lazar, N. A. (2016). The ASA statement on p-values: Context, process, and purpose. The American Statistician, 70(2), 129–133.

Related lessons