Courses › Statistics and Econometrics
Functional form: logs, polynomials, and interactions
Log specifications and elasticities, quadratics and turning points, dummy variables, and interactions that let effects differ across groups.
Straight lines are a starting point, not a law of nature. The extra earnings from a year of experience are larger early in a career than late. A $100 price change means something very different for a coffee than for a car. Men and women, or certified and uncertified workers, may be paid differently, and the gap may change with experience.
Linear regression handles all of this once the variables are transformed or combined. This module covers polynomials and turning points, the three log specifications and how to read each one, dummy variables for categories, interactions that let effects differ across groups, and how to choose and test a functional form.
By the end of this module you will be able to
- Fit and interpret a quadratic, including the marginal effect and the turning point.
- Interpret coefficients in log-linear, linear-log and log-log regressions, including elasticities.
- Use dummy variables for binary and multi-category variables and read coefficients relative to a base category.
- Interpret interactions between a dummy and a continuous variable, between two dummies, and between two continuous variables.
- Choose between functional forms using economics, residual plots and tests.
What this module covers
- Curves: polynomials
- Logarithms
- Dummy variables
- Interactions
- Choosing a functional form
- Problem set with step-by-step solutions
- Module quiz
Lesson 10.1 Free lesson
Curves: polynomials
“Linear regression” means linear in the coefficients, not necessarily in X. You can include X² (or X³) as an extra regressor and OLS works exactly as before. The model then traces a curve:
The effect of X is no longer a single number: it depends on where you start. If β₂ < 0 the curve rises at a decreasing rate and eventually peaks at X* = −β₁/(2β₂); if β₂ > 0 it bends upward.
Worked example: Wages over a career
A regression of hourly wages on age gives Wage = 5 + 1.20 × Age − 0.012 × Age².
At age 25, one more year adds about 1.20 − 2(0.012)(25) = 1.20 − 0.60 = $0.60 an hour. At age 40 it adds 1.20 − 0.96 = $0.24.
The curve peaks at Age* = −1.20/(2 × −0.012) = 50, where the predicted wage is 5 + 60 − 30 = $35.
Exact changes: from 25 to 26 the predicted wage rises from 27.50 to 28.09, a gain of $0.59, close to the approximation.
Is the curve needed?
Test H₀: β₂ = 0 with an ordinary t-test. If you add both X² and X³, test them jointly with an F-test (Module 9). A residual plot from the straight-line regression that shows a systematic bend is a strong hint that a curve is needed.
Don’t over-read turning points. A peak estimated at age 50 from data where most workers are between 20 and 45 is an extrapolation of the curve’s shape, not something the data directly show. Higher-order polynomials are flexible inside the data and often wild at its edges.
Common mistake
Reading β₁ alone as “the effect of X” in a quadratic. With X² in the model, β₁ is the effect only at X = 0, which may be far outside the data (age 0). Report the effect at meaningful values of X.
Key ideas
- Adding X² lets the effect of X change with X; OLS still applies.
- Marginal effect: β₁ + 2β₂X; turning point: X* = −β₁/(2β₂).
- Test the curve with a t-test on β₂ (or an F-test for several polynomial terms).
- Report effects at meaningful X values and be wary of turning points outside the data.
Practice questions: Functional form: logs, polynomials, and interactions
Try these, then open each answer to check your work.
- 1.In Y = 10 + 6X − 0.5X², the marginal effect of X at X = 4 is:
- 2
- 4
- 6
- 10
Show answer
Answer: A. 6 − 2(0.5)(4) = 2.
- 2.In the same regression, the turning point is at X =
- 3
- 6
- 12
- 24
Show answer
Answer: B. −6/(2 × −0.5) = 6.
- 3.In ln(Y) = 2 + 0.04X, a one-unit rise in X is associated with about:
- A 0.04% rise in Y
- A 0.04-unit rise in Y
- A 4-unit rise in Y
- A 4% rise in Y
Show answer
Answer: D. Log-linear: 100 × 0.04 = 4%.
Problems with step-by-step solutions
- 4.A regression gives Sales = 500 + 40 × Temp − 0.5 × Temp² (Temp in °C). Find the marginal effect of temperature at 10°C and at 30°C, and the turning point.
Show step-by-step solution
- Marginal effect: 40 − 2(0.5)Temp = 40 − Temp.
- At 10°C: 30 more sales per degree. At 30°C: 10 per degree.
- Turning point: 40/(2 × 0.5) = 40°C. Above that the curve predicts falling sales (if the data even reach it).
- 5.In Problem 1, the SE of the Temp² coefficient is 0.15. Is the curvature significant?
Show step-by-step solution
- t = −0.5/0.15 = −3.33, |t| > 1.96.
- Reject H₀: β₂ = 0. The data support diminishing effects of temperature.
Get the full module
The complete module adds every lesson, interactive graphs, a full problem set with step-by-step solutions, and a quiz. The academy opens in January 2027: join the waitlist for the founding price (lifetime access for $179).
Join the waitlist Try a full module free
More practice: free practice questions for this course.