Home / Methods / Forecasting / Linear trend
Linear trend
When you have a series over time and need to see which way it's heading.
What you need
- series of values
- how many periods ahead (default 1)
What it calculates
- how much the value changes, on average, per period
- how well the straight line actually fits the data (0…1, closer to 1 is better)
- the forecast value that many periods ahead
- the lower edge of the rough band around the forecast
- the upper edge of the rough band around the forecast
Examples
Six months of sales — forecast three ahead
| how much the value changes, on average, per period | 7.4857 |
| how well the straight line actually fits the data (0…1, closer to 1 is better) | 0.9972 |
| the forecast value that many periods ahead | 179.838 |
| the lower edge of the rough band around the forecast | 178.226 |
Eight months of subscriber counts falling — forecast four ahead
| how much the value changes, on average, per period | -12.4881 |
| how well the straight line actually fits the data (0…1, closer to 1 is better) | 0.9926 |
| the forecast value that many periods ahead | 382.214 |
| the lower edge of the rough band around the forecast | 376.621 |
| the upper edge of the rough band around the forecast | 387.808 |
Example numbers are checked against an independent calculation. The AI in Numo does not compute: it only parses your question; a deterministic engine does the maths.
Careful
The straight line knows nothing about seasonality or shocks. The further out the forecast, the wider the real uncertainty — and the formula stays silent about that.
Typical mistakes
- Extending a linear trend far ahead for something that saturates.
- Fitting a trend to seasonal data without adjusting for seasons.