Slope, Intercept,
\( R^2 \) & Residuals
Master the four pillars of linear regression: interpret what the slope and intercept mean, gauge model fit with \( R^2 \), and diagnose problems using residuals.
What Is Linear Regression?
Linear regression fits a straight line to data so we can predict one variable from another. The equation of the best-fit line is:
Why It Matters in Biology
Biologists use regression every day: predicting drug dosage effects, relating body mass to metabolic rate, or testing whether a toxin concentration predicts cell death. Understanding these four quantities lets you read and critique published research.
Visualising the Best-Fit Line
Interpreting the Slope \( b_1 \)
The slope tells you the direction and rate of change. A slope of \( b_1 = 4.5 \) means: for every one-unit increase in \( x \), the predicted \( \hat{y} \) increases by 4.5 units.
Interpreting the Intercept \( b_0 \)
The intercept \( b_0 \) is the predicted value of \( y \) when \( x = 0 \). Whether it is meaningful depends on context:
What Is \( R^2 \)?
\( R^2 \) (the coefficient of determination) tells you the proportion of variance in \( y \) explained by the model. It ranges from 0 to 1.
Understanding Residuals
A residual is the vertical distance between an observed point \( y_i \) and the predicted value \( \hat{y}_i \). It tells you how far the model missed for that observation.
Reading a Residual Plot
\( R^2 \) vs Slope: Not the Same
| Slope \( b_1 \) | \( R^2 \) | |
|---|---|---|
| Measures | Rate of change per unit \( x \) | Proportion of variance explained |
| Range | \( -\infty \) to \( +\infty \) | 0 to 1 |
| Units | Units of \( y \) per unit of \( x \) | Unitless (proportion) |
| Steep slope means... | Large effect per unit | Not necessarily high \( R^2 \) |
How to Interpret a Regression Output
Example 1: Fertiliser & Plant Height
Example 2: Drug Dose & Heart Rate
Example 3: Computing a Residual
Common Mistakes
Summary of Key Concepts
| Concept | Symbol | What It Tells You |
|---|---|---|
| Slope | \( b_1 \) | Rate of change per unit \( x \) |
| Intercept | \( b_0 \) | Predicted \( \hat{y} \) when \( x = 0 \) |
| Coefficient of Determination | \( R^2 \) | Proportion of variance explained |
| Residual | \( e_i \) | Difference between observed and predicted |
Question 1 of 5
A study finds \( \hat{y} = 20 + 3.4x \), where \( x \) is hours of sunlight and \( y \) is crop yield (kg). What does the slope mean?
Question 2 of 5
If \( R^2 = 0.81 \) for a model predicting blood pressure from age, which statement is correct?
Question 3 of 5
For the model \( \hat{y} = 10 + 2x \), one observation has \( x = 5 \) and \( y = 18 \). What is the residual?
Question 4 of 5
A residual plot shows a clear U-shaped curve. What does this indicate?
Question 5 of 5
A model predicting tree height (m) from trunk diameter (cm) gives \( \hat{y} = -1.5 + 0.8x \). What does the intercept \( b_0 = -1.5 \) mean?