Title: QNT 531 Advanced Problems in Statistics and Research Methods
1QNT 531Advanced Problems in Statistics and
Research Methods
- WORKSHOP 4
- By
- Dr. Serhat Eren
- University OF PHOENIX
2TIME SERIES ANDFORECASTINGOBJECTIVES
- Getting Started With Time Series Data
- Simple Moving Average MA
- Weighted Moving Average Models
- Exponential Smoothing Models
- Regression Models
3GETTING STARTED WITH TIME SERIES DATA
- Time Series Notation
- A time series is a set of observations of a
variable at regular time intervals, such as
yearly, monthly, weekly, daily, etc. - To study time series data we must introduce some
general notation. Consistent with the notation
from regression, we will label the variable that
we are trying to predict with the letter Y. Since
each observation is taken at a particular time,
we will subscript Y with the letter t.
4GETTING STARTED WITH TIME SERIES DATA
- Thus, the data in a time series are labeled
- y1 is the observation of the variable at time
period 1 - y2 is the observation of the variable at time
period 2 - yt is the observation of the variable at time
period t
5GETTING STARTED WITH TIME SERIES DATA
- The observation that is the oldest in terms of
the time that it was observed com pared to the
present is labeled y1. - For the bread example, the daily sales 25 days
ago is the oldest observation and is therefore
labeled yt. The second oldest observation is
labeled y2 and so forth.
6GETTING STARTED WITH TIME SERIES DATA
- Once you have identified the data and labeled
them properly, you should display them using a
scatter plot. The x axis should be time and the y
axis should be the variable of interest. - After you plot the data, you should examine the
plot to see if there are any obvious patterns or
trends.
74-1 COMPONENTS OF A TIME SERIES
- 4.1.1 Trend Component
- The gradual shifting of the time series is
referred to as the trend in the time series this
shifting or trend is usually the result of long
term factors such as changes in the population,
demographic characteristics of the population,
technology, and/or consumer preferences. - Figure 4-2 shows a straight line that may be a
good approximation of the trend in camera sales.
8(No Transcript)
94-1 COMPONENTS OF A TIME SERIES
- Figure 4-3 shows some other possible time series
trend patterns. - Panel (A) shows a nonlinear trend, panel (B) is
useful for a time series displaying a steady
decrease over time, and panel (C) represents a
time series that has no consistent increase or
decrease over time and thus no trend.
10(No Transcript)
114-1 COMPONENTS OF A TIME SERIES
- 4.1.2 Cyclical Component
- Any recurring sequence of points above and below
the trend line lasting more than one year can be
attributed to the cyclical component of the time
series. - Figure 4-4 shows the graph of a time series with
an obvious cyclical component.
12(No Transcript)
134-1 COMPONENTS OF A TIME SERIES
- 4.1.3 Seasonal Component
- For example, a manufacturer of swimming pools
expects low sales activity in the fall and winter
months, with peak sales in the spring and summer
months. - The component of the time series that represents
the variability in the data due to seasonal
influences is called the seasonal component.
144-1 COMPONENTS OF A TIME SERIES
- 4.1.4 Irregular Component
- The irregular component of the time series is the
residual factor that accounts for the deviations
of the actual time series values from those
expected given the effects of the trend,
cyclical, and seasonal components. - The irregular component is caused by the
short-term, unanticipated, and nonrecurring
factors that affect the time series.
154-2 SMOOTHING METHODS
- Three forecasting methods are moving averages,
weighted moving averages, and exponential
smoothing. - The objective of each of these methods is to
smooth out the random fluctuations caused by
the irregular component of the time series
therefore they are referred to as smoothing
methods.
164.2 SMOOTHING METHODS SIMPLE MOVING AVERAGE
MODELS
- 4.5.1 Calculating Simple Moving Averages
- Instead of averaging all of the data, we will
average only the most recent observations. - For example, we could average only the most
recent 3 years as our forecast for the next year.
In this case the predicted FWC population for
1999 would be calculated as follows
174.2 SMOOTHING METHODS SIMPLE MOVING AVERAGE
MODELS
- A k-period moving average is the average of the
most recent k observations. - What we just calculated is called a 3-period
moving average (MA), since we averaged the data
from the most recent 3 time periods to get the
forecast for the next period. - You could instead use a 2-period moving average,
a 4-period moving average or any number period
moving average. In general, we will talk about a
k-period moving average.
18(No Transcript)
194.2 SMOOTHING METHODS SIMPLE MOVING AVERAGE
MODELS
- 4.5.2 Evaluating the Model
- The next logical issue is to decide how to select
the value of k. In other words, should we use a
2-period MA model, a 3-period MA model, or some
other number period MA model? The right answer,
of course, is that we should use the "best"
model. - Ideally, we would like the forecasting model with
zero error, that is, one that predicts perfectly.
Recognizing that we will never find such a model,
we look for a model with the smallest possible
error.
20(No Transcript)
214.2 SMOOTHING METHODS SIMPLE MOVING AVERAGE
MODELS
- In this case, the positive errors tell you that
your forecast from a 3-period MA model
consistently underestimates the actual
population. Because of this observation you
consider using only 2 periods to forecast for the
next period, a 2-period MA. - The formula for calculating the mean square error
(MSE) for a k-period MA model is given below
224.2 SMOOTHING METHODS SIMPLE MOVING AVERAGE
MODELS
- Now we know that the 2-period MA has a smaller
MSE than the 3-period MA. - To see the difference in the performance of the
2-period MA model and the 3-period MA model, we
can graph the original time series (FWC) and the
2 models on the same graph. This is shown in
Figure 16.3.
23(No Transcript)
244.2 SMOOTHING METHODS WEIGHTED MOVING AVERAGES
- There is another measure that is sometimes used
instead of the MSE to evaluate the goodness of a
forecasting model. It is called the mean absolute
deviation or MAD. - A simple moving average model uses the simple
average of the most recent k observations to
predict for the next time period.
254.2 SMOOTHING METHODS WEIGHTED MOVING AVERAGES
- A weighted moving average model is a moving
average model with unequal weights. - 4.5.1 Calculating Weighted Moving Averages
- The only rule that needs to be observed as you
pick the weights is that the sum of the weights
must be 1 and each weight must be a positive
number between 0 and 1. - We will use the term wt to represent the weight
to be used for the observation from time period
t. The general formula for a 3-period weighted
moving average is then
264.2 SMOOTHING METHODS WEIGHTED MOVING AVERAGES
- The general formula for a 3-period weighted
moving average is then
274.2 SMOOTHING METHODS EXPONENTIAL SMOOTHING
MODELS
- An exponential smoothing model is an averaging
technique that uses unequal weights. The weights
applied to past observations decline in an
exponential manner.
28(No Transcript)
29(No Transcript)
304.2 SMOOTHING METHODS EXPONENTIAL SMOOTHING
MODELS
- FORECASTING USING AN
- EXPONENTIAL SMOOTHING MODEL
- The exponential smoothing model is different from
the weighted moving average model because of the
historical data in the time series are used to
generate the forecast for e next period. - It is similar to a weighted MA model because the
forecast is a weighted average.
314.2 SMOOTHING METHODS EXPONENTIAL SMOOTHING
MODELS
- The weights are assigned in such a way that the
most recent observation, yt, carries the largest
weight. The second most recent observation
carries the second largest weight and the weights
assigned to the other data points decrease
systematically. - The smoothing constant, ?, is the weight assigned
to the most recent observation in an exponential
smoothing model.
324.2 SMOOTHING METHODS EXPONENTIAL SMOOTHING
MODELS
- The general formula for the forecast for the next
period, t1, is shown below.
33(No Transcript)
344.2 SMOOTHING METHODS EXPONENTIAL SMOOTHING
MODELS
- Evaluating the Exponential Smoothing Model
- The equation shown above is the best one to use
to actually calculate the forecast using
exponential smoothing. This is true because you
need only the most recent forecast,, the most
recent observation, yt, and ? to complete the
computation. - Let's see how to use this equation and find the
MSE of the exponential smoothing model for the
FWC time series in Example 16.7.
35(No Transcript)
364-3 TREND PROJECTION
- Consider the time series for bicycle sales of a
particular manufacturer over the past 10 years,
as shown in Table 4-6 and Figure 4-8. - Note that 21,600 bicycles were sold in year
1,22,900 were sold in year 2, and so on.
37(No Transcript)
38(No Transcript)
394-3 TREND PROJECTION
- In year 10, the most recent year, 31,400 bicycles
were sold. Although Figure 4-8 shows some up and
down movement over the past 10 years, the time
series seems to have an overall increasing or
upward trend. - Specifically, we will be using regression
analysis to estimate the relationship between
time and sales volume.
404-3 TREND PROJECTION
- The estimated regression equation describing a
straight-line relationship between an independent
variable x and a dependent variable y is
414-3 TREND PROJECTION
- For a linear trend, the estimated sales volume
expressed as a function of time can be written as
follows. - where
- Tt trend value of the time series in period t
- b0 intercept of the trend line
- b1 slope of the trend line
- t time
424-3 TREND PROJECTION
- Computing the Slope (b1 ) and Intercept (b0 )
- where
- Yt value of the time series in period t
- n number of periods
- Y-bar average value of the time series
- t bar average value of t
43(No Transcript)
44(No Transcript)
454-3 TREND PROJECTION
- For example, substituting t11 into the formula
above yields next years trend projection as - The use of a linear function to model the trend
is common. However, as we discussed previously,
sometimes time series have a curvilinear, or
nonlinear, trend similar to those in Figure 4-10.
46(No Transcript)
474-4 TREND AND SEASONAL COMPONENTS
- Removing the seasonal effect from a time series
is known as deseasonalizing the time series. The
first step is to compute seasonal indexes and use
them to deseasonalize the data. - Then, if a trend is apparent in the
deseasonalized data, we use regression analysis
on the deseasonalized data to estimate the trend
component.
484-4 TREND AND SEASONAL COMPONENTS
- 4.4.1 Multiplicative Model
- In addition to a trend component (T ) and a
seasonal component (S ),we will assume that the
time series has an irregular component (I ).Using
Tt , St , and It to identify the trend,
seasonal, and irregular components at time t ,we
will assume that the time series value, denoted Y
t ,can be described by the following
multiplicative time series model.
494-4 TREND AND SEASONAL COMPONENTS
- 4.4.2 Calculating the Seasonal Indexes
- Figure 4-11 indicates that sales are lowest in
the second quarter of each year and increase in
quarters 3 and 4. Thus, we conclude that a
seasonal pattern exists for television set sales. - We can begin the computational procedure used to
identify each quarters seasonal influence by
computing a moving average to separate the
combined seasonal and irregular components, St
and It , from the trend component Tt .
50(No Transcript)
51(No Transcript)
524-4 TREND AND SEASONAL COMPONENTS
- To do so, we use one year of data in each
calculation. Because we are working with
aquarterly series, we will use four data values
in each moving average. The moving average
calculation for the first four quarters of the
television set sales data is
534-4 TREND AND SEASONAL COMPONENTS
- We next add the 5.8 value for the first quarter
of year 2 and drop the 4.8 for the first quarter
of year 1.Thus, the second moving average is - Similarly, the third moving average calculation
is 5.875.
544-4 TREND AND SEASONAL COMPONENTS
- Table 4-8 shows a complete summary of the
centered moving average calculations for the
television set sales data. - What do the centered moving averages in Table 4-8
tell us about this time series? Figure 4-12 is a
plot of the actual time series values and the
centered moving average values. Note particularly
how the centered moving average values tend to
smooth out both the seasonal and irregular
fluctuations in the time series.
55(No Transcript)
56(No Transcript)
574-4 TREND AND SEASONAL COMPONENTS
- Each point in the centered moving average
represents the value of the time series as though
there were no seasonal or irregular influence. - By dividing each time series observation by the
corresponding centered moving average, we can
identify the seasonal irregular effect in the
time series.
584-4 TREND AND SEASONAL COMPONENTS
- For example, the third quarter of year 1 shows
6.0/5.475 1.096 as the combined seasonal
irregular value. Table 4-9 summarizes the
seasonal irregular values for the entire time
series. - We refer to 1.09 as the seasonal index for the
third quarter. In Table 4-10 we summarize the
calculations involved in computing the seasonal
indexes for the television set sales time series.
59(No Transcript)
60(No Transcript)
614-4 TREND AND SEASONAL COMPONENTS
- Interpretation of the values in Table 4-10
provides some observations about the seasonal
component in television set sales. - The best sales quarter is the fourth quarter,
with sales averaging 14above the average
quarterly value. The worst, or slowest, sales
quarter is the second quarter its seasonal index
of 0.84 shows that the sales average is 16 below
the average quarterly sales.
624-4 TREND AND SEASONAL COMPONENTS
- 4.4.3 Deseasonalizing the Time Series
- The purpose of finding seasonal indexes is to
remove the seasonal effects from a time series.
This process is referred to as deseasonalizing
the time series. - Economic time series adjusted for seasonal
variations (deseasonalized time series) are often
reported in publications such as the Survey of
Current Business, The Wall Street Journal, and
Business Week.
634-4 TREND AND SEASONAL COMPONENTS
- By dividing each time series observation by the
corresponding seasonal index, we have removed the
effect of season from the time series. - The deseasonalized time series for television set
sales is summarized in Table 4-11. A graph of the
deseasonalized television set sales time series
is shown in Figure 4-13.
64(No Transcript)
65(No Transcript)
664-4 TREND AND SEASONAL COMPONENTS
- 4.4.4 Using the Deseasonalized Time Series
- to Identify Trend
- Although the graph in Figure 4-13 shows some
random up and down movement over the past 16
quarters, the time series seems to have an upward
linear trend. - To identify this trend, we will use the same
procedure as in the preceding section in this
case, the data are quarterly deseasonalized sales
values.
674-4 TREND AND SEASONAL COMPONENTS
- Thus, for a linear trend, the estimated sales
volume expressed as a function of time is - As before, t 1 corresponds to the time of the
first observation for the time series, t 2
corresponds to the time of the second
observation, and so on.
68(No Transcript)
69(No Transcript)
704-4 TREND AND SEASONAL COMPONENTS
- The slope of 0.148 indicates that over the past
16 quarters, the firm has had an average
deseasonalized growth in sales of around 148 sets
per quarter. - For example, substituting t 17 into the
equation yields next quarters trend projection,
T17
714-4 TREND AND SEASONAL COMPONENTS
- 4.4.5 Seasonal Adjustments
- The final step in developing the forecast when
both trend and seasonal components are present is
to use the seasonal index to adjust the trend
projection. - Returning to the television set sales example,
Table 4-12 gives the quarterly forecast for
quarters 17 through 20.
724-4 TREND AND SEASONAL COMPONENTS
- 4.4.6 Models Based on Monthly Data
- Many businesses use monthly rather than quarterly
forecasts. In such cases, the procedures
introduced in this section can be applied with
minor modifications. - First, a 12-month moving average replaces the
4-quarter moving average second,12 monthly
seasonal indexes, rather than four quarterly
seasonal indexes, must be computed. Other than
these changes, the computational and forecasting
procedures are identical.
734-4 TREND AND SEASONAL COMPONENTS
- 4.4.7 Cyclical Component
- The cyclical component is expressed as a
percentage of the trend. This component is
attributable to multiyear cycles in the time
series. Because of the length of time involved,
obtaining enough relevant data to estimate the
cyclical component is often difficult. Another
difficulty is that cycles usually vary in length.
744.5 REGRESSION MODELS
- 16.6.1 Finding the Linear Regression Model
- The first step to analyzing time series data is
to display the data using a scatter plot. - After you construct a scatter plot and visually
examine the time series data, you may observe a
clear upward or downward linear trend. In this
case you should try a regression model. - However, it is not always crystal clear that
there is a trend in the data. This is the case
with the FWC time series we have been working
with.
754.5 REGRESSION MODELS
- 16.6.1 Finding the Linear Regression Model
- There appears to be a slight upward trend, but is
that enough to warrant the use of regression? - When using regression to model time series data,
the independent variable is time and the
dependent variable is the variable you are
interested in forecasting. The prediction model
thus becomes
76(No Transcript)
77(No Transcript)
78(No Transcript)
794.5 REGRESSION MODELS
- 16.6.2 Evaluating the Regression Model
- We have been using the mean square error to
evaluate the moving average and exponential
smoothing models. This is easily done for the
regression model because any software package
that you use to run the regression model will
calculate the predicted values and the residuals
for each value of yt. - These residuals can then be squared and averaged
to get the MSE. These values are shown in the
next example, Example 16.10.
80(No Transcript)
81(No Transcript)
824.6 QUALITATIVE APPROACHES
- 16.6.2 Evaluating the Regression Model
- If historical data are not available, managers
must use a qualitative technique to develop
forecasts. - But the cost of using qualitative techniques can
be high because of the time commitment required
from the people involved.
834.6 QUALITATIVE APPROACHES
- 4.6.1 Delphi Method
- Delphi method is originally developed by a
research group at the Rand Corporation. It is an
attempt to develop forecasts through group
consensus. - The members of a panel of experts all of whom
are physically separated from and unknown to each
other are asked to respond to a series of
questionnaires.
844.6 QUALITATIVE APPROACHES
- The responses from the first questionnaire are
tabulated and used to prepare a second
questionnaire that contains information and
opinions of the entire group. - Each respondent is then asked to reconsider and
possibly revise his or her previous response in
light of the group information provided. This
process continues until the coordinator feels
that some degree of consensus has been reached.
854.6 QUALITATIVE APPROACHES
- The goal of the Delphi method is not to produce a
single answer as output, but instead to produce a
relatively narrow spread of opinions within which
the majority of experts concur. - 4.6.2 Expert Judgment
- 4.6.3 Scenario Writing
- 4.6.4 Intuitive Approaches