Skip to main content

Fit y = a b^x (growth data)

Short answer

Linearize to log y = log a + x log b. Solving the normal equations yields log a = -0.2811, log b = 0.3555, so a = 0.5235, b = 2.2674. The fitted curve is y = 0.5235(2.2674)^x.

Find a curve of the form y = ab^x that fits the following set of observations using least square method.

x12345
y1.22.56.2515.7528.65

Take logarithms (base 10): y = a·bˣ → log y = log a + x·log b. Put Y = log y, A = log a, B = log b, so Y = A + Bx is a straight line in x.

xyY = log yx²xY
11.20.07921.00000.0792
22.50.39794.00000.7959
36.250.79599.00002.3876
415.751.197316.00004.7891
528.651.457125.00007.2856
Σx = 153.927455.000015.3374

Normal equations

ΣY = n·A + B·Σx      →  3.9274 = 5A + 15.0000B
ΣxY = A·Σx + B·Σx²   →  15.3374 = 15.0000A + 55.0000B

Solving: B = (nΣxY − ΣxΣY)/(nΣx² − (Σx)²) = 0.3555, A = (ΣY − BΣx)/n = -0.2811.

a = 10ᴬ = 0.5235, b = 10ᴮ = 2.2674.

Answer: y = 0.5235 · (2.2674)ˣ (growth curve, b > 1; at x = 5 it gives 31.37 against 28.65).

✓ Answer checked by Claude Opus 5.5 (high effort)

All Numerical Method chapter 4 questions →