Lecture 4 Time Series
Lecture 4 Time Series
• UNIVERSITY OF GHANA
• DEPARTMENT OF ECONOMICS
• ECON 316
Applied Statistics for Economists
Slide 1
Session Outline
The key topics to be covered in the session are as
follows:
• Fitting the Trend Line
-Method of Least Squares
• Explanation of seasonal variation
• Calculation of seasonal indices
• Deseasonalization of time series data
Slide 2
1
3/5/2020
Slide 3
Example 4
• The table below shows the unemployment data of
graduates from 2004-2009 in a certain country.
Year (X) Unemployment (Y)
2004 1005
2005 1120
2006 980
2007 1030
2008 1040
2009 1000
2
3/5/2020
Solution to Example 4
• Table
X Y XY X2
1 1005 1005 1
2 1010 2020 4
3 975 2925 9
4 950 3800 16
5 955 4775 25
6 940 5640 36
21 5835 20165 91
Slide 5
Slide 6
3
3/5/2020
Slide 7
Activity 2
1. The following data shows the number of road accidents from 1998
to 2008.
199
Year 8 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008
No. of
accidents 220 224 235 242 255 258 285 291 292 297 300
Slide 8
4
3/5/2020
5
3/5/2020
Slide 11
6
3/5/2020
Example 1
The table below shows labour turnover on quarterly
bases for three years. Calculate the seasonal index
under the multiplicative model using the method of
moving averages.
Interpret the Seasonal Index for the first and fourth
quarters Year/Quarter 1 2 3 4
1985 68 62 61 63
1986 65 58 66 61
1987 68 63 63 67
Slide 13
Solution to Example 1
• Consider table on next slide
• Step 1: estimate the trend using the method of
moving averages.
• We have 4 quarters in a year and therefore we use 4-
quarterly moving average (4QMA) and center it
(Column 4 and 5)
Step 2: Obtain the s S×I components by dividing the
actual value by the T and C component i.e. (column 6)
• For example, the value 0.966 was obtained by dividing
61 by 63.125.
Slide 14
7
3/5/2020
Slide 16
8
3/5/2020
9
3/5/2020
Slide 19
Slide 20
10
3/5/2020
Activity 1
1. The table below shows the number of people who attend morning,
afternoon and evening school for a week.
Monday Tuesday Wednesday Thursday Friday
Slide 22
11
3/5/2020
Activity 2
1. The table below shows the sales of a supermarket in Ghana in
billion cedis.
Quarter
Year First Second Third Fourth
2003 18 80 30 522
2004 24 105 54 527
2005 33 141 48 538
2006 40 150 75 545
2007 35 180 55 550
2008 48 205 70 557
12