FCPS Part 1 Biostatistics and epidemiology

Hypothesis testing

Hypothesis testing: p values, errors, statistical tests, correlation and regression

Hypothesis tests ask whether an observed difference could reasonably be due to chance. The choice of test depends on data type, number of groups, pairing and distribution, and correlation and regression describe relationships between variables. Survival analysis handles time-to-event data.

Hypothesis testing

  • Null hypothesis (H₀): no difference/association. Alternative (H₁): there is one.
  • p value: probability of obtaining the observed result (or more extreme) if H₀ were true. p < 0.05: reject H₀ ("statistically significant"). It is not the probability that H₀ is true, and says nothing about clinical importance.
  • Statistical significance ≠ clinical significance (large studies detect trivial differences).
  • One-tailed versus two-tailed tests (two-tailed is standard).
  • Multiple comparisons increase type I error, so use Bonferroni correction (α/number of tests).

Errors

H₀ trueH₀ false
Reject H₀Type I error (α) — false positiveCorrect (power, 1 − β)
Do not reject H₀CorrectType II error (β) — false negative
  • Type I: concluding a drug works when it does not. Type II: missing a real effect (small samples).

Choosing a statistical test

Data / comparisonParametric (normal, continuous)Non-parametric (skewed, ordinal, small samples)
Two independent groupsUnpaired (independent) t-testMann–Whitney U (Wilcoxon rank-sum)
Two paired/related measurements (before–after, matched)Paired t-testWilcoxon signed-rank
Three or more independent groupsOne-way ANOVA (F test; post hoc tests)Kruskal–Wallis
Three or more related measurementsRepeated measures ANOVAFriedman test
Correlation between two variablesPearson's rSpearman's rank (ρ), Kendall's tau
One sample mean versus known valueOne-sample t-test (z-test if large sample/known SD)Sign test
Categorical dataTest
Two or more independent proportions (contingency table)Chi-squared (χ²) test
Small expected frequencies (< 5 in > 20% of cells)Fisher's exact test
Paired categorical data (before–after on same subjects)McNemar's test
Trend across ordered groupsChi-squared for trend
Stratified 2 × 2 tables (confounding)Mantel–Haenszel
  • Parametric tests compare means; non-parametric tests use ranks (compare medians/distributions); parametric tests are more powerful when assumptions hold.

Correlation

  • Pearson's correlation coefficient (r): strength and direction of linear relationship between two continuous normally distributed variables; −1 to +1; 0 = no linear relationship.
  • r = +1 perfect positive; −1 perfect negative; |r| > 0.7 strong.
  • r² (coefficient of determination): proportion of variance in one variable explained by the other (r = 0.8 gives 64%).
  • Correlation does not imply causation; sensitive to outliers; may miss non-linear relationships.
  • Spearman's ρ: ranks; non-normal or ordinal data, monotonic relationships.

Regression

  • Simple linear regression: predicts outcome (dependent, y) from one predictor (independent, x): y = a + bx (a = intercept, b = slope/regression coefficient — change in y per unit change in x).
  • Multiple (multivariable) linear regression: several predictors; adjusts for confounders.
  • Logistic regression: binary outcome (disease yes/no) gives adjusted odds ratios.
  • Cox proportional hazards regression: time-to-event outcome gives hazard ratios.
  • Poisson regression: count outcomes/rates.

Survival analysis

  • Kaplan–Meier method: survival curve accounting for censored data (lost to follow-up, alive at study end); step function.
  • Log-rank test: compares survival curves between groups.
  • Median survival: time at which 50% have died.
  • Hazard ratio from Cox regression.

Other

  • Bland–Altman plot: agreement between two measurement methods (not correlation).
  • Kappa: agreement for categorical ratings (see validity and reliability).
  • Analysis of covariance (ANCOVA).

How FCPS asks it

Recalls test: meaning of p value; type I and II errors; matching scenario to test (paired t-test for before–after BP; unpaired t-test for two group means; ANOVA for three groups; chi-squared for proportions; Fisher's for small numbers; McNemar for paired proportions; Mann–Whitney for skewed data; Wilcoxon signed-rank for paired skewed data; Kruskal–Wallis); Pearson versus Spearman; r²; regression types by outcome; Kaplan–Meier and log-rank; censoring.

Exam trap Comparing means of two independent groups: unpaired t-test; same subjects before and after: paired t-test.

Exam trap Chi-squared compares proportions; use Fisher's exact when expected counts are small.

Exam trap Logistic regression is used for a binary outcome and gives adjusted odds ratios.

Test yourself on this topic

5 of the 13 questions in our bank on this topic. Choose an answer to see why every option is right or wrong.

Question 1Medium

For two independent normally distributed samples with similar variances, which listed test conventionally tests a difference in population means?

Question 2Medium

In a trial, the mean fall in systolic blood pressure is 4 mmHg greater with drug B than with drug A, and the report gives p = 0.03. How should this result be interpreted?

Question 3Medium

In hypothesis testing, an alpha level of 0.001 represents the maximum accepted probability of:

Question 4Medium

What value of the correlation coefficient indicates a perfect positive correlation?

Question 5Medium

A student wants to assess the relationship between rise in body temperature and duration of surgery, both measured as continuous values. Which test is appropriate?

Practise all 13 questions on this topic

Where this sits in the CPSP syllabus

  • Paper 1: Biostatistics, Hypothesis testing: p values, errors, statistical tests, correlation and regression

Read next