01Hypothesis testing
A hypothesis test asks whether an observed difference or association is larger than chance alone would plausibly produce, by comparing the data with a null hypothesis. Report the p-value alongside the effect estimate and its confidence interval. Example: a paired t-test comparing participants' weights before and after a diet programme.
02Analysis of variance (ANOVA)
One-way ANOVA tests whether the means of three or more independent groups differ, using a single overall F-test rather than many pairwise t-tests, which would inflate the Type I error rate. Where the F-test is significant, post-hoc comparisons with a multiplicity correction, such as Tukey's, show which groups differ. Example: comparing mean haemoglobin levels in patients taking three types of iron supplement.
03Chi-square test
The chi-square test of independence assesses whether two categorical variables are associated by comparing observed cell frequencies with those expected if the variables were independent. When expected counts are small (commonly, below 5 in more than 20% of cells), Fisher's exact test is used instead. Example: testing the association between sex and smoking status.
04Correlation
Pearson's correlation coefficient measures the strength and direction of the linear relationship between two continuous variables; Spearman's rank correlation is used for monotonic relationships or ordinal and skewed data. Correlation does not establish causation. Example: in an illustrative sample of 300 adults, r = -0.55 between daily activity and BMI shows a moderate negative association: higher activity goes with lower BMI.
05Linear regression
Linear regression models a continuous outcome as a function of one or more predictors, estimating how much the outcome changes for a one-unit change in each predictor while holding the others constant. Diagnostics check linearity, independence, constant variance and approximately normal residuals. Example: a health economist modelling hospital costs by patient age, length of stay and diagnosis.
06Logistic regression
Logistic regression models a binary outcome, such as disease or no disease, as a function of one or more predictors. Coefficients are exponentiated to give odds ratios adjusted for the other variables in the model. Odds ratios approximate risk ratios only when the outcome is rare. Example: estimating the adjusted odds of hypertension by BMI, age and physical activity.
07Poisson and negative binomial regression
Count outcomes, such as the number of hospital admissions or infections, are modelled with Poisson regression, which gives incidence rate ratios. An offset for person-time at risk turns counts into rates. When the variance exceeds the mean (overdispersion), negative binomial regression or robust standard errors are used; zero-inflated models suit data with excess zeros.
08Survival analysis
Survival analysis handles time-to-event data, such as time to death or relapse, where some participants have not had the event by the end of follow-up (censoring). Kaplan-Meier curves estimate survival probabilities and median survival times; the log-rank test compares survival between groups; Cox proportional hazards regression estimates hazard ratios adjusted for covariates. Example: estimating median survival in cancer patients on a new drug from Kaplan-Meier curves.
09The proportional hazards assumption
The Cox model assumes that the hazard ratio between groups stays constant over time. It is checked with Schoenfeld residuals and log-minus-log plots. If it fails, options include stratifying on the variable, adding a time-varying coefficient or reporting restricted mean survival time. Where other events can prevent the event of interest, competing-risks methods, such as cumulative incidence functions and Fine-Gray models, are needed.
10Mixed models and repeated measures
When the same patients are measured repeatedly, or patients are nested in clinics or hospitals, observations are correlated. Linear and generalised linear mixed models handle this with random intercepts and slopes; mixed models for repeated measures (MMRM) are standard for longitudinal trial outcomes; generalised estimating equations (GEE) give population-averaged estimates. Mixed models also use all available data under a missing-at-random assumption.
11Non-parametric tests
When data are ordinal, or skewed in small samples, rank-based tests make fewer distributional assumptions: Mann-Whitney U for two independent groups, Wilcoxon signed-rank for paired data and Kruskal-Wallis for three or more groups. Example: comparing patient satisfaction ratings, recorded on an ordinal scale, between two hospital wards.
12Probability distributions
Distributions such as the normal, binomial and Poisson describe how likely each possible outcome is, and underpin statistical inference. The Poisson distribution, for example, models the number of new cases of a disease in a population over a fixed period.
13Discriminant analysis
Linear discriminant analysis finds the combinations of variables that best separate two or more known groups and uses them to classify new cases. Example: identifying the lifestyle and clinical variables that best distinguish patients with and without diabetes. Logistic regression is often preferred when predictors are not normally distributed.
14Principal component analysis (PCA)
PCA reduces a set of correlated variables to a smaller set of uncorrelated components that retain as much of the total variance as possible, which helps with exploration, visualisation and handling collinear predictors. Example: summarising alcohol use, physical activity, diet, BMI and cholesterol into a few lifestyle components.
15Cluster analysis
Cluster analysis is an unsupervised method that groups observations, such as patients, schools or regions, by their similarity, with no predefined labels. Example: segmenting patients by hospital visits, prescription use and demographics so interventions can be directed to high-risk groups. Clusters are exploratory and should be checked for stability.