7.2 Trend methods | Forecasting: Principles and Practice (2nd ed) (2024)

7.2 Trend methods

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 7.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: Air Passengers

air <- window(ausair, start=1990)fc <- holt(air, h=5)

In Table 7.2 we demonstrate the application of Holt’s method to annual passenger numbers for Australian airlines. 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 7.1.

Table 7.2: Applying Holt’s linear method with \(\alpha=0.8321\) and \(\beta^*=0.0001\) to Australian air passenger data (millions of passengers).
YearTimeObservationLevelSlopeForecast
\(t\)\(y_t\)\(\ell_t\)\(b_t\)\(\hat{y}_{t\vert t-1}\)
1989015.572.102
1990117.5517.572.10217.67
1991221.8621.492.10219.68
1992323.8923.842.10223.59
1993426.9326.762.10225.94
1994526.8927.222.10228.86
1995628.8328.922.10229.33
1996730.0830.242.10231.02
1997830.9531.192.10232.34
1998930.1930.712.10133.29
19991031.5831.792.10132.81
20001132.5832.802.10133.89
20011233.4833.722.10134.90
20021339.0238.482.10135.82
20031441.3941.252.10140.58
20041541.6041.892.10143.35
20051644.6644.542.10144.00
20061746.9546.902.10146.65
20071848.7348.782.10149.00
20081951.4951.382.10150.88
20092050.0350.612.10153.49
20102160.6459.302.10252.72
20112263.3663.032.10261.40
20122366.3666.152.10265.13
20132468.2068.212.10268.25
20142568.1268.492.10270.31
20152669.7869.922.10270.60
20162772.6072.502.10272.02
\(h\)\(\hat{y}_{t+h\vert t}\)
174.60
276.70
378.80
480.91
583.01

The very small value of \(\beta^*\) means that the slope hardly changes over time.

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: Air Passengers (continued)

Figure 7.3 shows the forecasts for years 2017–2031 generated from Holt’s linear trend method and the damped trend method.

fc <- holt(air, h=15)fc2 <- holt(air, damped=TRUE, phi = 0.9, h=15)autoplot(air) + autolayer(fc, series="Holt's method", PI=FALSE) + autolayer(fc2, series="Damped Holt's method", PI=FALSE) + ggtitle("Forecasts from Holt's method") + xlab("Year") + ylab("Air passengers in Australia (millions)") + guides(colour=guide_legend(title="Forecast"))

7.2 Trend methods | Forecasting: PrinciplesandPractice (2nded) (1)

Figure 7.3: Forecasting total annual passengers of air carriers registered in Australia (millions of passengers, 1990–2016). 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. In practice, we would not normally want to forecast so many years ahead with only 27 years of data.

Example: Sheep in Asia

In this example, we compare the forecasting performance of the three exponential smoothing methods that we have considered so far in forecasting the sheep livestock population in Asia. The data spans the period 1961–2007 and is shown in Figure 7.4.

autoplot(livestock) + xlab("Year") + ylab("Livestock, sheep in Asia (millions)")

7.2 Trend methods | Forecasting: PrinciplesandPractice (2nded) (2)

Figure 7.4: Annual sheep livestock numbers in Asia (in million head)

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

e1 <- tsCV(livestock, ses, h=1)e2 <- tsCV(livestock, holt, h=1)e3 <- tsCV(livestock, holt, damped=TRUE, h=1)# Compare MSE:mean(e1^2, na.rm=TRUE)#> [1] 178.3mean(e2^2, na.rm=TRUE)#> [1] 173.4mean(e3^2, na.rm=TRUE)#> [1] 162.6# Compare MAE:mean(abs(e1), na.rm=TRUE)#> [1] 8.532mean(abs(e2), na.rm=TRUE)#> [1] 8.803mean(abs(e3), na.rm=TRUE)#> [1] 8.024

Damped Holt’s method is best whether you compare MAE or MSE 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 years.

fc <- holt(livestock, damped=TRUE)# Estimated parameters:fc[["model"]]#> Damped Holt's method #> #> Call:#> holt(y = livestock, damped = TRUE) #> #> Smoothing parameters:#> alpha = 0.9999 #> beta = 3e-04 #> phi = 0.9798 #> #> Initial states:#> l = 223.35 #> b = 6.9046 #> #> sigma: 12.84#> #> AIC AICc BIC #> 427.6 429.7 438.7

The smoothing parameter for the slope is estimated to be essentially zero, indicating that the trend is not changing over time. The value of \(\alpha\) is very close to one, showing that the level reacts strongly to each new observation.

autoplot(fc) + xlab("Year") + ylab("Livestock, sheep in Asia (millions)")

7.2 Trend methods | Forecasting: PrinciplesandPractice (2nded) (3)

Figure 7.5: Forecasting livestock, sheep in Asia: comparing forecasting performance of non-seasonal method.

The resulting forecasts look sensible with increasing trend, and relatively wide prediction intervals reflecting the variation in the historical data. The prediction intervals are calculated using the methods described in Section 7.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 (O.N.R. Memorandum No. 52). Carnegie Institute of Technology, Pittsburgh USA. [DOI]

7.2 Trend methods | Forecasting: Principles and Practice (2nd ed) (2024)
Top Articles
Freya the rescued lion cub is safe in South Africa. Many other lions there are bred to be shot
Novak Djokovic adds voice to calls for format change
Jin Wigs Thomaston Ga
Incredibox Deluxe
Buenasado Bluewater
Goodwill Bellingham Donation Hours
Jak zgłosić awarię i brak energii elektrycznej w Twoim mieszkaniu lub domu? - ENERGA-OPERATOR SA
Things to do in Wichita Falls on weekends 12-15 September
Ups Store Fax Cost
Magma Lozenge Location
College Basketball Predictions & Picks Today 🏀 [Incl. March Madness]
Sinai Web Scheduler
Hangar 67
All classes in Pathfinder: Wrath of the Righteous
Megnutt Health Benefits
Xsammybearxox
Ck3 Diplomatic Range
Pier One Chairs
Accuweather Mold Count
Lima Crime Stoppers
Watch My Best Friend's Exorcism Online Free
Realidades 2 Workbook Answer Key
11000, EVV Compliance Reviews | Texas Health and Human Services
Rek Funerals
Daily Journal Obituary Kankakee
Dez Juggs
Examination Policies: Finals, Midterms, General
Shaw Funeral Home Vici Oklahoma
Raileydiesel
MyChart | University Hospitals
Top Chef Airer Nyt Crossword Clue
Ups Customer Center Locations
Duluth Craigslist Boats
Top French Cities - Saint-Etienne at a glance
"Lebst du noch?" Roma organisieren Hilfe für die Ukraine – DW – 05.03.2022
Hingham Police Scanner Wicked Local
Seller Feedback
Tandon School of Engineering | NYU Bulletins
Pressconnects Obituaries Recent
G122 Pink Pill
More massage parlors shut down by Roswell Police after ordinance violations
Honda Fury Forums
Fired Dies Cancer Fired Qvc Hosts
Gowilkes For Rent
Payback Bato
Thekat103.7
1Wangrui4
Craigslist Pets Olympia
Savor Some Southern Tradition With Crispy Deep-Fried Chitterlings
Toothio Login
Caldo Tlalpeño de Pollo: Sabor Mexicano - Paulina Cocina
tweedehands auto kopen in Gilze en Rijen
Latest Posts
Article information

Author: The Hon. Margery Christiansen

Last Updated:

Views: 6576

Rating: 5 / 5 (50 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: The Hon. Margery Christiansen

Birthday: 2000-07-07

Address: 5050 Breitenberg Knoll, New Robert, MI 45409

Phone: +2556892639372

Job: Investor Mining Engineer

Hobby: Sketching, Cosplaying, Glassblowing, Genealogy, Crocheting, Archery, Skateboarding

Introduction: My name is The Hon. Margery Christiansen, I am a bright, adorable, precious, inexpensive, gorgeous, comfortable, happy person who loves writing and wants to share my knowledge and understanding with you.