For optimal use, please visit numiqo on your desktop PC!

Calculate
Values over time
Time (optional)

How-to

Trend Models Calculator
Linear, Quadratic and Exponential Trends

To fit a trend model, select "Trend Models" under "Calculate", enter the measured values in the table above and select them under "Values over time". If the rows are not equally spaced or not sorted, also select the column with the time. Then choose the model type and, if needed, the number of forecasts. The results show the fitted trend equation, the accuracy measures MAPE, MAD and MSD, the forecasts and a chart of the values, the fitted trend and the forecasts.

Example

The example contains simulated nitrate concentrations (mg/L) measured once a year from 2008 to 2025. Select "Trend Models", "Nitrate (mg/L)" under "Values over time" and "Year" under "Time", and enter 3 forecasts to continue the trend to 2028.

Model types

Model Equation Suitable when
Linear Y = b0 + b1·t The values change by about the same amount per unit of time.
Quadratic Y = b0 + b1·t + b2·t² The trend bends, so the change speeds up or slows down.
Exponential growth Y = b0 · b1t The values change by about the same percentage per unit of time. All values must be greater than 0.

The models are fitted by least squares. The exponential model is fitted as a linear model of the logarithm of Y, so b1 − 1 is the growth rate per unit of time; for example, b1 = 1.03 means 3% growth.

Results

  • Fitted trend equation: the equation of the selected model. The time is coded so that the first observation has t = 1; the column "Time coding" shows how t relates to the time variable, for example t = Year − 2007. Without a time variable, t is the row number.
  • Accuracy measures: MAPE is the mean absolute percentage error, MAD the mean absolute deviation and MSD the mean squared deviation between the values and the fitted trend. Smaller values mean a closer fit. Use them to compare model types on the same data.
  • Forecasts: the fitted equation continued beyond the last observation. The forecast times continue with the average spacing of the observed times.
  • Chart: the values, the fitted trend (dashed) and the forecasts.

Limitations

  • No test and no prediction interval: a trend model describes the course of the values but does not test whether the trend is significant. Use the Mann-Kendall trend test for that. The forecasts contain no prediction interval.
  • Forecasts assume the trend continues: they are only reliable for a few periods ahead. A quadratic model in particular can change direction outside the observed range.
  • No seasonality: the models describe the long-term trend only. A seasonal pattern in monthly or quarterly data remains in the deviations.

For an overview of all methods, see trend analysis. For confidence intervals and tests of the coefficients, a linear regression on time is an alternative.

Cite numiqo: numiqo Team (2026). numiqo: Online Statistics Calculator. numiqo e.U. Graz, Austria. URL https://numiqo.com