8.2 Methods with trend | Forecasting: Principles and Practice (3rd ed) (2024)

8.2 Methods with trend

Holt’s linear trend method

Holt (1957) extended simple exponential smoothing to allow the forecasting of data with a trend. This method involves a forecast equation and two smoothing equations (one for the level and one for the trend):\[\begin{align*} \text{Forecast equation}&& \hat{y}_{t+h|t} &= \ell_{t} + hb_{t} \\ \text{Level equation} && \ell_{t} &= \alpha y_{t} + (1 - \alpha)(\ell_{t-1} + b_{t-1})\\ \text{Trend equation} && b_{t} &= \beta^*(\ell_{t} - \ell_{t-1}) + (1 -\beta^*)b_{t-1},\end{align*}\]where \(\ell_t\) denotes an estimate of the level of the series at time \(t\), \(b_t\) denotes an estimate of the trend (slope) of the series at time \(t\), \(\alpha\) is the smoothing parameter for the level, \(0\le\alpha\le1\), and \(\beta^*\) is the smoothing parameter for the trend, \(0\le\beta^*\le1\). (We denote this as \(\beta^*\) instead of \(\beta\) for reasons that will be explained in Section 8.5.)

As with simple exponential smoothing, the level equation here shows that \(\ell_t\) is a weighted average of observation \(y_t\) and the one-step-ahead training forecast for time \(t\), here given by \(\ell_{t-1} + b_{t-1}\). The trend equation shows that \(b_t\) is a weighted average of the estimated trend at time \(t\) based on \(\ell_{t} - \ell_{t-1}\) and \(b_{t-1}\), the previous estimate of the trend.

The forecast function is no longer flat but trending. The \(h\)-step-ahead forecast is equal to the last estimated level plus \(h\) times the last estimated trend value. Hence the forecasts are a linear function of \(h\).

Example: Australian population

aus_economy <- global_economy |> filter(Code == "AUS") |> mutate(Pop = Population / 1e6)autoplot(aus_economy, Pop) + labs(y = "Millions", title = "Australian population")

Figure 8.3 shows Australia’s annual population from 1960 to 2017. We will apply Holt’s method to this series. The smoothing parameters, \(\alpha\) and \(\beta^*\), and the initial values \(\ell_0\) and \(b_0\) are estimated by minimising the SSE for the one-step training errors as in Section 8.1.

fit <- aus_economy |> model( AAN = ETS(Pop ~ error("A") + trend("A") + season("N")) )fc <- fit |> forecast(h = 10)

The estimated smoothing coefficient for the level is \(\hat{\alpha} = 0.9999\). The very high value shows that the level changes rapidly in order to capture the highly trended series. The estimated smoothing coefficient for the slope is \(\hat{\beta}^* = 0.3267\). This is relatively large suggesting that the trend also changes often (even if the changes are slight).

In Table 8.2 we use these values to demonstrate the application of Holt’s method.

Table 8.2: Forecasting Australian annual population using Holt’s linear trend method.
YearTimeObservationLevelSlopeForecast
\(t\)\(y_t\)\(\ell_t\)\(\hat{y}_{t+1\mid t}\)
1959010.050.22
1960110.2810.280.2210.28
1961210.4810.480.2210.50
1962310.7410.740.2310.70
1963410.9510.950.2210.97
1964511.1711.170.2211.17
1965611.3911.390.2211.39
1966711.6511.650.2311.61
20145523.5023.500.3723.52
20155623.8523.850.3623.87
20165724.2124.210.3624.21
20175824.6024.600.3724.57
\(h\)\(\hat{y}_{T+h\mid T}\)
2018124.97
2019225.34
2020325.71
2021426.07
2022526.44
2023626.81
2024727.18
2025827.55
2026927.92
20271028.29

Damped trend methods

The forecasts generated by Holt’s linear method display a constant trend (increasing or decreasing) indefinitely into the future. Empirical evidence indicates that these methods tend to over-forecast, especially for longer forecast horizons. Motivated by this observation, Gardner & McKenzie (1985) introduced a parameter that “dampens” the trend to a flat line some time in the future. Methods that include a damped trend have proven to be very successful, and are arguably the most popular individual methods when forecasts are required automatically for many series.

In conjunction with the smoothing parameters \(\alpha\) and \(\beta^*\) (with values between 0 and 1 as in Holt’s method), this method also includes a damping parameter \(0<\phi<1\):\[\begin{align*} \hat{y}_{t+h|t} &= \ell_{t} + (\phi+\phi^2 + \dots + \phi^{h})b_{t} \\ \ell_{t} &= \alpha y_{t} + (1 - \alpha)(\ell_{t-1} + \phi b_{t-1})\\ b_{t} &= \beta^*(\ell_{t} - \ell_{t-1}) + (1 -\beta^*)\phi b_{t-1}.\end{align*}\]If \(\phi=1\), the method is identical to Holt’s linear method. For values between \(0\) and \(1\), \(\phi\) dampens the trend so that it approaches a constant some time in the future. In fact, the forecasts converge to \(\ell_T+\phi b_T/(1-\phi)\) as \(h\rightarrow\infty\) for any value \(0<\phi<1\). This means that short-run forecasts are trended while long-run forecasts are constant.

In practice, \(\phi\) is rarely less than 0.8 as the damping has a very strong effect for smaller values. Values of \(\phi\) close to 1 will mean that a damped model is not able to be distinguished from a non-damped model. For these reasons, we usually restrict \(\phi\) to a minimum of 0.8 and a maximum of 0.98.

Example: Australian Population (continued)

Figure 8.4 shows the forecasts for years 2018–2032 generated from Holt’s linear trend method and the damped trend method.

aus_economy |> model( `Holt's method` = ETS(Pop ~ error("A") + trend("A") + season("N")), `Damped Holt's method` = ETS(Pop ~ error("A") + trend("Ad", phi = 0.9) + season("N")) ) |> forecast(h = 15) |> autoplot(aus_economy, level = NULL) + labs(title = "Australian population", y = "Millions") + guides(colour = guide_legend(title = "Forecast"))

8.2 Methods with trend | Forecasting: PrinciplesandPractice (3rded) (2)

Figure 8.4: Forecasting annual Australian population (millions) over 2018-2032. For the damped trend method, \(\phi=0.90\).

We have set the damping parameter to a relatively low number \((\phi=0.90)\) to exaggerate the effect of damping for comparison. Usually, we would estimate \(\phi\) along with the other parameters. We have also used a rather large forecast horizon (\(h=15\)) to highlight the difference between a damped trend and a linear trend.

Example: Internet usage

In this example, we compare the forecasting performance of the three exponential smoothing methods that we have considered so far in forecasting the number of users connected to the internet via a server. The data is observed over 100 minutes and is shown in Figure 8.5.

www_usage <- as_tsibble(WWWusage)www_usage |> autoplot(value) + labs(x="Minute", y="Number of users", title = "Internet usage per minute")

8.2 Methods with trend | Forecasting: PrinciplesandPractice (3rded) (3)

Figure 8.5: Users connected to the internet through a server

We will use time series cross-validation to compare the one-step forecast accuracy of the three methods.

www_usage |> stretch_tsibble(.init = 10) |> model( SES = ETS(value ~ error("A") + trend("N") + season("N")), Holt = ETS(value ~ error("A") + trend("A") + season("N")), Damped = ETS(value ~ error("A") + trend("Ad") + season("N")) ) |> forecast(h = 1) |> accuracy(www_usage)#> # A tibble: 3 × 10#> .model .type ME RMSE MAE MPE MAPE MASE RMSSE ACF1#> <chr> <chr> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl> <dbl>#> 1 Damped Test 0.288 3.69 3.00 0.347 2.26 0.663 0.636 0.336#> 2 Holt Test 0.0610 3.87 3.17 0.244 2.38 0.701 0.668 0.296#> 3 SES Test 1.46 6.05 4.81 0.904 3.55 1.06 1.04 0.803

Damped Holt’s method is best whether you compare MAE or RMSE values. So we will proceed with using the damped Holt’s method and apply it to the whole data set to get forecasts for future minutes.

fit <- www_usage |> model( Damped = ETS(value ~ error("A") + trend("Ad") + season("N")) )# Estimated parameters:tidy(fit)#> # A tibble: 5 × 3#> .model term estimate#> <chr> <chr> <dbl>#> 1 Damped alpha 1.00 #> 2 Damped beta 0.997 #> 3 Damped phi 0.815 #> 4 Damped l[0] 90.4 #> 5 Damped b[0] -0.0173

The smoothing parameter for the slope is estimated to be almost one, indicating that the trend changes to mostly reflect the slope between the last two minutes of internet usage. The value of \(\alpha\) is very close to one, showing that the level reacts strongly to each new observation.

fit |> forecast(h = 10) |> autoplot(www_usage) + labs(x="Minute", y="Number of users", title = "Internet usage per minute")

8.2 Methods with trend | Forecasting: PrinciplesandPractice (3rded) (4)

Figure 8.6: Forecasting internet usage: comparing forecasting performance of non-seasonal methods.

The resulting forecasts look sensible with decreasing trend, which flattens out due to the low value of the damping parameter (0.815), and relatively wide prediction intervals reflecting the variation in the historical data. The prediction intervals are calculated using the methods described in Section 8.7.

In this example, the process of selecting a method was relatively easy as both MSE and MAE comparisons suggested the same method (damped Holt’s). However, sometimes different accuracy measures will suggest different forecasting methods, and then a decision is required as to which forecasting method we prefer to use. As forecasting tasks can vary by many dimensions (length of forecast horizon, size of test set, forecast error measures, frequency of data, etc.), it is unlikely that one method will be better than all others for all forecasting scenarios. What we require from a forecasting method are consistently sensible forecasts, and these should be frequently evaluated against the task at hand.

Bibliography

Gardner, E. S., & McKenzie, E. (1985). Forecasting trends in time series. Management Science, 31(10), 1237–1246. [DOI]

Holt, C. C. (1957). Forecasting seasonals and trends by exponentially weighted averages (ONR Memorandum No. 52). Carnegie Institute of Technology, Pittsburgh USA. Reprinted in the International Journal of Forecasting, 2004. [DOI]

8.2 Methods with trend | Forecasting: Principles and Practice (3rd ed) (2024)
Top Articles
Hundreds line Southport streets for funeral of ‘dream child’ Alice da Silva Aguiar
Premier Funeral Home in Fremont, NE | Ludvigsen Mortuary | Fremont, NE68025 | 402-721-4440
Craigslist Warren Michigan Free Stuff
Patreon, reimagined — a better future for creators and fans
855-392-7812
Mrh Forum
Jefferey Dahmer Autopsy Photos
Rek Funerals
Doublelist Paducah Ky
Otis Department Of Corrections
30% OFF Jellycat Promo Code - September 2024 (*NEW*)
Category: Star Wars: Galaxy of Heroes | EA Forums
Mndot Road Closures
Jesus Revolution Showtimes Near Chisholm Trail 8
The Blind Showtimes Near Showcase Cinemas Springdale
Taylor Swift Seating Chart Nashville
Ree Marie Centerfold
Indiana Immediate Care.webpay.md
Oscar Nominated Brings Winning Profile to the Kentucky Turf Cup
2024 U-Haul ® Truck Rental Review
Painting Jobs Craigslist
Bahsid Mclean Uncensored Photo
Becu Turbotax Discount Code
Elemental Showtimes Near Cinemark Flint West 14
Tamilyogi Proxy
Nurse Logic 2.0 Testing And Remediation Advanced Test
Beverage Lyons Funeral Home Obituaries
Betaalbaar naar The Big Apple: 9 x tips voor New York City
Yosemite Sam Hood Ornament
Finding Safety Data Sheets
Harrison County Wv Arrests This Week
New Stores Coming To Canton Ohio 2022
As families searched, a Texas medical school cut up their loved ones
Smartfind Express Henrico
11 Pm Pst
Indio Mall Eye Doctor
St Anthony Hospital Crown Point Visiting Hours
Restored Republic June 6 2023
Oppenheimer Showtimes Near B&B Theatres Liberty Cinema 12
Gasoline Prices At Sam's Club
The Wait Odotus 2021 Watch Online Free
Rescare Training Online
Sacramentocraiglist
Leland Westerlund
Marcel Boom X
Prologistix Ein Number
Costco Gas Price Fort Lauderdale
Secondary Math 2 Module 3 Answers
Used Curio Cabinets For Sale Near Me
Heisenberg Breaking Bad Wiki
Dr Seuss Star Bellied Sneetches Pdf
Latest Posts
Article information

Author: Dr. Pierre Goyette

Last Updated:

Views: 6162

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Dr. Pierre Goyette

Birthday: 1998-01-29

Address: Apt. 611 3357 Yong Plain, West Audra, IL 70053

Phone: +5819954278378

Job: Construction Director

Hobby: Embroidery, Creative writing, Shopping, Driving, Stand-up comedy, Coffee roasting, Scrapbooking

Introduction: My name is Dr. Pierre Goyette, I am a enchanting, powerful, jolly, rich, graceful, colorful, zany person who loves writing and wants to share my knowledge and understanding with you.