Polynomial fit with a single predictor variable uses one variable to predict another variable. Polynomial fit with a single predictor variable is a special case of multiple regression. If the observation data sets are {x i, y i}, where i = 0, 1, …, n – 1, Equation A defines the model for polynomial fit.
![]() |
(A) |
Comparing Equation A with the following equation
![]() |
| Source: General LS Linear Fit Theory |
shows that x ij = x i j, as shown by the following equations:
|
x
i
0 = x
i
0 = 1. x i 1 = x i. x i 2 = x i 2. … x ik – 1 = x i k – 1. |
(B) |
Because x ij = x i j, you can build the observation matrix H as shown by the following equation:
![]() |
(C) |
Instead of using x ij = x i j, you also can choose another function formula to fit the data sets {x i, y i}. In general, you can select x ij = f j(x i). Here, f j(x i) is the function model that you choose to fit the observation data. In polynomial fit, f j(x i) = x i j.
In general, you can build H as shown in the following equation:
![]() |
(D) |
The following equation defines the fit model:
| y i = b 0 f 0(x) + b 1 f 1(x) + … + b k – 1 f k – 1(x) | (E) |