Linear Trend Equation
Trend Projection
When demand changes steadily over time, you can summarize its direction with a straight line and extend that line to future periods. Trend projection uses a fitted relationship between time and demand to estimate future demand levels. In operations planning, it provides a numerical starting point for decisions about purchasing or capacity. Its usefulness depends on whether the historical direction remains a reasonable guide to the future.
The straight-line model
The governing equation is
Here, y^t is the fitted or forecast demand for period t, a is the intercept, and b is the slope. The slope is the change in fitted demand for each one-period increase in the time index. Use equally spaced periods, such as weeks, months, or quarters, and keep the demand measure consistent.
For monthly demand measured in units, a slope of 4.6 means the fitted monthly demand level increases by 4.6 units from one month to the next. It does not mean demand increases by 4.6%. The intercept is the fitted demand at t=0; it need not equal any observed demand value.
The observations can fluctuate around the line. A straight trend describes their overall direction without requiring every observed change to be identical.
Fit the line by least squares
For n historical observations, the least-squares coefficients are
The sums include all observations used to fit the model. The symbols tˉ and yˉ represent their mean time index and mean demand. You need at least two distinct time values to calculate a slope.
Least squares chooses the line that minimizes the sum of squared residuals:
A residual is observed demand minus fitted demand. Squaring prevents positive and negative residuals from cancelling and gives larger misses more weight. The fitted line generally differs from a line drawn through just the first and last observations because it uses the full dataset.
Keep the time origin consistent
Before fitting or using the equation, state which period receives each time index. The same calendar period can have different index values under different coding systems.
Time coding | First observed period | Following period | Meaning of the intercept |
|---|---|---|---|
Start at zero | t=0 | t=1 | Fitted level in the first observed period |
Start at one | t=1 | t=2 | Fitted level one period before the first observation |
Shifting the origin changes the intercept but preserves the slope when each time step still represents the same interval. For example, if a new index is u=t−1, then t=u+1, so
Both equations predict the same demand for the same calendar period. Only its numerical label has changed.
Decide what the projection supports
To forecast, substitute the future period's index into the fitted equation. Extending a historical relationship beyond its observed range is extrapolation. A longer extension relies on the historical direction continuing for more periods; the straight-line equation itself does not quantify the uncertainty of that assumption.
Check whether known changes, such as losing a customer or changing a product, make the historical relationship less relevant. A projected demand level is an estimate, not a guarantee or an automatic capacity target. The equation also does not ensure physically sensible values indefinitely: a downward trend can eventually predict negative demand.
What to remember
- Use y^t=a+bt with a clearly defined time index.
- Interpret b as an absolute change per period and a as the fitted level at zero.
- Least squares minimizes squared historical residuals.
- Extend the trend only with attention to whether its historical pattern remains relevant.
Example: Projecting monthly filter shipments
A maintenance supplier records the following monthly shipments of replacement filters. Each time-index step represents one month. For this planning calculation, assume the historical linear direction continues through month 8. Retain unrounded coefficients and report projected shipments to one decimal place.
Month index, t | Filters shipped, y |
|---|---|
1 | 108 |
2 | 115 |
3 | 119 |
4 | 128 |
5 | 130 |
a) Fit the least-squares trend y^t=a+bt. Interpret the slope.
Prepare the products and squares needed for the coefficients. The time indices are numerical month labels; demand is measured in filters shipped during each month.
- Month 1: t2=12=1 and ty=1(108)=108.
- Month 2: t2=22=4 and ty=2(115)=230.
- Month 3: t2=32=9 and ty=3(119)=357.
- Month 4: t2=42=16 and ty=4(128)=512.
- Month 5: t2=52=25 and ty=5(130)=650.
Add the values to obtain the required sums:
There are n=5 observations. Calculate the slope:
The mean index and mean monthly shipments are
Calculate the intercept:
The fitted trend is therefore
Fitted monthly shipments increase by 5.7 filters for each monthly step. The intercept is the fitted level of 102.9 filters at month ________, which precedes the observed data.
b) Project shipments for month 8. How far beyond the last observation is this projection?
Continue the original index and substitute t=8. Do not restart the index after the final observed month.
The last observation is month ________, so the forecast horizon is
The projection is 148.5 filters for month 8, three months beyond the last observation. A fractional forecast is a model estimate; any decision to purchase whole filters requires a separate rounding choice.
c) A colleague recodes time as u=t−3, placing month 3 at u=0. Rewrite the trend and confirm the month-8 projection.
Solve the new time definition for the old index:
Substitute this expression into the fitted trend:
The new intercept is 120.0 filters, the fitted shipment level in month 3. The slope remains 5.7 filters per monthly step because the length and direction of each time step have not changed.
For month 8, the new index is u=8−3=5. Therefore,
Both equations give 148.5 filters for the same calendar month. Recoding time changes the equation's intercept, not its projected demand levels.
A distributor uses three linear trend equations for projected monthly demand, y, in cases. In each original equation, t measures elapsed months from a fixed origin:
- Model A: y=240+12t.
- Model B: y=600−5t.
- Model C: y=180+2t.
Rewrite each equation as y=a+bu, using the new index unit specified in the table. Both indices equal zero at the same origin. One quarter is three months, one half-year is six months, and one year is twelve months.
Keep y as monthly demand in cases; changing the time index does not turn it into total demand for the new interval. Enter exact integers, including negative signs where needed.
| Model | New index unit | Intercept a (cases) | Slope b (cases per index unit) |
| A | Quarter | ||
| B | Half-year | ||
| C | Year |
A packaging supplier uses y^t=300+12t to project monthly demand in cartons. March is coded as t=1, April as t=2, and the index continues without resetting. What is the projected demand for July of the same year?