5.5 Forecasting Models—Trend and Random Variations

If there is trend present in a time series, the forecasting model must account for this and cannot simply average past values. Two very common techniques will be presented here. The first is exponential smoothing with trend, and the second is called trend projection or simply a trend line.

Exponential Smoothing with Trend

An extension of the exponential smoothing model that will explicitly adjust for trend is called the exponential smoothing with trend model. The idea is to develop an exponential smoothing forecast and then adjust this for trend. Two smoothing constants, α and β, are used in this model, and both of these values must be between 0 and 1. The level of the forecast is adjusted by multiplying the first smoothing constant, α, by the most recent forecast error and adding it to the previous forecast. The trend is adjusted by multiplying the second smoothing constant, β, by the most recent error or excess amount in the trend. A higher value gives more weight to recent observations and thus responds more quickly to changes in the patterns.

As with simple exponential smoothing, the first time a forecast is developed, a previous forecast (Ft) must be given or estimated. If none is available, often the initial forecast is assumed to be perfect. In addition, a previous trend (Tt) must be given or estimated. This is often estimated by using other past data, if available; by using subjective means; or by calculating the increase (or decrease) observed during the first few time periods of the data available. Without such an estimate available, the trend is sometimes assumed to be 0 initially, although this may lead to poor forecasts if the trend is large and β is small. Once these initial conditions have been set, the exponential smoothing forecast including trend (FITt) is developed using three steps:

  1. Step1. Compute the smoothed forecast (Ft+1) for time period t+1 using the equation

    Smoothed forecast=Previous forecast including trend+α(Lasterror)Ft+1=FITt+α(YtFITt)
    (5-10)
  2. Step 2. Update the trend (Tt+1) using the equation

    Smoothed trend=Previous trend+β(Errororexcessintrend)Tt+1=Tt+β(Ft+1FITt)
    (5-11)
  3. Step 3. Calculate the trend-adjusted exponential smoothing forecast (FITt+1) using the equation

    Forecast including trend (FITt+1)=Smoothed forecast (Ft+1)+Smoothed trend(Tt+1)FITt+1=Ft+1+Tt+1
    (5-12)

where

Tt=smoothed trend for time period tFt=smoothed forecast for time period tFITt=forecast including trend for time period tα=smoothing constant for forecastsβ=smoothing constant for trend

Consider the case of Midwestern Manufacturing Company, which has a demand for electrical generators over the period 2007 to 2013 as shown in Table 5.6. To use the trend-adjusted exponential smoothing method, first set initial conditions (previous values for F and T) and choose α and β. Assuming that F1 is perfect and T1 is 0 and picking 0.3 and 0.4 for the smoothing constants, we have

F1=74T1=0α=0.3β=0.4

This results in

FIT1=F1+T1=74+0=74

Following the three steps to get the forecast for 2008 (time period 2), we have

  1. Step 1. Compute Ft+1 using the equation

    Ft+1=FITt+α(YtFITt)F2=FIT1+0.3(Y1FIT1)=74+0.3(7474)=74
  2. Step 2. Update the trend (Tt+1) using the equation

    Tt+1=Tt+β(Ft+1FITt)T2=T1+0.4(F2FIT1)=0+0.4(7474)=0

    Table 5.6 Midwestern Manufacturing’s Demand

    YEAR ELECTRICAL GENERATORS SOLD
    2007 74
    2008 79
    2009 80
    2010 90
    2011 105
    2012 142
    2013 122

    Table 5.7 Midwestern Manufacturing Exponential Smoothing with Trend Forecasts

    TIME (t) DEMAND (Yt) Ft+1=FITt+0.3(YtFITt) Tt+1=Tt+1+0.4(Ft+1FITt) FITt+1=Ft+1+Tt+1
    1 74 74 0 74
    2 79 74=74+0.3(7474) 0=0+0.4(7474) 74=74+0
    3 80 75.5=74+0.3(7974) 0.6=0+0.4(75.574) 76.1=75.5+0.6
    4 90 77.270 1.068 78.338=77.270+1.068
    =76.1+0.3(8076.1) =0.6+0.4(77.2776.1)
    5 105 81.837 2.468 84.305=81.837+2.468
    =78.338+0.3(9078.338) =1.068+0.4(81.83778.338)
    6 142 90.514 4.952 95.466=90.514+4.952
    =84.305+0.3(10584.305) =2.468+0.4(90.51484.305)
    7 122 109.426 10.536 119.962=109.426+10.536
    =95.466+0.3(14295.466) =4.952+0.4(109.42695.466)
    8 120.573 10.780 131.353=120.573+10.780
    =119.962+0.3(122119.962) =10.536+0.4(120.573119.962)
  3. Step 3. Calculate the trend-adjusted exponential smoothing forecast (FITt+1) using the equation

    FIT2=F2+T2=74+0=74

For 2009 (time period 3), we have

  1. Step 1.

    F3=FIT2+0.3(Y2FIT2)=74+0.3(7974)=75.5
  2. Step 2.

    T3=T2+0.4(F3FIT2)=0+0.4(75.574)=0.6
  3. Step 3.

    FIT3=F3+T3=75.5+0.6=76.1

The other results are shown in Table 5.7. The forecast for 2014 would be about 131.35.

To have Excel QM perform the calculations in Excel 2016, from the Excel QM ribbon, select the alphabetical list of techniques and choose Forecasting and then Trend Adjusted Exponential Smoothing. After specifying the number of past observations, enter the data and the values for α and β, as shown in Program 5.3.

A screenshot of Excel QM output is titled Forecasting Trend adjusted exponential smoothing. Underneath the word Forecasting an Alpha and Beta table is shown, and a tip box directs you to the forecast for next period output.

Program 5.3 Output from Excel QM in Excel 2016 for Trend-Adjusted Exponential Smoothing Example

Trend Projections

Another method for forecasting time series with trend is called trend projection. This technique fits a trend line to a series of historical data points and then projects the line into the future for medium- to long-range forecasts. There are several mathematical trend equations that can be developed (e.g., exponential and quadratic), but in this section we look at linear (straight line) trends only. A trend line is simply a linear regression equation in which the independent variable (X) is the time period. The first time period will be time period 1. The second time period will be time period 2, and so forth. The last time period will be time period n. The form of this is

Y^=b0+b1X

where

Y^=predicted valueb0=interceptb1=slope of the lineX=time period (i.e., X = 1, 2, 3, n)

The least squares regression method may be applied to find the coefficients that minimize the sum of the squared errors, thereby also minimizing the mean squared error (MSE). Chapter 4 provides a detailed explanation of least squares regression and the formulas to calculate the coefficients by hand. In this section, we use computer software to perform the calculations.

Let us consider the case of Midwestern Manufacturing’s demand for generators that was presented in Table 5.6. A trend line can be used to predict demand (Y) based on the time period using a regression equation. For the first time period, which was 2007, we let X=1. For 2008, we let X=2, and so forth. Using computer software to develop a regression equation as we did in Chapter 4, we get the following equation:

Y^=56.71+10.54X

To project demand in 2014, we first denote the year 2014 in our new coding system as X=8:

(Salesin2014)=56.71+10.54(8)=141.03,or141generators

We can estimate demand for 2015 by inserting X=9 in the same equation:

(Salesin2015)=56.71+10.54(9)=151.57,or152generators

Program 5.4 provides output from Excel QM in Excel 2016. To run this model, from the Excel QM ribbon, select Alphabetical to see the techniques. Then select Forecasting and Regression / Trend Analysis. When the input window opens, enter the number of past observations (7), and the spreadsheet is initialized, allowing you to input the seven Y values and the seven X values, as shown in Program 5.4.

This problem could also be solved using QM for Windows. To do this, select the Forecasting module, and then enter a new problem by selecting NewTime Series Analysis. When the next window opens, enter the number of observations (7) and press OK. Enter the values (Y) for the seven past observations when the input window opens. It is not necessary to enter the values for X (1, 2, 3, . . . , 7) because QM for Windows will automatically use these numbers. Then click Solve to see the results shown in Program 5.5.

Figure 5.4 provides a scatter diagram and a trend line for these data. The projected demand in each of the next three years is also shown on the trend line.

The title of this screenshot from QM for Windows is Forecasting Simple linear regression.

Program 5.4 Output from Excel QM in Excel 2016 for Trend Line Example

A screenshot showing trend line output for Midwestern Manufacturing Company. Tip boxes point out the forecast for future time periods and the location of the trend line formula in the output table.

Program 5.5 Output from QM for Windows for Trend Line Example

A line graph and scatter diagram.

Figure 5.4 Generator Demand and Projections for Next Three Years Based on Trend Line

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset