keisoku

ab Exponential Regression (y=ab^x)

Fit y=ab^x to your (x,y) data by least squares. Get the coefficient a, base b, and R squared with a scatter plot and regression curve.

Input

Enter one (x, y) pair per line to fit the exponential model y = ab^x by least squares. Only positive y values are supported.

One pair per line, written as x,y with a comma or x y with a space.

Result

Regression equation

y = 2.006 × 1.503^x

Coefficient a

2.005848

Base b

1.503325

R squared

0.999836

Correlation

0.999918

Data points

5


Scatter plot and regression curve

10.245004x = 0, y = 2x = 1, y = 3x = 2, y = 4.6x = 3, y = 6.8x = 4, y = 10.2

Data points and predicted values

xObserved yPredicted y
022.006
133.015
24.64.533
36.86.815
410.210.245

How it works

  • The model is y = a × b^x, where both a and b are assumed positive. Taking the natural logarithm of both sides gives ln y = ln a + (ln b)×x, so Y = ln y becomes a linear regression on x (linearization).
  • The linearized form Y = p + q×x is solved by least squares, then converted back with a = exp(p) and b = exp(q). Because y is logged, enter positive y values only.
  • R squared and the correlation coefficient are computed on the linearized x and ln y. The closer R squared is to 1, the better the fit on the logarithmic scale.
  • The natural base form y = a × e^(kx) relates to this model by b = e^k. You can convert between them with k = ln b and b = e^k.
  • Enter one (x, y) pair per line, separated by a comma as x,y or by a space as x y. Blank lines are ignored.

Reviews

Tell us what you think of this calculator.

Write a review

  1. Home
  2. ab Exponential Regression (y=ab^x)