
Curve Fitting using Reciprocal Terms in Linear Regression When you use polynomial terms, consider standardizing your continuous independent variables. In practice, cubic terms are very rare, and I’ve never seen quartic terms or higher. For example, quadratic terms model one bend while cubic terms model two. Take the number of bends in your curve and add one for the model order that you need. To determine the correct polynomial term to include, simply count the number of bends in the line. Polynomial terms are independent variables that you raise to a power, such as squared or cubed terms. The most common method is to include polynomial terms in the linear model. Curve Fitting using Polynomial Terms in Linear Regressionĭespite its name, you can fit curves using linear regression. You can download the CSV dataset for these examples: CurveFittingExample. We need to produce accurate predictions of the output for any specified input. Let’s assume that these data are from a physical process with very precise measurements.


To compare curve fitting methods, I’ll fit models to the curve in the fitted line plot above because it is not an easy fit.
