7.2 Bivariate Data, Scatterplots, Correlation & Linear Regression
Key Takeaways
Bivariate data analysis explores relationships between explanatory (x) and response (y) variables across direction, form, strength, and unusual departures on a scatterplot.
The Pearson correlation coefficient r measures the strength and direction of linear association only; it is dimensionless, bounded by [-1, 1], invariant under positive linear transformations, and non-resistant to outliers.
The Least-Squares Regression Line (LSRL) ŷ = b₀ + b₁x minimizes the sum of squared vertical residuals Σeᵢ², with slope b₁ = r(s_y / s_x) and intercept b₀ = ȳ - b₁x̄, guaranteeing that the line passes through the centroid (x̄, ȳ).
The coefficient of determination r² quantifies the proportion of total variation in the response variable y that is explained by the linear relationship with the explanatory variable x.
Residual plots (eᵢ vs xᵢ or ŷᵢ) assess model adequacy: random scatter indicates linearity and homoscedasticity, curvature indicates model inadequacy, and fanning indicates heteroscedasticity; influential points with high leverage can drastically distort regression parameters.
7.2 Bivariate Data, Scatterplots, Correlation & Linear Regression
Investigating relationships between two quantitative variables is a cornerstone of secondary mathematics education. Under the NBPTS standards, accomplished teachers guide students from informal visual impressions of scatterplots to rigorous algebraic and statistical modeling. This involves understanding the mathematical mechanisms governing the Pearson correlation coefficient , deriving the least-squares regression line (LSRL), evaluating model assumptions via residual plots, and guarding against the pervasive traps of confounding, extrapolation, and misinterpreting influential observations.
1. Scatterplots & Characterizing Bivariate Associations
A scatterplot displays bivariate quantitative data on a Cartesian coordinate plane. Convention assigns:
- Explanatory Variable (, Independent/Predictor): Plotted along the horizontal axis; hypothesized to explain, predict, or influence changes in the response.
- Response Variable (, Dependent/Criterion): Plotted along the vertical axis; measures the outcome of interest.
Four Essential Descriptors of Bivariate Data
When describing a scatterplot, secondary students must systematically address four key characteristics:
- Direction: A positive association indicates that above-average values of tend to accompany above-average values of ; a negative association indicates that above-average values of accompany below-average values of .
- Form: Linear, curvilinear (quadratic, exponential, logarithmic), or clustered into distinct subgroups.
- Strength: The degree of adherence of the points to the underlying form (strong, moderate, or weak).
- Unusual Features: Outliers, influential points, high-leverage points, or pronounced gaps.
2. Pearson Product-Moment Correlation Coefficient ()
The Pearson correlation coefficient provides an objective, standardized metric of the strength and direction of a linear relationship between two quantitative variables.
Mathematical Formulation
For paired observations with sample standard deviations and :
Notice that is the average product of standardized -scores: . When a data point falls in Quadrant I or III relative to the centroid , both -scores share the same algebraic sign, contributing a positive product to the sum. In Quadrants II and IV, the -scores have opposite signs, contributing a negative product.
Critical Mathematical Properties of
- Bounded Range: . Values of and represent perfect positive and perfect negative collinearity, respectively. A value of denotes no linear association.
- Dimensionless (Scale Invariance): Because is computed from standardized -scores, it has no units of measurement. Transforming units (e.g., converting centimeters to inches or Celsius to Fahrenheit) leaves completely unchanged, provided the scale factor is positive (). If one variable is multiplied by a negative constant, reverses sign.
- Symmetry: . Switching the roles of explanatory and response variables does not alter the correlation coefficient.
- Linearity Restriction: measures strictly linear association. A deterministic non-linear relationship (e.g., on the symmetric domain ) yields despite perfect functional predictability.
- Non-Resistance: Like the sample mean, is non-resistant. A single anomalous observation far from the bivariate centroid can drastically inflate or deflate .
3. The Least-Squares Regression Line (LSRL)
When a scatterplot demonstrates a reasonably linear trend, linear regression models the response as a linear function of :
where (y-hat) represents the predicted value of the response variable for a given value of , is the slope, and is the -intercept.
The Least-Squares Criterion
For each observation , the vertical error or residual is defined as:
The least-squares regression line is defined as the unique line that minimizes the sum of squared vertical residuals (SSE):
Formulas for Slope () and Intercept ()
Setting the partial derivatives and yields the normal equations. Solving these equations produces the fundamental parameter formulas:
Important
The Centroid Property: Rearranging the intercept formula gives . This proves mathematically that the least-squares regression line always passes through the centroid point of the dataset.
Contextual Interpretation of Regression Parameters
- Interpreting the Slope (): "For each additional 1-unit increase in the explanatory variable , the model predicts an average change of units in the response variable ."
- Interpreting the -Intercept (): "When the explanatory variable is 0 units, the model predicts the response variable will be units." (Teachers must prompt students to assess whether is physically meaningful and lies within the observed domain).
4. The Coefficient of Determination ()
The coefficient of determination, denoted , evaluates the explanatory adequacy of the regression model. In simple linear regression with an intercept, is precisely the square of Pearson's correlation coefficient.
Partitioning the Sum of Squares
The total variation in the response variable around its mean is partitioned into two additive components:
where:
- (Total Sum of Squares): Total variation in without using .
- (Model Sum of Squares): Variation explained by the linear regression line.
- (Error/Residual Sum of Squares): Unexplained residual scatter.
Standard Pedagogical Interpretation Template
Accomplished teachers train students to use the precise interpretative phrasing:
" of the total variation in the response variable () is explained by the linear relationship with the explanatory variable ()."
5. Residual Analysis & Diagnostic Plots
Calculating a high or is insufficient to claim that a linear model is appropriate. A linear model can produce on data exhibiting severe quadratic curvature. The primary diagnostic tool for model validation is the residual plot.
Fundamental Properties of Residuals
- (the sum of residuals from an LSRL with an intercept is always exactly zero).
- (the mean residual is zero).
Diagnosing Residual Patterns
A residual plot graphs the explanatory variable (or predicted values ) on the horizontal axis against the residuals on the vertical axis:
+-----------------------------------------------------------------------------------+
| RESIDUAL PLOT DIAGNOSTIC MATRIX |
+-----------------------+-----------------------------+-----------------------------+
| Observed Pattern | Statistical Diagnosis | Remedial Modeling Action |
+-----------------------+-----------------------------+-----------------------------+
| Uniform random | Linear model is appropriate | Retain linear model; |
| scatter around e = 0 | (Homoscedasticity confirmed)| proceed with inference |
+-----------------------+-----------------------------+-----------------------------+
| Curved pattern | Non-linear relationship | Reject linear model; apply |
| (U-shape / Inverted U)| (Systematic model inadequacy| re-expression (log, power) |
+-----------------------+-----------------------------+-----------------------------+
| Fan / Funnel shape | Heteroscedasticity | Logarithmic transformation |
| (Spread widens/narrows| (Non-constant error variance| on y to stabilize variance |
+-----------------------+-----------------------------+-----------------------------+
6. Outliers, Leverage, and Influential Points
In bivariate regression, unusual points exhibit distinct geometric properties and consequences:
Bivariate Outlier
An observation with a large vertical residual . It falls far from the general linear trend formed by the majority of the data points.
High-Leverage Point
An observation whose explanatory value lies substantially far from the centroid mean .
- Leverage Property: Leverage depends solely on the -value, completely independent of the -value.
- A high-leverage point acts like a heavy weight at the end of a long lever arm. If its -value aligns with the linear trend established by the rest of the data, it has a small residual, does not alter the slope, but artificially inflates and .
Influential Point
An observation whose inclusion or omission substantially alters the regression parameters (slope , intercept , or correlation ). A point is typically influential if it combines high leverage with an inconsistent -value that fails to follow the trend of the remaining data.
7. Secondary Pedagogical Traps & Instructional Interventions
Trap 1: Correlation Does Not Imply Causation
Students routinely conclude that a strong positive correlation between two variables proves that changes in cause changes in .
- Pedagogical Intervention: Present real-world examples driven by lurking / confounding variables (e.g., the strong positive correlation between ice cream sales and drowning incidents, both driven by the confounding variable of summer outdoor temperatures). Emphasize that only a well-designed, randomized controlled experiment can establish causal inference.
Trap 2: The Hazard of Extrapolation
Students frequently use regression equations to make predictions for -values far outside the range of observed data.
- Pedagogical Intervention: Illustrate the growth rate of a human infant. A linear regression predicting child height from age between 1 and 4 years will predict an adult height of 14 feet at age 35. Explain that relationships verified to be linear within a specific experimental domain may become non-linear, saturate, or reverse entirely beyond the observed data range.
Trap 3: Switching and in Regression
Students often assume that the regression line of on can simply be solved algebraically for to yield the regression of on .
- Pedagogical Intervention: Clarify that least-squares regression minimizes vertical distances (), whereas regressing on minimizes horizontal distances (). Because while , the lines are geometrically distinct whenever .
An educational researcher investigates the relationship between weekly mathematics homework hours (x) and final examination scores (y, in points). The summary statistics for n = 25 students are:
x̄ = 15.0 hours, s_x = 3.0 hours, ȳ = 72.0 points, s_y = 9.0 points, r = 0.80
Using the Least-Squares Regression Line (LSRL) model ŷ = b₀ + b₁x, what is the predicted final examination score for a student who completes x = 18.0 hours of homework weekly?
ŷ = 74.4 points
ŷ = 76.8 points
ŷ = 81.6 points
ŷ = 79.2 points
In a bivariate dataset, an observation has an explanatory value x that is 4 standard deviations above x̄, but its response value y falls almost exactly on the regression line established by the remaining observations. How is this point properly classified, and what is its primary effect on the regression analysis?
The point has high leverage and low influence on the slope, but it substantially inflates the correlation coefficient r and r².
The point is a bivariate outlier with a large residual that severely alters the y-intercept b₀.
The point has low leverage and high influence, drastically rotating the regression line toward the horizontal axis.
The point is an uninfluential centroid point that has zero impact on either the correlation coefficient or the standard error of the slope.
A secondary student uses linear regression to model automobile fuel efficiency (y, in miles per gallon) from curb weight (x, in thousands of pounds) across 30 passenger vehicles, obtaining r = -0.89. Upon constructing a residual plot of eᵢ versus xᵢ, the student observes a pronounced U-shaped parabolic curve. What is the correct statistical diagnosis and instructional response?
Conclude the linear model is excellent because r² = (-0.89)² ≈ 0.792 demonstrates that nearly 80% of the variance is explained.
Conclude that the linear model is inadequate because the systematic curved pattern in the residual plot reveals a non-linear relationship; guide the student to explore a non-linear transformation (e.g., reciprocal or logarithmic re-expression).
Conclude that the data exhibit heteroscedasticity, which can be remedied by removing the vehicles that produce positive residuals.
Conclude that the student mistakenly reversed the explanatory and response variables, and recompute the regression of weight on fuel efficiency.
Sections you finish are checked off in the contents.