How to Use the Exponential Regression Calculator
This calculator allows you to fit an exponential regression model of the form ŷ = abˣ from paired X and Y data. To use the calculator:
- Enter the independent variable values in the X Values field.
- Enter the corresponding dependent variable values in the Y Values field. All Y values must be greater than 0.
- Select the number of decimal places you want to display.
- Click Calculate.
The calculator instantly returns the exponential regression equation, R², growth or decay rate, and the number of data pairs. It also shows a graph of the observed data and fitted exponential curve together with a step-by-step solution showing how the equation was obtained.
The calculator also allows you to make predictions using the fitted exponential model with a click of a button. Just open Predict Y from X, enter the value, and click Predict to get the predicted value.
Tip. You can enter the values manually or copy-paste two columns directly from Excel, Google Sheets, or text documents. For manual data entry, make sure to separate the values either using commas, spaces, tabs, or line breaks.
What Is Exponential Regression?
Exponential regression is a statistical model used to model a relationship in which Y changes by approximately the same factor or percentage as X increases.
The exponential regression model is: ŷ = abx, where ŷ is the predicted value of Y, x is the independent variable, a is the predicted value of Y when x = 0, and b is the growth or decay factor.
The value of b tells you the direction of the relationship. When b > 1, the model represents exponential growth. However, when 0 < b < 1, it represents exponential decay.
For example, suppose the fitted equation is: ŷ = 5(1.20)ˣ. The value b = 1.20 means the predicted Y value is multiplied by 1.20 whenever X increases by one unit. In percentage terms, this is a 20% increase per unit of X.
This differs from linear regression, where Y changes by approximately the same amount for each one-unit increase in X. If your data follows an approximately straight pattern, use the linear regression calculator instead.
Exponential Regression Formula
The general exponential regression equation is ŷ = abx. To estimate a and b using ordinary least squares, we first transform the exponential equation into a linear equation.
Starting with y = abx, take the natural logarithm of both sides. This gives .
Now let:
- Y′ = ln(y)
- A = ln(a)
- B = ln(b)
The equation becomes Y’=A+Bx. This is an ordinary straight-line regression equation. We can therefore find A and B using the standard least-squares formulas and then convert them back to a and b.
Once A and B are known, the final values of a and b are then substituted into ŷ = abˣ.
How to Find Exponential Regression by Hand
To fit an exponential regression by hand:
- Transform the exponential model to a linear model.
- Fit a linear regression model to x and ln(y).
- Convert the linear slope and intercept back to exponential form.
- Write the fitted exponential regression equation
Example
Suppose we have the following paired data:
| x | y |
|---|---|
| 0 | 4 |
| 1 | 6 |
| 2 | 9 |
| 3 | 14 |
| 4 | 21 |
Find the exponential regression equation.
Solution
To fit the exponential regression model for the above data, follow these steps:
Step 1: Transform the Exponential Model to a Linear Model
The exponential regression model is: ŷ = abx.
Taking the natural logarithm of both sides, the equation becomes: ln(y) = ln(a) + xln(b). This is now a linear model, where ln(y) is the dependent variable and x is the independent variable.
Comparing it with the usual linear model, ŷ = b₀ + b₁x, we can see that:
- b₀ = ln(a)
- b₁ = ln(b)
Therefore, we can fit a linear regression model to x and ln(y), then convert the slope and intercept back to the exponential form.
Step 2: Fit a Linear Regression Model to x and ln(y)
For a linear model of the form ŷ = b₀ + b₁x, the slope formula is: and the intercept is . You can see how these formulas are applied directly to X-Y data in our line of best fit calculator.
For exponential regression, the transformed equation is ln(y) = ln(a) + xln(b). Since ln(y) takes the place of y, the slope formula becomes and the intercept formula becomes .
Based on these new slope and intercept equations, we need to find:
- n
- Σx
- Σln(y)
- Σx²
- Σ[xln(y)]
We can compute the values using the following table.
| x | y | ln(y) | x² | xln(y) |
|---|---|---|---|---|
| 0 | 4 | 1.3863 | 0 | 0 |
| 1 | 6 | 1.7918 | 1 | 1.7918 |
| 2 | 9 | 2.1972 | 4 | 4.3944 |
| 3 | 14 | 2.6391 | 9 | 7.9172 |
| 4 | 21 | 3.0445 | 16 | 12.1781 |
| Σx = 10 | Σy = 54 | Σln(y) = 11.0589 | Σx² = 30 | Σ[xln(y)] = 26.2815 |
From the data, we also know that there are 5 pairs of X and Y. Hence, n = 5. Now we can calculate the slope (b1) and intercept of the model as follows:
i) Calculate the Slope, b1
Remember, the slope formula is:
Substituting the values into the formula:
= 20.8185 / 50
= 0.4164
Therefore, b₁ = 0.4164
ii) Calculate the intercept, b0
Remember the intercept formula is:
From the formula, we need to find the mean of x and the ln(y).
By definition, the mean of x, x̄ = Σx / n
= 10 / 5
= 2
Using the same analogy, the mean of ln(y) is: mean[ln(y)] = Σln(y) / n
= 11.0589 / 5
= 2.2118
Substituting these values into the intercept formula, we get:
b₀ = 2.2118 − (0.4164)(2)
= 1.3790
Therefore, b₀ = 1.3790.
This implies that the fitted linear regression equation for the transformed data is: ln(ŷ) = 1.3790 + 0.4164x
Step 3: Convert the Linear Slope and Intercept Back to Exponential Form
From Step 1, b₀ = ln(a) and b₁ = ln(b). Therefore, to convert the intercept back to a, we exponentiate both sides. Hence, a = eᵇ⁰
But from Step 2 (ii), b₀ = 1.3790.
Therefore, a = e1.3790
= 3.9710
Hence, a = 3.9710
Similarly, to convert the slope back to b, we exponentiate both sides. Hence, b = eᵇ¹
From step 2 (i), b₁ = 0.4164
Therefore, b = e0.4164
= 1.5165
Hence, b = 1.5165
Step 4: Write the Fitted Exponential Regression Equation
Recall, the exponential regression model is: ŷ = abˣ. Substituting a = 3.9710 and b = 1.5165, we get: ŷ = 3.9710(1.5165)x.
Therefore, the fitted exponential regression equation is: ŷ = 3.9710(1.5165)x.
How to Interpret the Exponential Regression Equation
Consider the equation from the example: ŷ = 3.9710(1.5165)x. The value a = 3.9710 is the predicted value of Y when x = 0.
On the other hand, the value b = 1.5165 is the growth factor. This means that for every one-unit increase in X, the predicted Y value is multiplied by approximately 1.5165.
You can also express this as a percentage growth rate using the formula:
Therefore, Growth rate = (1.5165 − 1) × 100%
= 51.65%
This implies that the model predicts that Y increases by approximately 51.65% for every one-unit increase in X.
For exponential decay, b lies between 0 and 1. For example, if b = 0.85, the decay rate is: (1 − 0.85) × 100% = 15%. This means the predicted Y value decreases by approximately 15% for every one-unit increase in X.
How to Tell If Exponential Regression Is Appropriate
A useful clue is the way Y changes as X increases. If successive Y values have approximately the same difference, a linear model may be more appropriate. However, if successive Y values have approximately the same ratio, an exponential model may be more appropriate.
You should also inspect the data visually. Exponential growth curves upward more rapidly as X increases, while exponential decay usually drops quickly before gradually leveling off. You can use the scatter plot maker to inspect the relationship before deciding which regression model to use.
If the data bends and changes direction, the quadratic regression calculator may be more suitable.
Using the Equation to Predict Y
After finding the exponential regression equation, you can predict Y by substituting a value of X.
For instance, using ŷ = 3.9710(1.5165)ˣ, we can predict the value of Y when x = 5 as follows:
ŷ = 3.9710(1.5165)⁵
= 31.85
You can also make the prediction directly using the Predict Y from X option in the calculator.
Frequently Asked Questions
An exponential regression calculator finds the exponential equation that best fits paired X and Y data. This calculator fits the model ŷ = abˣ by transforming Y with the natural logarithm and applying ordinary least-squares regression to x and ln(y).
The general form is ŷ = abˣ, where a is the predicted Y value when x = 0, while b is the growth or decay factor.
Take ln(y) to transform the exponential model into the linear model Y′ = A + Bx. Use ordinary least squares to find A and B, then calculate a = eᴬ and b = eᴮ. Finally, substitute a and b into ŷ = abˣ.
Look at b. When b > 1, the model represents exponential growth. However, if 0 < b < 1, it represents exponential decay.
The method used to fit this model requires ln(y), but the natural logarithm is only defined for positive real values. Therefore, every Y value must be greater than 0.
