Simple exponential smoothing for forecasting

As it turns out, simple exponential smoothing can be used to forecast into the future, as well! This method is the simplest of all exponential smoothing forecast methods, and is really only to be used for trend-less series (such as the Gaussian noise series).

In this section, we will be making a forecast with this method, and see a few other very simple forecasting methods for comparison. Let's start with these simple forecasting methods.

The mean method simply forecasts future values using the mean of the historical data. Let's see it in action:

> mfore <- meanf(gausts, h=20)> autoplot(mfore)

The meanf function (which performs the forecast and returns an object of the same name) takes a h argument, ...

Get Data Analysis with R - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.