AP® Precalculus · Unit 1 · Topic 1.13
Choosing a Function Model
You choose a polynomial model by checking which order of differences in the data becomes constant: that order is the degree. The simplest model that fits well usually beats a complicated one that hits every point exactly.
Every polynomial family leaves a fingerprint in evenly spaced data. Take first differences between consecutive outputs. If those are constant, the data is linear, degree 1. If not, take differences of the differences, the second differences. Constant second differences mean quadratic, degree 2. Constant third differences mean cubic, and so on. This works because the nth difference of a degree n polynomial strips away everything but the leading term's effect, leaving a constant tied to the leading coefficient.
This matters because a function model should capture the pattern driving the data, not just memorize the points you happened to measure. With only a handful of points, you can always find some high-degree polynomial that threads through every single one exactly. That does not mean the data came from a degree 6 process. Real measurements carry noise, and a model with too many degrees of freedom bends itself to fit that noise instead of the trend. A lower-degree model that comes close to most points, without hitting every one, is often the more honest description of what is really going on.
This is the payoff of the whole unit: once you know the degree, you know the end behavior, the possible number of turning points, and how the leading term will dominate far from the data. Choosing the model is choosing which of those behaviors you are betting on when you extrapolate beyond the table.
Key terms
- nth differences
- The values obtained by repeatedly subtracting consecutive outputs n times for evenly spaced inputs.
- degree
- The highest power of x in a polynomial, which determines how many rounds of differencing become constant.
- overfitting
- Building a model so flexible it matches noise in the data instead of the true underlying pattern.
- leading coefficient
- The number multiplying the highest-degree term, which sets the constant value the nth differences settle to.
Watch it explained
- How it worksHow do constant nth differences in a data table point you toward a degree n polynomial?
- Worked exampleShow me which model fits the data 3, 7, 13, 21, 31 and why it comes out quadratic.
- Going furtherWhat happens when you fit a degree 6 polynomial to only seven data points?
- Common mistakeWhy isn't the model that passes through every single point always the best model?
Check yourself
End of topic.