Historical Context & Motivation
Regression analysis is among the most widely used statistical methods in biomedical research, yet the validity of its results hinges on a set of mathematical conditions that must be satisfied for standard inference—confidence intervals, p-values, and prediction intervals—to hold. The formal study of these conditions traces back to the early development of ordinary least squares (OLS) estimation, and researchers have spent over a century refining both the theoretical foundations and the practical diagnostic tools used to evaluate them. Understanding why these assumptions exist, and how violations distort results, is essential for any researcher conducting or interpreting regression-based analyses in the health sciences.
The central question this lesson addresses is: How do we verify that the mathematical conditions underlying a regression model are met, and what do we do when they are not? In biostatistics, where models inform clinical decisions, drug dosage calculations, and epidemiological policy, a regression model that violates its assumptions can yield misleading coefficient estimates, inflated confidence, and ultimately flawed conclusions about biological relationships.
Core Principles — The LINE Assumptions
The four classical assumptions of ordinary least squares regression are commonly remembered by the mnemonic LINE: Linearity, Independence, Normality, and Equal variance. Each assumption pertains to properties of the residuals (the differences between observed and predicted values), not to the raw data themselves. When all four hold simultaneously, OLS provides the best linear unbiased estimator, and the standard formulas for standard errors, t-tests, and F-tests are valid.
Linearity
Independence
Normality
Equal Variance (Homoscedasticity)
Visual Explanation — Residual Diagnostic Plots
The primary tool for evaluating regression assumptions is the residual plot—a scatter plot of residuals (ê) on the vertical axis against fitted values (ŷ) or predictor values on the horizontal axis. A well-behaved model produces a residual plot with no discernible pattern: points scatter randomly around zero in a roughly constant horizontal band. The diagram below contrasts a model that satisfies assumptions with three common violation patterns.
In practice, you should generate these plots immediately after fitting any regression model. The residual-versus-fitted plot (top panels) addresses linearity and equal variance simultaneously: a systematic curve indicates non-linearity, while a fanning pattern indicates heteroscedasticity. Extreme residuals far from the horizontal band (bottom-right panel) raise concerns about normality. The independence assumption typically cannot be assessed from a residual-versus-fitted plot alone; it requires knowledge of the study design or time-ordered residual plots.
Mathematical Framework
The simple linear regression model is expressed as a data-generating process with explicit conditions on the error term. These conditions are precisely the LINE assumptions expressed in mathematical notation. The model and its assumptions together determine the statistical properties of the OLS estimators β̂₀ and β̂₁.
A compact way to express all four conditions simultaneously is: ε ~ N(0, σ²I), where ε is the n × 1 vector of errors, 0 is a zero vector, and σ²I is a scalar variance times the identity matrix. The identity matrix enforces both equal variance (all diagonal elements are σ²) and independence (all off-diagonal elements are zero). This elegant formulation makes it clear that a single violation—say, correlated errors—changes the covariance matrix from σ²I to some other structure Σ, invalidating the standard OLS inference formulas.
Detailed Diagnostic Methods for Each Assumption
Each of the four LINE assumptions has both graphical and formal testing procedures. In practice, graphical methods are preferred as the primary diagnostic because formal tests can be overly sensitive in large samples (rejecting trivial violations) or underpowered in small samples (failing to detect meaningful violations). The diagram below presents a decision flowchart for the complete assumption-checking process.
| Assumption | Primary Graphical Diagnostic | Formal Test | What to Look For |
|---|---|---|---|
| Linearity | Residual vs. fitted values plot; partial regression plots | Ramsey RESET test; lack-of-fit F-test | Curved or U-shaped pattern in residuals; systematic departure from zero line |
| Independence | Residuals vs. time/order plot; autocorrelation function (ACF) plot | Durbin–Watson test (d statistic); Ljung–Box test | Runs of positive/negative residuals; sinusoidal pattern; d ≈ 2 indicates no autocorrelation |
| Normality | Normal Q–Q plot; histogram with normal curve overlay | Shapiro–Wilk test; Anderson–Darling test; Kolmogorov–Smirnov test | Points deviating from the 45° reference line on Q–Q plot; skewness or heavy tails in histogram |
| Equal Variance | Scale-location plot (√|standardized residuals| vs. fitted); residual vs. fitted for fan shape | Breusch–Pagan test; White's test; Levene's test (for grouped data) | Increasing or decreasing spread in residuals; megaphone/fan pattern; significant BP test p-value |
Worked Example — Blood Pressure and Age
A biostatistician fits a simple linear regression predicting systolic blood pressure (SBP, in mmHg) from age (in years) using data from n = 50 adults in a cross-sectional study. The fitted model is SBP = 98.7 + 0.97 × Age. Before interpreting the slope coefficient, the analyst must verify all four LINE assumptions. We walk through each check using the model's residuals.
Consequences of Violations & Remedial Strategies
Not all assumption violations are equally damaging. Understanding the specific consequences of each violation helps researchers prioritize diagnostics and select appropriate remedial measures. The table below summarizes what goes wrong when each assumption fails and the most common corrective strategies used in biostatistical practice.
| Violated Assumption | Consequence | Remedial Strategy |
|---|---|---|
| Linearity | Biased coefficient estimates; predicted values systematically too high or too low in certain regions; R² underestimates explanatory power | Add polynomial terms (X², X³); apply splines; transform X or Y (e.g., log, square root); use generalized additive models (GAMs) |
| Independence | Standard errors are underestimated (positive autocorrelation) or overestimated; inflated Type I error rates; confidence intervals are too narrow | Use mixed-effects models for clustered data; employ GEE (generalized estimating equations); fit time-series models (ARIMA) for temporal data; include random effects |
| Normality | Hypothesis tests and confidence intervals become inaccurate, especially in small samples; prediction intervals are unreliable; coefficient estimates remain unbiased | Apply Box–Cox or log transformation to Y; use bootstrapped confidence intervals; rely on CLT for large samples (n > 30–50); use nonparametric regression |
| Equal Variance | OLS is no longer efficient; standard errors are biased (can be inflated or deflated); confidence intervals have incorrect coverage probability | Use robust (sandwich/HC) standard errors; weighted least squares (WLS); variance-stabilizing transformations (log, sqrt); model the variance function explicitly |
Connection to Advanced Theory — Beyond OLS
When one or more LINE assumptions are substantially violated and simple remedial measures are insufficient, biostatisticians turn to more sophisticated modeling frameworks. These advanced methods relax specific assumptions while preserving valid inference. Understanding these extensions positions you to select the right tool for complex biomedical data structures where standard OLS falls short.
| Feature | Standard OLS Regression | Advanced Alternatives |
|---|---|---|
| Error distribution | Assumes normal (Gaussian) errors | GLMs allow binomial, Poisson, gamma, and other distributions via a link function |
| Functional form | Linear in parameters; polynomial terms added manually | GAMs fit smooth nonparametric functions; spline regression captures flexible curves |
| Correlated errors | Assumes independent errors (Cov = 0) | Mixed models and GEE handle clustering, repeated measures, and hierarchical data |
| Heteroscedasticity | Assumes constant variance σ² | WLS weights inversely by variance; robust SE provides valid inference without reweighting |
| Outlier sensitivity | Highly sensitive; single outlier can shift regression line | Robust regression (M-estimation, LTS) downweights influential points automatically |
In modern biostatistical practice, the assumption-checking workflow is not merely a pass/fail gate but a diagnostic process that guides model selection. A researcher who discovers non-normality and heteroscedasticity in residuals from a model of hospital costs, for example, might switch to a generalized linear model (GLM) with a gamma family and log link, which simultaneously addresses both violations by modeling the conditional mean on a log scale with a variance proportional to the mean. Similarly, researchers analyzing clinical trial data with repeated measures on each patient should recognize the independence violation and adopt a linear mixed-effects model from the outset, rather than attempting OLS and retrospectively diagnosing correlated residuals.
Practice Problems
Lesson Summary
The validity of ordinary least squares regression rests on four foundational conditions known as the LINE assumptions: linearity (the true relationship between predictors and outcome is linear in the parameters), independence (residuals are uncorrelated with one another), normality (residuals follow a Gaussian distribution), and equal variance (residual variance is constant across all levels of the predictor). These conditions are assessed primarily through residual diagnostic plots—residual-versus-fitted plots for linearity and homoscedasticity, Q–Q plots for normality, and time-order plots or study design review for independence—supplemented by formal tests such as the Breusch–Pagan, Durbin–Watson, and Shapiro–Wilk tests.
When violations are detected, remedial strategies include variable transformations (log, square root, Box–Cox) for non-linearity and non-normality, robust standard errors or weighted least squares for heteroscedasticity, and mixed-effects models or generalized estimating equations for correlated observations. Remember that graphical diagnostics are generally more informative than formal tests, especially in very large or very small samples, and that assumption checking should be viewed as a routine, non-negotiable step in every regression analysis—not an afterthought.