Syntax
=FORECAST.ETS.STAT(values, timeline, statistic_type, [seasonality], [data_completion], [aggregation])Arguments
| Argument | Required | Description |
|---|---|---|
values | Required | The historical values |
timeline | Required | The dates or numbers of the values, evenly spaced |
statistic_type | Required | Which statistic, 1 to 8 |
seasonality | Optional | 1 or left out to detect the season length, 0 for none, or the season length |
data_completion | Optional | 1 or left out to fill missing points by interpolation, 0 to use zeros |
aggregation | Optional | How to combine values with the same date: 1 average (default) to 7 sum |
How to use FORECAST.ETS.STAT
FORECAST.ETS.STAT takes 3 required arguments and 3 optional arguments. Type =FORECAST.ETS.STAT( 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.ETS.STAT({1,2,3,4,5,6,7,8}, {1,2,3,4,5,6,7,8}, 8)Result Related statistical functions
- FORECASTPredicts a value for x from the straight line that best fits known x and y values.
- 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.LINEARPredicts a value for x from the straight line that best fits known x and y values.
- 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.