Hypothesis testing

P-Values, Alpha, Type I Error, Type II Error, and Power

Connect evidence, decision thresholds, long-run error rates, effect assumptions, and sample size without turning a p-value into the probability a hypothesis is true.

Direct answer

A p-value is a tail probability computed under a specified null model; alpha is a preselected Type I error threshold, beta is Type II error under a specified alternative, and power is 1−beta.

Visual explanation

Decision errors under null and alternative models

Type IType IIpower
Alpha, beta, and power are repeated-decision areas under specified distributions.

What this calculation tells you

Hypothesis testing compares observed data with a model-based reference distribution. Error rates describe repeated decisions under specified states; they are not posterior probabilities for the hypotheses.

State the null, alternative, test statistic, tail direction, alpha, planned effect, design, and analysis before collecting or inspecting confirmatory data.

Where it is used

Experiments

Plan decision errors around a declared effect and design.

Quality

Relate detection sensitivity to false-alarm choices.

Research review

Audit whether hypotheses and analyses were prespecified.

Education

Visualize repeated-decision probabilities under two models.

Common situations

  • Interpreting a reported p-value.
  • Choosing alpha before analysis.
  • Planning power for a meaningful effect.
  • Explaining the trade-off between false positives and false negatives.

Start with the statistical question

State the null, alternative, test statistic, tail direction, alpha, planned effect, design, and analysis before collecting or inspecting confirmatory data.

Overlapping null and alternative curves show the rejection region, Type I area, Type II area, and power. Moving the threshold reveals the trade-off rather than implying both errors can shrink freely.

Worked example

At alpha 0.05, a result with p=0.03 crosses the rule under the stated test. It does not mean a 3% probability that the null is true or a 97% probability that the result will replicate.

Assumptions that carry the result

Reported p-values and power inherit all test assumptions, including sampling, independence, model form, tail choice, stopping rules, and analysis selection.

Interpret the result without overreaching

Threshold decisions do not measure effect size, importance, bias, reproducibility, or truth. Selective testing and repeated looks can invalidate nominal error rates.

  • Interpreting p as P(null|data).
  • Choosing one- or two-sided testing after seeing direction.
  • Calling 1−p the probability of replication.

Choose the right tool

Practical questions

Frequently asked questions

Is p the probability the null is true?

No. It is calculated assuming the null model and measures tail compatibility of the data or something more extreme.

Is power fixed for a study?

Power varies with the specified true effect, variability, design, sample size, alpha, and method.

Why not always use a tiny alpha?

Lowering alpha can reduce false positives but increase false negatives unless design or sample size changes; consequences must guide the choice.

Further reading

Authoritative sources

Use these primary and professional resources to check definitions, conventions, or requirements that may extend beyond this guide.