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.
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.
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
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.
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.
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.
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?
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 |
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. |
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.
Practice Problems
Lesson 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.