• Home
  • FORECAST.ETS.STAT Function

FORECAST.ETS.STAT Function

The FORECAST.ETS.STAT function is one of the statistical functions. It is used to return a statistical value as a result of time series forecasting. Statistic type indicates which statistic is requested by this function.

Syntax

FORECAST.ETS.STAT(values, timeline, statistic_type, [seasonality], [data_completion], [aggregation])

The FORECAST.ETS.STAT function has the following arguments:

ArgumentDescription
valuesA range of the historical values for which you want to predict a new point.
timelineA range of date/time values that correspond to the historical values. The timeline range must be of the same size as the values range. Date/time values must have a constant step between them (although up to 30% of missing values can be processed as specified by the data_completion argument and duplicate values can be aggregated as specified by the aggregation argument).
statistic_typeA numeric value between 1 and 8 that specifies which statistic will be returned. The possible values are listed in the table below.
seasonalityA numeric value that specifies which method should be used to detect the seasonality. It is an optional argument. The possible values are listed in the table below.
data_completionA numeric value that specifies how to process the missing data points in the timeline data range. It is an optional argument. The possible values are listed in the table below.
aggregationA numeric value that specifies which function should be used to aggregate identical time values in the timeline data range. It is an optional argument. The possible values are listed in the table belows.

The statistic_type argument can be one of the following:

Numeric valueStatistic
1Alpha parameter of ETS algorithm - the base value parameter.
2Beta parameter of ETS algorithm - the trend value parameter.
3Gamma parameter of ETS algorithm - the seasonality value parameter.
4MASE (mean absolute scaled error) metric - a measure of the accuracy of forecasts.
5SMAPE (symmetric mean absolute percentage error) metric - a measure of the accuracy based on percentage errors.
6MAE (mean absolute error) metric - a measure of the accuracy of forecasts.
7RMSE (root mean squared error) metric - a measure of the differences between predicted and observed values.
8Step size detected in the timeline.

The seasonality argument can be one of the following:

Numeric valueBehavior
1 or omittedSeasonality is detected automatically. Positive, whole numbers are used for the length of the seasonal pattern.
0No seasonality, the prediction will be linear.
an integer greater than or equal to 2The specified number is used for the length of the seasonal pattern.

The data_completion argument can be one of the following:

Numeric valueBehavior
1 or omittedMissing points are calculated as the average of the neighbouring points.
0Missing points are treated as zero values.

The aggregation argument can be one of the following:

Numeric valueFunction
1 or omittedAVERAGE
2COUNT
3COUNTA
4MAX
5MEDIAN
6MIN
7SUM
Notes

How to apply the FORECAST.ETS.STAT function.

Examples

The figure below displays the result returned by the FORECAST.ETS.STAT function.

FORECAST.ETS.STAT Function

Host ONLYOFFICE Docs on your own server or use it in the cloud

Article with the tag:
Browse all tags