A topic in the Open Knowledge Graph — a free, open map of 15,290 topics and the order to learn them in.

Polynomial Regression and Nonlinear Functional Forms

College Depth 111 in the knowledge graph ☐ I know this ☆ Set as goal
17topics build on this
577prerequisites beneath it
See this on the map →
Interpreting Regression CoefficientsMultiple Regression→→Interpretation and Marginal Effects in Nonlinear ModelsLeast Squares Regression: Fundamentals and Derivation+1 more
regression nonlinear functional-forms

Core Idea

Polynomial terms (x², x³) extend linear regression to capture nonlinear relationships where the slope changes across values of the regressor. This allows U-shaped, inverted-U, or more complex patterns without requiring a fully nonlinear model.

How It's Best Learned

Fit polynomials of increasing degree and compare using scatter plots and statistical tests. Use domain knowledge and data visualization to choose the degree rather than maximizing R².

Common Misconceptions

Higher-degree polynomials always fit the data better in-sample but often overfit and perform poorly out-of-sample. Interpretation of raw coefficients becomes difficult; focus on marginal effects or predicted values instead.

Explainer

You know from multiple regression that OLS fits the best linear approximation to a relationship between variables. But "linear" in OLS means linear in the parameters — not necessarily linear in the variables themselves. When you add x², x³, or other transformations of x as new regressors, the model remains linear in the coefficients and OLS estimation proceeds exactly as before. What changes is the shape of the fitted relationship in the original (x, y) space. This is the key insight behind polynomial regression: you extend the reach of OLS to capture curves, humps, and U-shapes without abandoning the linear regression toolkit.

The simplest case is a quadratic model: y = β₀ + β₁x + β₂x² + ε. If β₂ > 0, the fitted curve is U-shaped; if β₂ < 0, it's an inverted U. A classic example is the relationship between age and earnings — earnings rise with experience but eventually plateau or decline. A linear regression would miss this inverted-U pattern entirely, while a quadratic captures it well. The coefficients β₁ and β₂ cannot be interpreted in isolation; what matters is the marginal effect, ∂y/∂x = β₁ + 2β₂x, which varies with x. To report the effect of a one-unit change in x, you must evaluate this derivative at a specific value — typically the mean of x.

Choosing the degree of the polynomial requires balancing fit against overfitting. Every additional power of x you add will reduce in-sample residuals and increase R². This is mechanical — a polynomial of degree n-1 can perfectly fit n data points. But a high-degree polynomial will chase noise, fitting wiggles in the data that are not genuine features of the underlying relationship. The curve will look unreasonable and predict poorly out of sample. Useful approaches: use scatter plots and domain knowledge to motivate the degree first; test whether additional terms are statistically significant; evaluate out-of-sample prediction via cross-validation or a held-out test set.

A practical caution concerns extrapolation. Polynomial curves can behave wildly outside the range of the data — a cubic that fits well between x = 1 and x = 10 may produce bizarre predictions at x = 20. This makes polynomial regression particularly unreliable for forecasting beyond the observed range, in contrast to theory-based nonlinear models. Within their range and at an appropriate degree, however, polynomials are a flexible and practical tool for capturing nonlinearity while retaining the interpretability and estimation simplicity of OLS. The next steps — nonlinear models and specification tests — will give you more formal frameworks for diagnosing whether a polynomial approximation is adequate.

Practice Questions 5 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Addition Within 10 → Number Bonds to 10 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Comparing and Ordering Integers → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Dividing Integers → Unit Rates → Proportions → Percent Concept → Converting Between Fractions, Decimals, and Percents → Operations with Rational Numbers → Two-Step Equations → Solving Multi-Step Equations → Equations with Variables on Both Sides → Angle Pairs: Complementary, Supplementary, and Vertical → Parallel Lines and Transversals → Corresponding Angles → Alternate Interior Angles → Triangle Angle Sum Theorem → Exterior Angle Theorem → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Independence of Events → Sampling Distributions → Standard Error of Estimators → Hypothesis Testing: Framework and Logic → P-values and Statistical Significance → Effect Size and Practical Significance → Hypothesis Testing: Framework and Logic → Z-Tests and T-Tests for Means → One-Sample Z-Test for Means → One-Sample and Two-Sample T-Tests → Inference in Linear Regression → Prediction Intervals in Regression → Linear Regression Basics → Residuals and Goodness of Fit (R²) → Simple (Bivariate) OLS Regression → Classical OLS Assumptions (Gauss-Markov) → Multiple Regression → Interpreting Regression Coefficients → Polynomial Regression and Nonlinear Functional Forms

Longest path: 112 steps · 577 total prerequisite topics

Prerequisites (2)

Leads To (3)