Sub topic 12
When Exponential Models Stop Working
This chapter assumes you can fit and use a model of the form f(x) = a·b^x. It also assumes you know what a growth factor b means and can solve for time with logarithms. Earlier chapters showed that exponential models fit many situations. Here you learn how to tell when one has stopped fitting, and what to use or ask instead.
A model is only valid on a domain
Every exponential model carries an assumption: the quantity changes by the same percentage every period, forever. Real systems satisfy that only for a while and only within a range. Outside that range the formula still returns numbers, but the numbers no longer describe anything.
An example shows how far the formula can drift from reality. A bacterium divides every 20 minutes, so the model is N = 2^(t/20) with t in minutes. After 48 hours there have been 144 doublings. The model gives 2^144, about 2.2 × 10^43 cells. At roughly 10^-12 grams per cell, that is about 2 × 10^31 grams, which is thousands of times the mass of Earth. The arithmetic is correct and the prediction is impossible.
Exponential models usually break in one of five ways:
- Growth runs into a limit (food, space, customers, money).
- The percent rate itself changes over time.
- The quantity decays toward a floor that is not zero.
- The quantity is discrete, and the model predicts fractions of a thing.
- The model is extrapolated far beyond the data it was fitted to.
Failure 1: growth that hits a ceiling
Populations, infections, and product adoption often start out exponential. Then the supply of resources or susceptible people shrinks, and the growth rate falls. The curve bends over and levels off at a carrying capacity, written K. This shape is an S-curve, and the standard model for it is the logistic function.
One common form of the logistic model is:
N(t) = K / (1 + ((K − N0) / N0) · b^(−t))
Here N0 is the starting amount and b is the growth factor while the quantity is still small. Early on, b^(−t) is large, the denominator is large, and N grows by about a factor of b each period. Later, b^(−t) approaches 0 and N approaches K.
def exponential(n0, b, t):
return n0 * b ** t
def logistic(n0, k, b, t):
# k is the carrying capacity; b is the early growth factor
return k / (1 + (k - n0) / n0 * b ** (-t))
for t in range(0, 21, 5):
print(t, round(exponential(10, 1.5, t)), round(logistic(10, 1000, 1.5, t)))
# 0 10 10
# 5 76 71
# 10 577 368
# 15 4379 816
# 20 33253 971At t = 5 the two models nearly agree (76 and 71), so early data cannot tell them apart. By t = 20 the exponential model predicts 33,253 while the logistic model levels off just under K = 1000. If you fit only the first few data points, you cannot tell which model is right.
Failure 2: the rate changes
Exponential change means the ratio between consecutive values is constant. You can test this directly on data. Divide each value by the one before it. If the ratios stay near one number, an exponential model is reasonable. If they drift steadily, the growth factor is changing.
def ratios(ys):
return [round(ys[i + 1] / ys[i], 3) for i in range(len(ys) - 1)]
data = [10, 15, 22, 30, 37, 43]
print(ratios(data)) # [1.5, 1.467, 1.364, 1.233, 1.162]The ratios fall from 1.5 to 1.16. A single exponential fitted to all six points would overshoot the end of the data or undershoot the start. Look at the differences too: 5, 7, 8, 7, 6. They rise and then fall, which suggests an S-curve rather than a straight exponential.
Rate changes also come from outside the system. A savings account may change its interest rate. A virus may spread more slowly after people change their behavior. In those cases a piecewise model is more honest. It uses one exponential for each period where the rate is constant, and it restarts the model at each change using the last value as the new a.
Failure 3: decay toward a floor that isn't zero
The basic decay model a·b^x with 0 < b < 1 approaches 0. The x-axis is its horizontal asymptote. Many real decaying quantities approach some other value instead.
A hot cup of coffee cools toward room temperature, not toward 0 °C. Medication in the blood may settle at a baseline level. If you model the raw temperature as a·b^t, the model eventually predicts a temperature below the room's, which is physically wrong.
The fix is to apply the exponential to the difference from the floor:
T(t) = Tfloor + (T0 − Tfloor) · b^t
This is the same exponential model, shifted vertically. The asymptote moves from y = 0 to y = T_floor.
def naive_cooling(t0, b, t):
return t0 * b ** t
def shifted_cooling(t0, floor, b, t):
return floor + (t0 - floor) * b ** t
# Coffee at 90 degrees C in a 20 degree C room, losing 10% of the gap per minute
print(round(naive_cooling(90, 0.9, 10), 1)) # 31.4
print(round(shifted_cooling(90, 20, 0.9, 10), 1)) # 44.4
print(round(naive_cooling(90, 0.9, 60), 1)) # 0.1
print(round(shifted_cooling(90, 20, 0.9, 60), 1)) # 20.1After an hour the naive model says the coffee is at 0.1 °C, which is colder than the room. The shifted model correctly settles near 20 °C.
Failure 4: discrete quantities
An exponential function is continuous. It gives a value for every real x, including fractions of a unit. Real counts are whole numbers.
Suppose 100 radioactive atoms have a half-life of 8 days. The model gives N = 100 · 0.5^(t/8). At t = 60 days it returns 100 · 0.5^7.5, about 0.55 atoms. You cannot have 0.55 of an atom. The formula describes the average over many identical samples, and it works well when the count is huge. When the count is small, the actual number of atoms left is random, and the model only describes its expected value.
This matters beyond physics. A small population of 12 animals does not shrink smoothly by 8% per year. Chance events dominate, and a single bad year can end it. Treat a smooth exponential prediction as trustworthy only when the counts are large enough that individual events average out.
Failure 5: extrapolation and sensitivity
Interpolation means predicting inside the range of your data. Extrapolation means predicting outside it. Exponential models are much more fragile when extrapolating, because a small error in b is multiplied by itself once per period.
for rate in (0.05, 0.06):
b = 1 + rate
print(rate, round(b ** 10, 2), round(b ** 100, 1))
# 0.05 1.63 131.5
# 0.06 1.79 339.3A one-point difference in the rate changes the 10-period result from 1.63 to 1.79, about 10%. After 100 periods the results are 131.5 and 339.3, a gap of about 2.6 times. If your estimate of b came from noisy data and is uncertain by one percentage point, a long-range prediction is uncertain by a factor of several.
Fitting from two data points, as in the earlier chapter, makes this worse. The fitted b uses only two measurements, so any error in either one goes straight into the exponent. When you have more data, check the fit against all of it. A quick check is to take the logarithm of each y value and see whether the points fall near a straight line. If they curve, the exponential assumption is failing.
Quick reference: spotting a failing model
| Symptom | Likely cause | What to do |
|---|---|---|
| Successive ratios drift downward | A limit or saturation | Try a logistic model |
| Prediction goes below a known minimum | Floor is not zero | Shift the model by the floor |
| Fractional people, animals, or atoms | Small discrete counts | Use the model only for large counts |
| Prediction far beyond the data | Extrapolation error | Report a range, not one number |
| Rate changed at a known date | Different regimes | Fit a separate piece for each regime |
| Two models fit early data equally well | Not enough data to separate them | Collect later data before choosing |
A practical checklist
Before you trust an exponential prediction, ask these questions in order:
- Is there a physical, financial, or social limit that the quantity must stay under? If so, estimate it and compare it to the prediction.
- Do the successive ratios stay roughly constant over the data?
- Does the quantity decay toward zero, or toward another value?
- Are the counts large enough that fractions make sense?
- How far past the data does the prediction reach, and how much does the answer change if b moves by one percentage point?
If the answer to any of these is a problem, the exponential model is still a useful first approximation. It should not be the final claim.
Exercise
A company's monthly users are 5, 10, 20, 38, 60. Compute the ratio of each month to the previous one. Does a single exponential model describe all five values, and what does the pattern suggest?
Show answer
The ratios are 10/5 = 2, 20/10 = 2, 38/20 = 1.9, 60/38 ≈ 1.58. The first two months double, but the ratio then falls. A single constant b does not fit all five values, and the falling ratios suggest growth that is slowing toward a limit, so a logistic model is worth trying.
Exercise
Tea at 80 °C sits in a 20 °C room. Each minute the gap between the tea and the room shrinks to 80% of its previous size. Write the model and find the temperature after 5 minutes. Then explain why 80·0.8^t would be a wrong model.
Show answer
The model is T(t) = 20 + 60·0.8^t, because the starting gap is 80 − 20 = 60. At t = 5, 0.8^5 = 0.32768, so T = 20 + 60·0.32768 ≈ 39.7 °C. The model 80·0.8^t decays toward 0 °C, so it would predict that the tea ends up colder than the room, which cannot happen.
Exercise
Two analysts fit the same growing data. One finds a growth rate of 5% per period and the other finds 6%. By about what factor do their predictions differ after 100 periods, and what does that tell you about long-range forecasts?
Show answer
1.05^100 ≈ 131.5 and 1.06^100 ≈ 339.3, so the predictions differ by a factor of about 2.6. A one-point uncertainty in the rate becomes a large uncertainty after many periods, so long-range exponential forecasts should be given as a range and not as a single number.