Clinical KnowledgeA–Z topicsExams ▾Start free

Clinical Knowledge › Epidemiology and biostatistics › Statistical tests

Linear regression

Linear regression models how a continuous outcome (dependent variable, y) changes with one or more explanatory variables (x). Simple linear regression fits the straight line y = a + bx by least squares, minimising the sum of squared vertical distances (residuals) between points and line. The slope b = Sxy ÷ Sxx is the average change in y per one-unit increase in x, in the units of y; the intercept a is the predicted y when x = 0. Worked example: BMI and SBP in eight adults give b = 309 ÷ 168 = 1.84 mmHg per kg/m² (95% CI 1.27 to 2.41, P < 0.001), a = 78.8 mmHg and R² = 0.91; predicted SBP at BMI 30 is 134 mmHg. Multiple linear regression estimates each variable's effect adjusted for the others. Assumptions are linearity, independence, normally distributed residuals and constant variance (LINE). Traps: extrapolating beyond the data, reading slopes as causal, overfitting, collinearity and regression to the mean.

🔒 Full lesson for members
Patient case, mechanism, investigations, management, differentials, exam pearls, flashcards and exam-style questions. Included free with every exam plan (IFOM, MCCQE, AMC, Qatar, MRCP, OET) or a Clinical Knowledge plan.
Open the lesson → See plans
Least-squares line with residuals
Least-squares line with residuals Fitted regression line (red) with vertical residuals; least squares chooses the line minimising the sum of squared residuals. · Thomas.haslwanter · CC BY-SA 3.0 · Wikimedia Commons

Key facts (preview)

Guideline

TRIPOD+AI statement for prediction models (2024), STROBE statement for observational studies (2007) and SAMPL statistical reporting guidelines (2015)

References

  1. Collins GS, Moons KGM, Dhiman P, et al.. TRIPOD+AI statement: updated guidance for reporting clinical prediction models that use regression or machine learning methods. BMJ 2024.
  2. von Elm E, Altman DG, Egger M, Pocock SJ, Gøtzsche PC, Vandenbroucke JP. The Strengthening the Reporting of Observational Studies in Epidemiology (STROBE) statement: guidelines for reporting observational studies. Lancet 2007.
  3. Lang TA, Altman DG. Basic statistical reporting for articles published in biomedical journals: the 'Statistical Analyses and Methods in the Published Literature' or the SAMPL guidelines. Int J Nurs Stud 2015.
  4. Schneider A, Hommel G, Blettner M. Linear regression analysis: part 14 of a series on evaluation of scientific publications. Dtsch Arztebl Int 2010.
  5. Bland JM, Altman DG. Correlation, regression, and repeated data. BMJ 1994.
  6. Bland JM, Altman DG. Regression towards the mean. BMJ 1994.

Related topics

Choosing a testt-testsANOVAChi-squared and FisherNon-parametric testsCorrelationLogistic and Cox regressionKaplan–Meier curves

By Dr Khalid Seidi (B.Sc., M.D.) · MedEd World Clinical Knowledge library. Original teaching content checked against current guidelines (November 2026); confirm the latest local guidance before clinical use. Not a substitute for clinical judgement.