Polynomial regression
What if the relationship is a curve? Polynomial regression adds powers of a predictor (x, x², x³ …) to the model. It remains a linear model because it is linear in the coefficients.
Example: ŷ = 10 + 6x - 0.5x²: the highest value is at x = 6 with ŷ = 28.
Caution: High degrees fit chance: 8 points can be hit exactly with degree 7 (R² = 1) without the curve meaning anything. Outside the data they swing wildly.