Professional Documents
Culture Documents
CH 5 Time Series2
CH 5 Time Series2
Statistics
Mr M Dominguez
mdominguez@kegs.org.uk
Chapter 5 Time Series
Lesson 1: 5.1, 5.2 & 5.3
Lesson 2:
§ 5.1 Line graphs and time series
Mr Jones says that his Gas bill is getting more expensive. Mrs Jones
says that he talks rubbish and it is actually getting cheaper. Below
are Mr Jones’ gas bills for a 2 year period. Who do you think is
right? Why?
2010 2011
Quarter 1 2 3 4 1 2 3 4
Bill (£’s) 122.24 87.08 73.04 118.46 136.80 96.34 80.06 135.96
140
120
100
Cost (£s)
80
60
40
20
0
Feb-10 May-10 Aug-10 Nov-10 Feb-11 May-11 Aug-11 Nov-11
1 2 3 4 1 2 3 4
2010 2011
2010 2011
Quarter 1 2 3 4 1 2 3 4
Bill (£’s) 122.24 87.08 73.04 118.46 136.80 96.34 80.06 135.96
Time Series Graph for Gas Bills
160
140
120
100
Cost (£s)
80
60
40
20
0
Feb-10 May-10 Aug-10 Nov-10 Feb-11 May-11 Aug-11 Nov-11
1 2 3 4 1 2 3 4
2010 2011
What comments can we draw from the graph?
His gas bill is lowest in August of each year.
His gas bill is largest in the winter months.
The gas bill seems to generally increase over the years.
Time Series Graph for Gas Bills
160
140
120
100
Cost (£s)
80
60
40
20
We join the point up with a dashed line as
not know what the bill would be between
0
end of one quarter and the end of the nex
Feb-10 May-10 Aug-10 Nov-10 Feb-11 May-11 Aug-11
In general we use a dashed line when the
values in between the points have no mea
What comments can we draw from the graph?
His gas bill is lowest in August of each year.
His gas bill is largest in the winter months.
The gas bill seems to generally increase over the years.
§ 5.2 Trend lines
When interpreting time series we may wish to describe season variations and also
the general trend. To make interpreting the general trend easier, a trend line can
be drawn (similar to a line of best fit.) A tend line may show a tendency to rise, fall
or to stay level.
160
Time Series Graph for Gas Bills
140
120
100
Cost (£s)
80
20
0
Feb-10 May-10 Aug-10 Nov-10 Feb-11 May-11 Aug-11 Nov-11
§ 5.3 Variations in time series
There are two types of variations we need to be able to describe:
• General trends over the years
As shown by the trend line (rising/falling/level trend)
120
100
Cost (£s)
80
60
40
20
0
Feb-10 May-10 Aug-10 Nov-10 Feb-11 May-11 Aug-11 Nov-11
The graph shows a rising trend. The price of gas tends to increase each year.
There is seasonal variation with the gas bill being higher than the trend line in
the first and last quarter (Oct-Mar) and lower than the trend value in the
second and third quarter of each year.
The temperature is colder in the winter hence more gas is needed for the
heating./ In the summer it is warmer so less gas is needed to heat the house.
§ 5.4 Moving averages
Moving averages are calculated as
4 point (using quarters)
3 point (four times a year) or,
2 point (every 6 months)
The moving average is always calculating using three consecutive
time periods and plotted in the midpoint of the group.
(eg 4 point moving average plotted half way between quarter 2 and
quarter 3)
As there are 4 separate periods in each year we would
calculate a four-point moving average. For example:
2010 2011
Quarter 1 2 3 4 1 2 3 4
Bill (£’s) 122.24 87.08 73.04 118.46 136.80 96.34 80.06 135.96
160
140
120
Sales (£100's)
100
80
60
40
20
0
01-Jan-07 01-Jul-07 01-Jan-08 01-Jul-08 01-Jan-09 01-Jul-09 01-Jan-10 01-Jul-10
As there are 2 separate periods in each year we would
calculate a two-point moving average. For example:
160
140
120
Sales (£100's)
100
80
60
40
20
0
01-Jan-07 01-Jul-07 01-Jan-08 01-Jul-08 01-Jan-09 01-Jul-09 01-Jan-10 01-Jul-10
Hints and Tips
When you are drawing Time Series Graphs
remember the following things:
The quarterly sales of a company over a three year period are show in
the table
Year 2012 2013 2014
Quarter 1 2 3 4 1 2 3 4 1 2 3 4
Sales 120 127 127 139 125 132 130 144 132 140 138
a) Draw the time series graph, plot the moving averages and draw a trend line.
The quarterly sales of a company over a three year period are show in
the table
Year 2012 2013 2014
Quarter 1 2 3 4 1 2 3 4 1 2 3 4
Sales 120 127 127 139 125 132 130 144 132 140 138
a) Draw the time series graph, plot the moving averages and draw a trend line.
150
145
1st:
140
2nd:
135
Sales
130 3rd:
125
4th:
120
115
5th: 6th:
0
1
7th: 8th:
2012 2013 2014
The quarterly sales of a company over a three year period are show in
the table
Year 2012 2013 2014
Quarter 1 2 3 4 1 2 3 4 1 2 3 4
Sales 120 127 127 139 125 132 130 144 132 140 138
a) Draw the time series graph, plot the moving averages and draw a trend line.
150
b) Calculate the mean
145
seasonal variation
140
135
Seasonal Variation at a point =
actual value – trend value
Sales
130
125
120
115
0
1
150
Quarter
b) Calculate the mean seasonal
variation
Year 1 2 3 4
1 Estimated mean seasonal
2 variation for any season =
3
mean of all the seasonal
variations for that season.
Total
Mean
The quarterly sales of a company over a three year period are show in
the table
Year 2012 2013 2014
Quarter 1 2 3 4 1 2 3 4 1 2 3 4
Sales 120 127 127 139 125 132 130 144 132 140 138
Trend 125.5 126.3 127.9 130.5 134.2 138.1 135.0 137.2 138.2 139.6 141.1
Seasonal
-5.5 0.7 -0.9 8.5 -9.2 -1.6 -5 6.8 -6.2 0.4 -3.1
variation
Quarter
b) Calculate the mean seasonal
variation
Year 1 2 3 4
1 -5.5 0.7 -0.9 8.5 Estimated mean seasonal
2 -7.2 -1.6 -5 6.8 variation for any season =
3 -6.2 0.4 -3.1 NA
mean of all the seasonal
variations for that season.
Total -20.9 -0.5 -9 15.3
Mean -6.97 -0.17 -3 7.65
The quarterly sales of a company over a three year period are show in
the table
Year 2012 2013 2014
Quarter 1 2 3 4 1 2 3 4 1 2 3 4
Sales 120 127 127 139 125 132 130 144 132 140 138
Trend 125.5 126.3 127.9 130.5 134.2 138.1 135.0 137.2 138.2 139.6 141.1
Seasonal
-5.5 0.7 -0.9 8.5 -9.2 -1.6 -5 6.8 -6.2 0.4 -3.1
variation
Quarter
c) Using your trend line and the
seasonal variation. Predict the
Year 1 2 3 4
of sales in the last quarter of
1 -5.5 0.7 -0.9 8.5
2014.
2 -7.2 -1.6 -5 6.8
3 -6.2 0.4 -3.1 NA Predicted value = trend line
Total -20.9 -0.5 -9 15.3 value + estimated mean
seasonal variation
Mean -6.97 -0.17 -3 7.65
The quarterly sales of a company over a three year period are show in
the table
Year 2012 2013 2014
Quarter 1 2 3 4 1 2 3 4 1 2 3 4
Sales 120 127 127 139 125 132 130 144 132 140 138
Trend 125.5 126.3 127.9 130.5 134.2 138.1 135.0 137.2 138.2 139.6 141.1 142.3
Seasonal
-5.5 0.7 -0.9 8.5 -9.2 -1.6 -5 6.8 -6.2 0.4 -3.1
variation
Quarter
c) Using your trend line and the
seasonal variation. Predict the
Year 1 2 3 4
of sales in the last quarter of
1 -5.5 0.7 -0.9 8.5
2014.
2 -9.2 -1.6 -5 6.8
3 -6.2 0.4 -3.1 NA Predicted value = trend line
Total -20.9 -0.5 -9 15.3 value + estimated mean
seasonal variation
Mean -6.97 -0.17 -3 7.65