SECTION 1
Historical Context & Motivation
Humans have been collecting data and searching for patterns in it for centuries. Long before calculators or computers existed, scientists, astronomers, and economists plotted measurements on paper and tried to draw the simplest curve that captured the overall trend. The idea of fitting a linear model — a straight line — to a set of data points grew out of this quest to summarize messy, real-world observations with a clean mathematical relationship.
1637 • Descartes Introduces Coordinate Geometry
1805 • Legendre Publishes the Method of Least Squares
1885 • Galton's Regression to the Mean
1960s–Present • Computers Automate Line Fitting
The central question this lesson addresses is straightforward but powerful: when you collect a set of data, how do you decide that a straight line is the right type of equation to describe it, and once you make that decision, how do you actually build the equation? By the end of this lesson, you will be able to do both — construct a linear model and defend your choice.
SECTION 2
Core Principles & Definitions
Before you start building a model, you need a clear understanding of several foundational ideas. A mathematical model is an equation or function that approximates a real-world relationship. When that equation takes the form y = mx + b, we call it a linear model. The following cards summarize the core concepts you will rely on throughout this lesson.
Scatter Plot
Trend & Correlation
Line of Best Fit
Residuals
Justification
KEY TAKEAWAY
SECTION 3
Visual Explanation — From Scatter Plot to Line
The diagram below shows a scatter plot of data representing the relationship between hours spent studying and test scores. Notice how the data points cluster around a straight line, and the line of best fit passes through the middle of the cloud of points so that the vertical gaps (residuals) are as small as possible.
In the diagram, notice three important features. First, the data points form a roughly straight-line pattern — they do not curve upward or level off. Second, the line of best fit passes through the center of the point cloud, with some points above and some below. Third, the residuals (pink dashes) are short and do not show a curved pattern — they look randomly scattered. All three observations support choosing a linear model.
SECTION 4
Mathematical Framework
A linear model has the familiar slope-intercept form. The two parameters you need to determine are the slope (m) and the y-intercept (b). The slope tells you how much y changes for every one-unit increase in x, while the y-intercept is the predicted value of y when x equals zero.
SLOPE-INTERCEPT FORM
m = slope (rate of change), b = y-intercept (starting value)
SLOPE FROM TWO POINTS
(x₁, y₁) and (x₂, y₂) are two representative points on or near the line of best fit.
FINDING THE Y-INTERCEPT
After computing m, substitute one of the two points to solve for b.
When you use a graphing calculator or spreadsheet to run a linear regression, the technology uses the least-squares method to find the exact m and b that minimize the sum of the squared residuals. By hand, however, you can estimate the line by choosing two representative points on the scatter plot, calculating the slope, and then solving for b. Both approaches produce a usable model — the calculator version is simply more precise.
RESIDUAL
A positive residual means the point is above the line; a negative residual means it is below. Small, randomly distributed residuals indicate a good fit.
SECTION 5
Justifying the Choice of a Linear Model
Building the equation is only half the task. You also need to justify why a linear model is appropriate for your data. The diagram below illustrates three common scatter-plot shapes and shows which type of model each one suggests.
To justify a linear model, you should check three things. First, the scatter plot should show points that cluster along a straight path, not a curve. Second, the rate of change between successive data points should be roughly constant — the y-values should increase (or decrease) by about the same amount for each equal step in x. Third, a residual plot (a graph of the residuals versus x) should show points randomly scattered above and below zero with no obvious curve or fan shape.
- ✓ Scatter plot check: Do the points follow a straight-line path?
- ✓ Rate-of-change check: Are the differences in y roughly equal for equal intervals of x?
- ✓ Residual check: Are the residuals randomly scattered with no pattern?
SECTION 6
Worked Example — Building a Linear Model
A student measures the temperature (°F) of a cup of hot chocolate as it cools. She records the temperature every 5 minutes. Here is her data:
| Time (min) | Temperature (°F) |
|---|---|
| 0 | 180 |
| 5 | 168 |
| 10 | 155 |
| 15 | 144 |
| 20 | 132 |
| 25 | 121 |
Hot chocolate cooling data
Building a Linear Model for Cooling Data
- 1
Step 1 — Plot the Data and Assess the Shape
Plot the six data points on a scatter plot with time on the x-axis and temperature on the y-axis. The points appear to fall along a straight line sloping downward. This suggests a negative linear relationship. - 2
Step 2 — Check the Rate of Change
Calculate the change in temperature for each 5-minute interval: 180 → 168 (−12), 168 → 155 (−13), 155 → 144 (−11), 144 → 132 (−12), 132 → 121 (−11). The drops range from −11 to −13, which is roughly constant. This supports using a linear model.Average rate of change ≈ −11.8 °F per 5 min - 3
Step 3 — Choose Two Representative Points
Select two points that sit close to the overall trend. We'll use (0, 180) and (25, 121) because they span the full range of the data. - 4
Step 4 — Calculate the Slope
m = (y₂ − y₁) / (x₂ − x₁) = (121 − 180) / (25 − 0) = −59 / 25 = −2.36. The temperature drops about 2.36 °F per minute.m = −2.36 - 5
Step 5 — Solve for the Y-Intercept
Using the point (0, 180): b = y₁ − m × x₁ = 180 − (−2.36)(0) = 180.b = 180 - 6
Step 6 — Write the Model and Justify
The linear model is T = −2.36t + 180, where T is temperature in °F and t is time in minutes. Justification: the scatter plot shows a straight-line pattern, the rate of change is approximately constant (about −12 °F every 5 minutes), and the data does not curve. Therefore a linear model is appropriate over this time interval.T = −2.36t + 180
SECTION 7
Strengths and Limitations of Linear Models
Linear models are powerful, but they are not always the best choice. Understanding when a linear model works well — and when it breaks down — is essential for making good modeling decisions.
| Strengths | Limitations |
|---|---|
| Simple to calculate and interpret — slope has a clear real-world meaning. | Cannot capture curved patterns such as exponential growth or parabolic shapes. |
| Works well for short-range predictions near the observed data. | Extrapolating far beyond the data range often produces unreasonable predictions. |
| Easy to communicate to non-technical audiences; graphs are intuitive. | Sensitive to outliers — a single extreme data point can pull the line off-center. |
| Technology can quickly compute exact regression coefficients. | Assumes a constant rate of change, which many real-world phenomena do not exhibit over long periods. |
Comparing strengths and limitations of linear models
KEY TAKEAWAY
SECTION 8
Connection to Advanced Modeling
Linear models are your entry point into a much larger world of mathematical modeling. As you progress through high school and college math, you will encounter situations where the data clearly curves, and you will need more sophisticated tools. The table below previews how linear modeling connects to more advanced techniques.
| Feature | Linear Model (This Lesson) | Advanced Models (Future Courses) |
|---|---|---|
| Equation form | y = mx + b | y = ax² + bx + c (quadratic), y = abˣ (exponential), etc. |
| Rate of change | Constant — same change in y for each unit change in x | Variable — may increase, decrease, or oscillate |
| Fit method | Two-point method or linear regression (least squares) | Polynomial regression, logistic regression, sinusoidal regression |
| Goodness of fit | Residual analysis, visual inspection | R² value, adjusted R², analysis of variance (ANOVA) |
In Math 2 and beyond, you will learn to use the correlation coefficient (r) and the coefficient of determination (r²) to measure precisely how well a linear model fits the data. For now, your ability to inspect a scatter plot, evaluate the rate of change, and examine residuals gives you a solid qualitative toolkit for justifying your model choice.
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
A linear model uses the equation y = mx + b to describe data that follows a straight-line pattern. To build one, start by creating a scatter plot, then select two representative points (or use a calculator's linear regression feature) to find the slope and y-intercept. The slope tells you the constant rate of change, and the y-intercept is the predicted starting value.
To justify choosing a linear model, verify three things: the scatter plot shows a straight-line trend, the rate of change is approximately constant, and the residuals are small and randomly scattered. Remember that linear models have limitations — they work best within the observed data range and assume the trend continues unchanged. Always state the domain over which your model applies.