Syntax
=FORECAST.LINEAR(x, known_ys, known_xs)Arguments
| Argument | Required | Description |
|---|---|---|
x | Required | The x value to predict for |
known_ys | Required | The dependent values |
known_xs | Required | The independent values |
How to use FORECAST.LINEAR
FORECAST.LINEAR takes 3 required arguments. Type =FORECAST.LINEAR( in a cell and SheetsBat shows the arguments as you go. Optional arguments are shown in square brackets; leave them out to use their default.
Examples
Each result below was calculated by the SheetsBat formula engine.
=FORECAST.LINEAR(30, {6,7,9,15,21}, {20,28,31,38,40})Result Related statistical functions
- FORECAST.ETSPredicts a future value with additive exponential triple smoothing (level, trend and season).
- FORECAST.ETS.CONFINTReturns the half width of the confidence interval around a FORECAST.ETS prediction.
- FORECAST.ETS.SEASONALITYReturns the length of the repeating pattern detected in a time series (1 when there is none).
- FORECAST.ETS.STATReturns a statistic of the exponential smoothing model: 1 alpha, 2 beta, 3 gamma, 4 MASE, 5 SMAPE, 6 MAE, 7 RMSE, 8 step size.
- FREQUENCYCounts how many values fall into each bin and returns a vertical list with one more entry than there are bins.
- GAMMAReturns the gamma function value.
- GAMMA.DISTReturns the gamma distribution.
- GAMMA.INVReturns the inverse of the cumulative gamma distribution.
- GAMMALNReturns the natural logarithm of the gamma function.