Doctors Revision

Hypothesis Testing in Biostatistics

Hypothesis Testing in Biostatistics

Hypothesis testing is a structured method for using sample data to assess a claim about a population. It quantifies how compatible the observed results are with a stated null hypothesis.

Learning objectives

  • Formulate null and alternative hypotheses.
  • Explain significance level, test statistic and p-value.
  • Distinguish Type I and Type II errors.
  • Select common statistical tests and interpret conclusions correctly.

Core hypotheses

Null hypothesis (H₀): no difference, association or effect exists. Alternative hypothesis (H₁): a difference, association or effect exists. A two-sided alternative allows either direction; a one-sided alternative specifies a direction and must be chosen before analysing data.

Steps in hypothesis testing

  1. State H₀ and H₁.
  2. Choose the significance level, commonly α = 0.05.
  3. Select a test based on variable type, study design and assumptions.
  4. Calculate the test statistic and p-value.
  5. Compare p with α and make a statistical decision.
  6. Interpret the finding in clinical context with effect size and confidence interval.

Type I error

Rejecting a true H₀ (false positive). Its probability is α.

Type II error

Failing to reject a false H₀ (false negative). Its probability is β; power = 1 − β.

Understanding the p-value

The p-value is the probability, assuming H₀ and the model are true, of obtaining results at least as extreme as those observed. If p < α, reject H₀. If p ≥ α, fail to reject H₀. It is not the probability that H₀ is true and does not measure clinical importance.

Research situationTypical testMain assumptions
Two independent meansIndependent t-testIndependent observations, approximate normality
Paired before/after meansPaired t-testApproximately normal paired differences
Three or more meansANOVAIndependence, normality, similar variances
Two categorical variablesChi-square testIndependent observations, adequate expected counts
Non-normal two-group dataMann–Whitney UIndependent ordinal/continuous observations

Worked interpretation

A trial comparing two treatments reports a mean difference of 6 mmHg, 95% CI 2–10, p = 0.004. At α = 0.05, reject H₀. The data support a difference, while the confidence interval describes plausible effect sizes. Clinical relevance still depends on whether 6 mmHg is meaningful and whether bias or confounding is present.

Common pitfalls

  • Changing hypotheses after seeing results.
  • Equating statistical significance with clinical significance.
  • Ignoring assumptions, multiple comparisons or small samples.
  • Saying “accept H₀” instead of “fail to reject H₀”.
Exam tip: write H₀ and H₁ in words and symbols, name the test, state α, compare p with α, then give a contextual conclusion.

Review questions

  1. Define a p-value.
  2. Differentiate Type I and Type II errors.
  3. Which test compares proportions in two independent groups?

Return to the Clinical Medicine Year 2 curriculum

References

  • WHO. Basic Epidemiology.
  • CDC. Principles of Epidemiology in Public Health Practice.

Educational content only; statistical conclusions should be reviewed with appropriate methodological guidance.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top