Regression
Modeling
Learn to fit linear, quadratic, and exponential models to real-world data using technology and the coefficient of determination \( r^2 \).
What Is Regression?
Regression is a statistical method for finding the best-fitting mathematical model that describes the relationship between an independent variable \( x \) and a dependent variable \( y \). Instead of connecting every point, we find a smooth curve that captures the overall trend in the data.
Three Model Types in SL 2.7
Constant rate of change: straight line
Increasing then decreasing (or vice versa): parabola
Rapid growth or decay: curved growth
Seeing the Fit
The Coefficient of Determination: \( r^2 \)
\( r^2 \) measures how well a regression model fits the data. It gives the proportion of the variation in \( y \) that is explained by the model.
Interpreting \( r^2 \) Visually
When \( r^2 \) is high, points cluster tightly around the model. When \( r^2 \) is low, points are scattered with no clear pattern: the model is a poor predictor.
Formal Model Equations
Correlation vs Regression
| Correlation | Regression | |
|---|---|---|
| Purpose | Measures strength of linear association | Finds a model equation to predict \( y \) |
| Output | \( r \) (a number from \(-1\) to \(1\)) | \( y = f(x) \) (an equation) |
| Direction | Symmetric: \( r(x,y) = r(y,x) \) | Asymmetric: \( y \) on \( x \) differs from \( x \) on \( y \) |
| Model type | Linear only (\( r \)) | Linear, quadratic, exponential, and more |
How to Perform Regression
Example 1: Linear Regression
A student measures temperature (\( x \) in °C) and ice cream sales (\( y \) in hundreds). The GDC gives:
\( y = 3.2x + 12.5 \), \( r^2 = 0.94 \).
Example 2: Quadratic Regression
A ball is thrown upward. Height \( y \) (m) is recorded at times \( x \) (s):
\( (0, 1), (0.5, 4.8), (1, 7.1), (1.5, 7.9), (2, 7.2), (2.5, 4.9), (3, 1.2) \). A quadratic model is fitted: \( y = -4x^2 + 12x + 1 \).
Example 3: Exponential Regression
Bacteria population \( y \) (thousands) is measured every hour \( x \):
\( (0, 2), (1, 3.1), (2, 4.7), (3, 7.2), (4, 11), (5, 16.8) \).
Interpolation vs Extrapolation
Choosing the Right Model
Common Mistakes
Summary Comparison
| Linear | Quadratic | Exponential | |
|---|---|---|---|
| Equation | \( y = ax + b \) | \( y = ax^2 + bx + c \) | \( y = a \cdot b^x \) |
| Shape | Straight line | Parabola | J-curve |
| When to use | Constant rate of change | Turning point (max/min) | Growth or decay |
| Parameters | 2: \( a, b \) | 3: \( a, b, c \) | 2: \( a, b \) |
| Key feature | Slope \( a \) | Vertex | Base \( b \) |
Question 1 of 5
A regression model has \( r^2 = 0.85 \). What does this mean?
Question 2 of 5
A scatter plot shows data that increases, reaches a peak, then decreases. Which regression model is most appropriate?
Question 3 of 5
An exponential regression gives \( y = 5.0 \times 1.12^x \). If \( x \) represents years, what does the base 1.12 tell us?
Question 4 of 5
Data is collected for \( x \) values from 1 to 10. A student uses the regression equation to predict \( y \) when \( x = 50 \). This is an example of:
Question 5 of 5
Three models are fitted to the same data set. Their \( r^2 \) values are: Linear \( 0.78 \), Quadratic \( 0.96 \), Exponential \( 0.91 \). Which model should be chosen?