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 27 questions in our bank on this topic. Choose an answer to see why every option is right or wrong.

Question 1Medium

A trial is designed with 80% power. What does this mean?

Question 2Medium

Researchers want to know only whether a new drug lowers cholesterol more than the standard, not whether it might be worse. Which test is this, and what is its drawback?

Question 3Medium

A 2 × 2 table has an expected cell count below 5. Which test should replace the chi-square test?

Question 4Medium

Which statistical test is used to compare proportions in a 2 × 2 table of categorical data?

Question 5Medium

A small trial reports that a herbal remedy significantly reduces nausea in pregnancy (p = 0.04). Several larger, well-conducted trials later find no effect at all. If the remedy truly has no effect, which error did the first trial make?

Practise all 27 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