Evaluating numerical algorithm
Exponential Curve Fitting transforms non-linear growth or decay relationship into a straight line by taking natural logarithms, allowing normal equations to find optimal growth rates and initial scale !
Fit an exponential curve to the 4 observation points:
| x | 1 | 2 | 3 | 4 |
|---|---|---|---|---|
| y | 1.6 | 4.5 | 13.8 | 40.2 |
| x | y | Y' = ln(y) | x² | x · Y' |
|---|---|---|---|---|
| 1 | 1.6 | 0.47000 | 1 | 0.47000 |
| 2 | 4.5 | 1.50408 | 4 | 3.00816 |
| 3 | 13.8 | 2.62467 | 9 | 7.87401 |
| 4 | 40.2 | 3.69387 | 16 | 14.77548 |
| Sum = 10 | - | Sum = 8.29262 | Sum = 30 | Sum = 26.12765 |
Using logarithmic least squares regression, the best fitting exponential growth curve is y ≈ 0.5353 · e^(1.0792x)!