SECTION 1
Historical Context & Motivation
The desire to summarize the relationship between two measured quantities is among the oldest problems in quantitative science. Long before modern biostatistics emerged, astronomers and mathematicians sought principled ways to fit straight lines through scattered observations—a task that eventually became the foundation of linear regression. The concepts of slope, intercept, coefficient of determination (R²), and residuals crystallized gradually over more than two centuries, each advancing our ability to interpret and critique fitted models in medicine, epidemiology, and the biological sciences.
1805 • Legendre Publishes the Method of Least Squares
1809 • Gauss Connects Least Squares to Normal Errors
1886 • Galton Introduces 'Regression Toward the Mean'
1896 • Pearson Develops the Correlation Coefficient
1922– • Fisher and the Modern Framework
Today, whenever a clinical researcher reports that each additional milligram of a drug increases mean blood pressure by 2.3 mmHg, they are interpreting a slope. When an epidemiologist states that a model explains 74 % of the variability in disease incidence, they are citing R². The central challenge this lesson addresses is: how do we extract biological meaning from each regression parameter and verify that the model's assumptions hold?
SECTION 2
Core Principles & Definitions
A simple linear regression model posits that the expected value of an outcome variable Y is a linear function of a predictor X. Four quantities capture nearly everything an analyst needs to interpret and critique this fitted line: the slope, the intercept, the coefficient of determination, and the residuals. Each carries distinct biological information and must be reported with appropriate context.
Slope (β₁)
Intercept (β₀)
R² (Coefficient of Determination)
Residuals (eᵢ = Yᵢ − Ŷᵢ)
KEY TAKEAWAY
SECTION 3
Visual Explanation — Anatomy of a Regression Plot
The scatter plot with an overlaid regression line is the canonical visualization in biostatistics. The diagram below illustrates every element of interpretation: the regression line itself, individual data points, the intercept, the slope as rise-over-run, and the residuals as vertical deviations. Study the labeled components carefully, as they map directly to the mathematical quantities discussed throughout this lesson.
Observe that the residuals can be either positive (when the observed point lies above the line) or negative (when below). The least-squares criterion guarantees that these residuals sum to zero, and it minimizes the sum of their squares. In the context of biostatistical research, each residual represents the portion of an individual's response that the model fails to explain—potentially attributable to unmeasured confounders, measurement error, or genuine biological variability.
SECTION 4
Mathematical Framework
The population model for simple linear regression is expressed as Yᵢ = β₀ + β₁Xᵢ + εᵢ, where εᵢ are independent, identically distributed error terms with mean zero and constant variance σ². From a sample of n paired observations, the ordinary least-squares (OLS) method yields estimators that minimize ∑eᵢ². The following equations define the key quantities.
SLOPE ESTIMATOR
where X̄ and Ȳ are sample means. The numerator is the sample covariance of X and Y (up to a factor of n − 1), and the denominator is the sample variance of X. The slope is equivalently written as b₁ = r × ( / ), linking it to the Pearson correlation r.
INTERCEPT ESTIMATOR
This guarantees the regression line passes through the centroid (X̄, Ȳ) of the data. When X = 0 is outside the range of sampled values, β₀ should be interpreted as a mathematical anchor rather than a meaningful biological quantity.
COEFFICIENT OF DETERMINATION
SStot = ∑(Yᵢ − Ȳ)² is the total sum of squares; SSres = ∑(Yᵢ − Ŷᵢ)² is the residual sum of squares; and SSreg = ∑(Ŷᵢ − Ȳ)² is the regression sum of squares. In simple linear regression, R² equals r².
RESIDUAL
The residual for the i-th observation. Under correct model specification, residuals should exhibit no systematic pattern when plotted against Ŷ or X, should be approximately normally distributed, and should have constant spread (homoscedasticity).
Decomposition of Variability
SECTION 5
Residual Diagnostics — Reading the Model's Report Card
Fitting a regression line is only half the battle; assessing whether the model's assumptions are satisfied is equally important. Residual diagnostics provide the evidence needed to evaluate linearity, homoscedasticity, normality of errors, and independence. The residual-vs-fitted-value plot is the single most informative diagnostic in practice. Below, three canonical residual patterns are illustrated: a well-behaved (ideal) pattern, a funnel-shaped pattern indicating heteroscedasticity, and a curved pattern revealing non-linearity.
In biostatistical practice, additional diagnostic checks include the Q–Q plot (which assesses normality of residuals by comparing their quantiles to those of a standard normal distribution) and the scale-location plot (which plots √|standardized residuals| against fitted values to detect heteroscedasticity more sensitively). When residual diagnostics reveal violations, the analyst may consider transformations of Y or X, robust standard errors, or generalized linear models as alternatives.
| Residual Pattern | Assumption Violated | Typical Remedy |
|---|---|---|
| Random scatter, constant spread | None — assumptions satisfied | No action needed |
| Funnel / fan shape | Homoscedasticity (constant variance) | Log-transform Y, weighted least squares, or robust SE |
| U-shaped or systematic curve | Linearity | Add polynomial terms, transform X, or use a non-linear model |
| Cyclical pattern across time-ordered observations | Independence | Autoregressive models or generalized estimating equations |
| Heavy tails on Q–Q plot | Normality of errors | Robust regression, bootstrap confidence intervals, or transform Y |
Common residual patterns, their implied assumption violations, and recommended remedies.
SECTION 6
Worked Example — Interpreting a Clinical Regression
A clinical researcher collects data from n = 30 adults enrolled in a hypertension study, measuring daily sodium intake (X, in grams) and systolic blood pressure (Y, in mmHg). After fitting a simple linear regression, the software output reports: b₀ = 98.4, b₁ = 5.2, R² = 0.63, Se = 7.1 mmHg. The task is to interpret every parameter in clinically meaningful terms and inspect one residual.
Sodium Intake and Blood Pressure
- 1
Step 1 — Interpret the Slope
The slope b₁ = 5.2 means that, for each additional gram of daily sodium intake, the model predicts mean systolic blood pressure to increase by 5.2 mmHg. In a research report one would write: "Each 1 g/day increase in sodium intake was associated with a 5.2 mmHg increase in systolic blood pressure (95 % CI to be determined from standard error)."β̂₁ = 5.2 mmHg per gram of sodium - 2
Step 2 — Interpret the Intercept
The intercept b₀ = 98.4 is the predicted systolic blood pressure when sodium intake equals zero. Because adults in this study consumed between 1.5 and 6.0 grams per day, X = 0 is an extrapolation and the intercept should not be given a strong physiological interpretation. However, it is needed mathematically to anchor the line.β̂₀ = 98.4 mmHg (extrapolation; interpret cautiously) - 3
Step 3 — Interpret R²
R² = 0.63 indicates that 63 % of the observed variability in systolic blood pressure among these 30 participants is accounted for by the linear relationship with sodium intake. The remaining 37 % is attributable to other factors such as age, body mass index, genetics, and measurement error. An R² of 0.63 is considered moderately strong in clinical research, where individual biological variability is typically large.63 % of variability in SBP explained by sodium intake - 4
Step 4 — Compute and Interpret a Residual
Consider participant 17, whose sodium intake is X₁₇ = 4.0 g/day and observed SBP is Y₁₇ = 126 mmHg. The predicted value is Ŷ₁₇ = 98.4 + 5.2 × 4.0 = 119.2 mmHg. The residual is e₁₇ = 126 − 119.2 = 6.8 mmHg. This positive residual means participant 17's blood pressure was 6.8 mmHg higher than the model predicted, suggesting additional factors are elevating their blood pressure beyond what sodium intake alone explains.e₁₇ = +6.8 mmHg (observed exceeds prediction) - 5
Step 5 — Assess Model Adequacy
After inspecting the residual-vs-fitted plot for all 30 observations, the researcher finds no systematic curvature, no funnel shape, and a roughly normal Q–Q plot. The standard error of the estimate Se = 7.1 mmHg provides a measure of the typical prediction error in original units. The model assumptions appear satisfied, supporting the validity of the reported slope and R².Diagnostics passed — model is adequate for inference
SECTION 7
Strengths, Limitations & Common Pitfalls
Simple linear regression and its associated statistics are remarkably versatile, yet several common misinterpretations can lead to flawed conclusions in biomedical research. The table below contrasts the strengths of each parameter with the most frequent errors analysts commit when interpreting them.
| Parameter | Strength | Common Pitfall |
|---|---|---|
| Slope (b₁) | Quantifies the direction and magnitude of the X–Y association in original units; directly testable via t-test. | Interpreting as causal when the study is observational; ignoring confounding variables. |
| Intercept (b₀) | Anchors the fitted line; necessary for prediction within the observed range of X. | Assigning biological meaning when X = 0 is outside the data range (extrapolation). |
| R² | Intuitive proportion of variance explained; useful for comparing model fit across nested models. | Equating high R² with causation, or dismissing a low R² when the slope is significant and clinically important. |
| Residuals | Reveal assumption violations and influential observations; no additional data collection needed. | Ignoring residual plots and relying solely on R² to validate a model; treating residual patterns as random noise. |
Strengths and common pitfalls for each regression parameter.
KEY TAKEAWAY — CONTEXT MATTERS
SECTION 8
Connection to Multiple Regression & Advanced Modeling
Simple linear regression is the entry point to a vast family of models. In biostatistics, most research questions involve multiple predictors, non-continuous outcomes, or hierarchical data structures that require extensions of the basic framework. The table below positions each concept from this lesson against its generalization in more advanced settings, providing a conceptual bridge for further study.
| Simple Regression Concept | Generalization | Key Difference |
|---|---|---|
| Single slope b₁ | Multiple partial regression coefficients β₁, β₂, …, βₖ | Each slope is adjusted for all other predictors; interpretation becomes 'holding all else constant.' |
| R² | Adjusted R² and information criteria (AIC, BIC) | Adjusted R² penalizes for additional predictors; AIC/BIC balance fit against model complexity. |
| OLS residuals | Deviance residuals, Pearson residuals (GLMs) | For logistic or Poisson models, different residual definitions are used because errors are not normally distributed. |
| Intercept b₀ (single level) | Random intercepts (mixed-effects models) | Each cluster (e.g., hospital, patient) receives its own intercept, capturing hierarchical variability. |
| Linear relationship Y = β₀ + β₁X | Link functions in GLMs (logit, log) | The linear predictor is related to the mean of Y through a nonlinear link function, enabling modeling of binary or count outcomes. |
From simple regression to advanced biostatistical models.
Understanding slope, intercept, R², and residuals in the simple case builds the interpretive vocabulary you will carry forward into every regression-based analysis you encounter—from multiple linear regression to generalized linear models, survival analysis (Cox regression), and machine learning frameworks. The principles of decomposing variability and scrutinizing residual patterns remain unchanged, even when the mathematical machinery grows more sophisticated.
SECTION 9
Practice Problems
Question 1: CONCEPTUAL
Show answer
Question 2: BASIC CALCULATION
Show answer
Question 3: INTERMEDIATE
Show answer
Question 4: APPLIED
Show answer
Question 5: CRITICAL THINKING
Show answer
SUMMARY
Lesson Summary
Summary
In simple linear regression, the slope (b₁) quantifies the expected change in the response variable per one-unit increase in the predictor and serves as the primary measure of association. The intercept (b₀) anchors the fitted line and equals the predicted mean response when the predictor is zero, though its biological interpretability depends on whether X = 0 lies within the observed data range. The coefficient of determination (R²) expresses the proportion of total variability in Y that the linear model explains—values near 1 indicate tight data clustering around the line, while values near 0 indicate that most variability is unexplained.
Residuals (eᵢ = Yᵢ − Ŷᵢ) are indispensable diagnostics: their patterns in plots reveal violations of linearity, homoscedasticity, normality, and independence. Mastering the interpretation and diagnostic use of these four quantities—slope, intercept, R², and residuals—provides the foundation for all regression-based inference in biostatistics, from multiple linear regression to generalized linear models and beyond.