Evaluating numerical algorithm
When data exhibits non-linear curvature, Quadratic Polynomial Regression fits a 2nd-degree parabola by constructing a 3×3 system of normal equations to minimize squared residual errors!
Fit a second-degree parabola to the 5 points:
| x | 0 | 1 | 2 | 3 | 4 |
|---|---|---|---|---|---|
| y | 1.0 | 1.8 | 3.3 | 6.0 | 9.5 |
| x | y | x² | x³ | x⁴ | x·y | x²·y |
|---|---|---|---|---|---|---|
| 0 | 1.0 | 0 | 0 | 0 | 0.0 | 0.0 |
| 1 | 1.8 | 1 | 1 | 1 | 1.8 | 1.8 |
| 2 | 3.3 | 4 | 8 | 16 | 6.6 | 13.2 |
| 3 | 6.0 | 9 | 27 | 81 | 18.0 | 54.0 |
| 4 | 9.5 | 16 | 64 | 256 | 38.0 | 152.0 |
| Sum = 10 | Sum = 21.6 | Sum = 30 | Sum = 100 | Sum = 354 | Sum = 64.4 | Sum = 221.0 |
Construct system with :
Using quadratic least squares regression, the parabolic model of best fit is y = 1.0229 + 0.2343x + 0.4714x²!