Sub topic 6
Building an Exponential Model from Two Data Points
Prerequisites and the model
Assume you can evaluate fractional exponents, convert between percentages and decimals, read graphs, and solve simple equations. This chapter uses the exponential model
\[ f(x)=a\cdot b^x \]
where:
- \(a\) is the initial value, or the value when \(x=0\).
- \(b\) is the growth factor for each increase of 1 in \(x\).
- \(x\) is the input, often time.
- \(f(x)\) is the modeled quantity.
When two data points are given, write them as \((x1,y1)\) and \((x2,y2)\). Both points must satisfy the same model:
\[ y1=a b^{x1} \]
\[ y2=a b^{x2} \]
The unknowns are \(a\) and \(b\).
Eliminate the initial value
Divide the second equation by the first:
\[ \frac{y2}{y1} = \frac{a b^{x2}}{a b^{x1}} = b^{x2-x1} \]
The factor \(a\) cancels. Solve for \(b\) by taking a root:
\[ b=\left(\frac{y2}{y1}\right)^{\frac{1}{x2-x1}} \]
Then substitute \(b\) and either data point into \(y=a b^x\):
\[ a=\frac{y1}{b^{x1}} \]
The order of the points does not matter as long as the same order is used in both differences.
| Quantity | Formula | Meaning |
|---|---|---|
| Growth factor | \(b=\left(\frac{y_2}{y_1}\right)^{1/(x_2-x_1)}\) | Change per one unit of \(x\) |
| Initial value | \(a=y_1/b^{x_1}\) | Model value at \(x=0\) |
| Exponential model | \(f(x)=a b^x\) | Predicted value for any \(x\) |
Worked example
Find an exponential model through \((1,6)\) and \((3,24)\).
First find the growth factor:
\[ b=\left(\frac{24}{6}\right)^{1/(3-1)} =4^{1/2}=2 \]
So the quantity doubles for every increase of 1 in \(x\).
Now find \(a\) using \((1,6)\):
\[ 6=a\cdot2^1 \]
\[ a=3 \]
The model is therefore
\[ \boxed{f(x)=3\cdot2^x} \]
Check both points:
\[ f(1)=3\cdot2=6 \]
\[ f(3)=3\cdot8=24 \]
The model also predicts \(f(0)=3\), even though \(x=0\) was not one of the given data points.
def fit_two_points(x1, y1, x2, y2):
b = (y2 / y1) ** (1 / (x2 - x1))
a = y1 / b ** x1
return a, b
a, b = fit_two_points(1, 6, 3, 24)
print(a, b) # 3.0 2.0
print(a * b ** 5) # 96.0Interpreting the result
The value of \(b\) determines the type of change:
- If \(b>1\), the model describes growth.
- If \(0<b<1\), the model describes decay.
- If \(b=1\), the model is constant.
- If \(b\leq0\), it is usually not an appropriate model for a positive quantity changing by a fixed percentage.
For example, if \(b=1.08\), the quantity grows by \(8\%\) per period. If \(b=0.92\), it decreases by \(8\%\) per period.
The time spacing matters. If a quantity changes from 10 to 40 over 4 years, then
\[ b=\left(\frac{40}{10}\right)^{1/4} =4^{1/4}\approx1.414 \]
The yearly growth factor is about \(1.414\), not \(4\). A factor of 4 applies to the entire four-year interval.
Diagram: fitting the model
Common errors
- Using \(y2-y1\) instead of the ratio \(y2/y1\). Exponential change uses multiplication, not a constant difference.
- Forgetting to divide the exponent by \(x2-x1\). This interval determines the per-unit factor.
- Treating \(b\) as the percentage itself. A factor of \(1.06\) means a \(6\%\) increase, while \(0.94\) means a \(6\%\) decrease.
- Assuming two points prove that the real process is exponential. They determine one possible exponential model, but additional data are needed to test the assumption.
Exercise
Find an exponential model through the points (2, 18) and (5, 486). Identify the growth factor and explain what it means.
Show answer
b = (486 / 18)^(1 / (5 - 2)) = 27^(1/3) = 3. Then a = 18 / 3^2 = 2, so f(x) = 2 · 3^x. The quantity is multiplied by 3 for each increase of 1 in x, which is 200% growth per period.