Professional Documents
Culture Documents
into its underlying components, such as trend, seasonality, and remainder (residuals).
plt.subplot(4, 1, 3)
plt.plot(result.seasonal, label='Seasonal')
plt.legend()
plt.subplot(4, 1, 4)
plt.plot(result.resid, label='Residuals')
plt.legend()
Trend
Exponential smoothing is a time series forecasting method that uses a weighted average of past
observations to predict future values. The method gives more weight to recent observations and
gradually decreases the weights as observations become older.
There are different variants of exponential smoothing, including simple exponential smoothing, double
exponential smoothing (Holt's method), and triple exponential smoothing (Holt-Winters method).