Regression Knowledge-Based Study
Math topic explanations on Regression.
Study notes
Understanding Bivariate Data
When collecting data, we often record two quantitative characteristics for each individual or item. This type of information is called bivariate numerical data.
To examine the relationship between two variables, we assign them specific roles:
- Explanatory Variable (Independent Variable, ): The variable that is suspected of causing, predicting, or explaining changes in the other. It is conventionally plotted on the horizontal axis.
- Response Variable (Dependent Variable, ): The variable whose outcome or variation is measured or predicted. It is conventionally plotted on the vertical axis.
A scatter plot displays each observation as a single point on the Cartesian coordinate plane. Examining a scatter plot reveals three fundamental features of the relationship:
- Direction: A relationship is positive if larger values of tend to accompany larger values of . It is negative if larger values of correspond to smaller values of .
- Form: The pattern can be linear (following roughly a straight path) or non-linear (displaying curvature or clusters).
- Strength: How closely the points gather around a recognizable path or line.
Defining the Line of Best Fit
When a scatter plot shows a linear trend, we can model the relationship using a straight line called a regression line or line of best fit. The standard equation for this line is:
where denotes the predicted value of the response variable for a given value of , represents the slope, and represents the -intercept.
What is a Residual?
Real-world data points rarely lie perfectly on a single line. For any observed data point , the vertical distance between the observed value and the line's predicted value is known as a residual (error):
- If a point lies above the regression line, , resulting in a positive residual.
- If a point lies below the regression line, , resulting in a negative residual.
- If an observed value matches the model prediction exactly, the residual is zero.
The Least-Squares Criterion
The unique line that minimizes the sum of all squared residuals, , is called the ordinary least-squares (OLS) regression line. Squaring the residuals eliminates cancellation between positive and negative errors and penalizes larger discrepancies more heavily.
Contextual Meaning of Model Parameters
A regression equation is valuable only when its coefficients are interpreted accurately within the context of the underlying investigation.
The Slope ()
The slope measures the rate of change of the predicted response per unit change in the explanatory variable:
- For each increase of unit in , the predicted response changes by units.
- If , the relationship is positive; as increases, increases.
- If , the relationship is negative; as increases, decreases.
The Intercept ()
The -intercept is the predicted value of when :
Caution: Interpreting the intercept is only physically meaningful if:
- The explanatory variable can plausibly equal zero in the given context.
- The collected data include values of near zero.
If values near zero fall far outside the observed range of , the intercept serves only as an anchoring constant for the linear geometry of the line and must not be given a literal physical interpretation.
Using the Model to Make Predictions
To predict the value of the response variable, substitute a specific value into the regression equation .
Interpolation
Interpolation occurs when you make a prediction for an explanatory value that lies within the range of the observed values of :
Interpolation is generally considered reliable as long as the underlying linear pattern is strong and well-supported by the sample points.
Extrapolation
Extrapolation occurs when you use the model to predict for an explanatory value outside the domain of observed data:
Extrapolation is hazardous and should be treated with extreme caution because we have no observational evidence that the linear relationship continues beyond the studied range. Patterns frequently level off, reverse direction, or change form entirely outside the measured interval.
Comprehensive Worked Example
A study recorded the study time in hours () and the subsequent exam score out of 100 () for a group of students whose study times ranged from to hours. The calculated least-squares regression line is:
Step-by-Step Analysis
- Interpreting the Slope: The slope is . This indicates that for each additional hour spent studying, the predicted exam score increases by points.
- Interpreting the Intercept: The intercept is . For a student who studies hours, the predicted exam score is points (provided studying zero hours is plausible).
- Predicting within the Domain: For a student studying hours:Because hours lies between and hours, this is an interpolation.
- Calculating a Residual: Suppose a student who studied hours actually achieved an exam score of points:The positive residual indicates that the student scored points higher than predicted by the model (the model underpredicted the performance).
- Evaluating Extrapolation: Using the equation to predict the score of someone studying hours yields , which is impossible on a 100-point exam. This illustrates why extrapolation beyond the collected domain ( to hours) produces invalid conclusions.

