Time Series and Forecasting
Time Series and Forecasting
Department of Statistics
Begum Rokeya University, Rangpur
19- 2
FIVE
Use trend equations to forecast future time periods and
to develop seasonally adjusted forecasts.
SIX
Determine and interpret a set of seasonal indexes.
SEVEN
Deseasonalize data using a seasonal index.
19- 4
140
120
Sales in $(Millions)
100
80
60
40
20
0
1975 1980 1985 1990 1995 2000 2005
Year
Cyclical Variation
19- 6
10
8
6
4
2
0
r er ll er er ll er er ll er er ll er er ll er er ll
te ng Fa int pr in
g
Fa int prin
g
Fa int prin
g
Fa int prin
g
Fa int prin
g
Fa
in pr i m m m m m m m
W S Su W S Sum W S Sum W S Sum W S Sum W S Sum
Seasons 1999-2005
16
14
Sales in $(millions)
12
10
8
6
4
2
0
g r l g r l g r l g r l g r l g r l
n ter rin me Fal nter rin me Fal nter rin me Fal nter rin me Fal nter rin me Fal nter rin me Fal
i p i p i p i p i p i p
W S Sum W S Sum W S Sum W S Sum W S Sum W S Sum
Seasons 1999-2005
Seasonal Variation
19- 8
Episodic Residual
Variations variations
are random in
are nature and
unpredictable, cannot be
but can usually identified.
be identified,
such as a flood or
hurricane. Components of a Time
Series
19- 9
Y´ = a + bt
Regression Statistics
Multiple R 0.982
R Square 0.964
Adjusted R Square 0.952 EXCEL
Standard Error 0.507 Regression tool
Observations 5
ANOVA
df SS MS F
Regression 1 20.736 20.736 80.580
Residual 3 0.772 0.257
Total 4 21.508
Example 1 Continued
19- 12
12
y = 1.44x + 3
10
EXCEL
Chart 8
and 6
trend
4
line
function 2
0
1 2 3 4 5
Example 1 continued
19- 13
Example 1 continued
19- 14
Nonlinear Trends
19- 15
Example 2 continued
19- 17
1000
800
400
200
0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
-200
Time period
Example 2 continued
19- 18
Month Unit Price Log Price Month Unit Price Log Price
1 900 2.954 13 208 2.318
2 786 2.895 14 187 2.272
3 687 2.837 15 168 2.226
4 603 2.781 16 152 2.182
5 531 2.725 17 137 2.138
6 468 2.670 18 125 2.096
7 414 2.617 19 113 2.054
8 367 2.565 20 103 2.013
9 326 2.513 21 94 1.972
10 290 2.463 22 86 1.933
11 259 2.414 23 78 1.894
12 232 2.366 24 72 1.856
Example 2 continued
19- 19
3.5
3
Log (Unit Price)
y = -0.0476x + 2.9596
2.5
2
1.5
1
0.5
0
1 3 5 7 9 11 13 15 17 19 21 23
Time period
Example 2 continued
19- 20
Price25 = antilog(-.0476*25+2.9596)
= 58.830
Example 2 continued
19- 21
Seasonal Variation
19- 23
Steps
19- 25
Deseasonalizing Data
19- 26
Deseasonalized Toy Sales
Example 3
$Sales (Millions)
W
0.0
2.0
4.0
6.0
8.0
10.0
12.0
in
Sp ter
Su ring
m
m
er
F
W al
in
Sp ter
Su ring
m
m
er
F
W al
in
Sp ter
Su ring
m
m
er
W alF
in
Sp ter
Su ring
m
Quarter
m
er
Fa
W l
in
Deseasonalized Toy Sales
Sp ter
Su ring
m
m
Deseasonalized Toy Sales
er
F
W al
in
Sp ter
Su ring
m
m
er
Fa
l
Example 3 continued
19- 27