Module - 3 - ANALYSIS OF TIME SERIES
Module - 3 - ANALYSIS OF TIME SERIES
Ex: Annual rain falls, daily production/sales in an industry, hourly temp of a patient in a
hospital…
The given time series plotted on a graph is called a historigram or actual line
A businessman plan to adjust his production for future sale to meet the demand.
An economist in estimating the likely population in the coming year to plan for food
supply in future.
In such cases the analysis has to be done to do the estimation from the past information
by collecting the data that are collected, observed/recorded at successive interval of time.
Such data are generally referred as time series
Utility & component of time series analysis: This helps to study the past behaviour of the
data, estimate the future value for planning, to study the variations in data at different
times and places.
Value 33 48 42 58 55 60 65
Sales (thousand units) 102 105 114 110 108 116 112
4. Fit a trend line by the method of semi-averages to the data given below.
Also Estimate the sales for the year 2024
Sales (Rs. lakhs) 412 438 444 454 470 482 490 500
5. The sale of commodity in tones varied from January 2022 to December 2022 in
the following manner
𝑦2 + 𝑦3 …+𝑦𝑚+1
2nd M.A.= ,
𝑚
𝑦3 +𝑦4 …+𝑦𝑚+2
3rd M.A.= …
𝑚
(i) When period(m) is odd: The successive values of the moving averages are
placed against the middle values of the corresponding time intervals.
(ii) When period(m) is even: The successive values of the moving averages are
placed between the two middle values of the time intervals it covers & later to
synchronise the values with the original data ‘centering’ is done taking a two-
period average of the moving averages and placing it in between the
corresponding time periods.
Note: The period of the moving averages should be same as the period of the cyclic
movements in the series. (observe the peaks). If it is not so, then the moving average is
taken as the average period of the various cycles present in the data.
3 yearly
years variable moving 5 yearly moving average
averages
𝒚𝟏 a -
(𝒂 + 𝒃 + 𝒄)
𝒚𝟐 b
𝟑
(𝒃 + 𝒄 + 𝒅) (𝒂 + 𝒃 + 𝒄 + 𝒅 + 𝒆)
𝒚𝟑 c
𝟑 𝟓
(𝒄 + 𝒅 + 𝒆) (𝒃 + 𝒄 + 𝒅 + 𝒆 + 𝒇)
𝒚𝟒 d
𝟑 𝟓
(𝒅 + 𝒆 + 𝒇) (𝒄 + 𝒅 + 𝒆 + 𝒇 + 𝒈)
𝒚𝟓 e
𝟑 𝟓
(𝒆 + 𝒇 + 𝒈) (𝒅 + 𝒆 + 𝒇 + 𝒈 + 𝒉)
𝒚𝟔 f
𝟑 𝟓
(𝒇 + 𝒈 + 𝒉)
𝒚𝟕 g --
𝟑
𝒚𝟖 h - --
2 yearly moving 2 yearly moving
years variable
averages centered averages
𝒚𝟏 a -- -
(𝒂 + 𝒃)
=𝑨
𝟐
(𝑨 + 𝑩)
𝒚𝟐 b
𝟐
(𝒃 + 𝒄)
=𝑩
𝟐
(𝑩 + 𝑪)
𝒚𝟑 c
𝟐
(𝒄 + 𝒅)
=𝑪
𝟐
(𝑪 + 𝑫)
𝒚𝟒 d
𝟐
(𝒅 + 𝒆)
=𝑫
𝟐
(𝑫 + 𝑬)
𝒚𝟓 e
𝟐
(𝒆 + 𝒇)
=𝑬 --
𝟐
𝒚𝟔 f -- --
4 yearly moving
years variable 4 yearly moving averages centered
averages
𝒚𝟏 a -- -
𝒚𝟐 b -- --
(𝒂 + 𝒃 + 𝒄 + 𝒅)
=𝑨
𝟒
(𝑨 + 𝑩)
𝒚𝟑 c
𝟐
(𝒃 + 𝒄 + 𝒅 + 𝒆)
=𝑩
𝟒
(𝑩 + 𝑪)
𝒚𝟒 d
𝟐
(𝒄 + 𝒅 + 𝒆 + 𝒇)
=𝑪
𝟒
𝒚𝟓 e -- --
𝒚𝟔 f -- --
PROBLEMS:
1. Calculate 3 yearly moving averages from the following data and plot
historigram and trend values on a graph
2. Calculate 3-weekly and 5-weekly moving averages from the following data
Sales Sales
Weeks Weeks
(in 00s of Rs) (in 00s of Rs)
1 6 8 14
2 7 9 15
3 9 10 13
4 8 11 16
5 10 12 17
6 13 13 15
7 11 14 18
3. Assume a four – yearly cycle and calculate the trend by the method of moving
averages from the following data relating to the production of tea in India
Production Production
Year year
(in m.tonnes) (in m.tonnes)
1994 464 1999 540
1995 515 2000 557
1996 518 2001 571
1997 467 2002 586
1998 502 2003 612
Solution:
Four-yearly Four-yearly
Production moving centered
Year
(in m. tonnes) average moving
average
1994 464
1995 515
491.00
1996 518 495.75
500.50
1997 467 503.62
506.75
1998 502 511.62
516.50
1999 540 529.50
542.50
2000 557 553.00
563..50
2001 571 572.50
581.50
2002 586
2003 612
4. Compute 2 and 4 monthly moving averages from the following from the
following data and also represent the data on the graph
Sales Sales
Month Month
(in 00s of Rs) (in 00s of Rs)
January
3 September 8
2022
February 5 October 12
March 4 November 10
April 6 December 12
January
May 5 11
2023
June 8 February 14
July 7 March 13
August 9 April 15
5. Determine the period of the moving average for the following data and calculate the
moving averages for that period.
Year 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Value 130 127 124 135 140 132 129 127 145 158 153 146 145 164 170
6. Find the trend of annual sales of a trading organisation by moving average method.
Year Annual
sales(in
Rs)
1980 40
1981 42
1982 40
1983 44
1984 49
1985 46
1986 42
1987 44
1988 44
1989 50
1990 42
1991 48
1992 46
1993 52
1994 58
1995 56
1996 51
1997 57
1998 54
1999 63
The measurement of seasonal variations is done by isolating them from other components
of a time series. There are four methods commonly used for the measurement of seasonal
variations. These methods are:
1. Method of Simple Average
2. Ratio to Trend Method
3. Ratio to Moving Average Method
4. Method of link Relatives
Seasonal 𝐴1 𝐴2 𝐴3 𝐴4
Index × 100 = 𝑠1 × 100 = 𝑆2 × 100 = 𝑆3 × 100 = 𝑆4
𝐺 𝐺 𝐺 𝐺
PROBLEMS
1. Obtain the seasonal indices for the following data by simple average method
Year Season 1 Season 2 Season 3 Season 4
2000 3.7 4.1 3.3 3.5
2001 3.7 3.9 3.6 3.6
2002 4.0 4.1 3.3 3.1
2003 3.3 4.4 4.0 4.0
Solution:
2. Consumption of monthly electric power in million of kwh for street lighting in a big city during
1999-2003 is given below
Year Jan Feb Mar Apr May June July Aug Sept Oct Nov Dec
1999 318 281 278 250 231 216 223 245 269 302 325 347
2000 342 309 299 268 249 236 242 262 288 321 342 364
2001 367 328 320 287 269 251 259 284 309 345 367 394
2002 392 349 342 311 290 273 282 305 328 364 389 471
2003 420 378 370 334 314 296 305 330 356 396 422 452
Find the seasonal variation by the method of monthly averages.
3. Obtain the seasonal indices for the rain fall (in mm) data in India given in the
following table.
Year (x) Y1 Y2 Y3 Y4 Y5
Trend Value T1 T2 T3 T4 T5
Step 4:
Calculate Quarterly Trend values using
b
Quarterly increment = 𝐼 =
4
Consider first year i.e., Y1 trend value of for the middle quarter
i.e., between 2nd and 3rd quarter is T1.
Since the quarterly increment is I, hence the trend value of
𝑰
2nd quarter is 𝑻𝟏 − = 𝑻𝟏𝟐
𝟐
𝑰
3nd quarter is 𝑻𝟏 + = 𝑻𝟏𝟑
𝟐
𝑰
1st quarter is 𝑻𝟏 − − 𝑰 = 𝑻𝟏𝟐 − 𝑰 = 𝑻𝟏𝟏
𝟐
𝑰
4th quarter is 𝑻𝟏 + + 𝑰 = 𝑻𝟏𝟑 + 𝑰 = 𝑻𝟏𝟒
𝟐
Using above method, calculate quarterly trend values for the years Y2 , Y3 , Y4 and
Y5 and write the table for the trend values as
Middle
of the
Quarters
𝑻𝟏𝟐 − 𝑰 𝑰 𝑰 𝑻𝟏𝟑 + 𝑰
𝑻𝟏 − 𝑻𝟏 +
𝟐 𝟐
T1
𝑻𝟐𝟐 − 𝑰 𝑰 𝑰 𝑻𝟐𝟑 + 𝑰
𝑻𝟐 − 𝑻𝟐 +
𝟐 𝟐
T2
T3
Y3 T31 T32 T33 T34
T4
Y4 T41 T42 T43 T44
T5
Y5 T51 T52 T53 T54
Note: Trend value of Y2 is equal to (trend value of Y1+b) and so on
Example: T21 = T11 + b , ………………. T54 = T41 + b
1st 4th
Year 2nd Quarter 3rd Quarter
Quarter Quarter
Y1 T11 T12 T13 T14
Y2 T21 T22 T23 T24
Y3 T31 T32 T33 T34
Y4 T41 T42 T43 T44
Y5 T51 T52 T53 T54
Step 5: Express given values (q11 , q12, q13 , q14 , q21 , ….q54) as percentage of the
corresponding trend values (T11 , T12, T13 , T14 , T21 , ….T54)
𝑞
Example 𝑃11 = 11 × 100 ,
𝑇11
𝑞12
𝑃12 = × 100 , …………………
𝑇12
𝑞54
𝑃54 = × 100
𝑇54
Given quarterly values as percentage of trend values
1st 2nd 4th
Year 3rd Quarter
Quarter Quarter Quarter
Y1 P11 P12 P13 P14
Y2 P21 P22 P23 P24
Y3 P31 P32 P33 P34
Y4 P41 P42 P43 P44
Y5 P51 P52 P53 P54
Step 6: Find the seasonal indices for above data by simple average method
Year 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter
Y1 P11 P12 P13 P14
Y2 P21 P22 P23 P24
Y3 P31 P32 P33 P34
Y4 P41 P42 P43 P44
Y5 P51 P52 P53 P54
Seasonal
P1 P2 P3 P4
Total
Seasonal 𝑃1 𝑃2 𝑃3 𝑃4
= 𝐴1 = 𝐴2 = 𝐴3 = 𝐴4
average 5 5 5 5
Grand 𝐴1 + 𝐴2 + 𝐴3 + 𝐴4
Average =𝐺
4
𝐴1 𝐴3 𝐴4
Seasonal × 100 𝐴2 × 100 × 100
Index 𝐺 × 100 = 𝑆𝐼2 𝐺 𝐺
= 𝑆𝐼1 𝐺 = 𝑆𝐼3 = 𝑆𝐼4
PROBLEMS
1. Using ratio to trend method, determine the quarterly seasonal indices for the
following data
Production of coal (in millions of tons)
Year 1 Quarter 2nd Quarter 3rd Quarter 4th Quarter
st
2018 68 60 61 63
2019 70 58 56 60
2020 68 63 68 67
2021 65 56 56 62
2022 60 55 55 58
Solution:
2. Using ratio to trend method, determine the quarterly seasonal indices for the
following data
Year 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter
2018 30 40 36 34
2019 34 52 50 44
2020 40 58 54 48
2021 54 76 68 62
2022 80 92 86 82
Solution:
The ratio to moving average is the most commonly used method of measuring seasonal
variations. This method assumes the presence of all the four components of a time series.
Various steps in the computation of seasonal indices are as follows:
1.Compute the moving averages with period equal to the period of seasonal variations.
This would eliminate the seasonal components and minimize the effect of random
component. The resulting moving averages would consist of trend, cyclical and random
components.
2. The original values, for each quarter ( or month) are divided by the respective moving
average figures and the ratio is expressed as a percentage, i.e. SR” = Y / M. A = TCSR /
TCR’, where R’ and R” denote the changed random components.
3. Finally, the random component R” is eliminated by the method of simple averages.
To find seasonal index by Ratio to Moving average method for the given data
Step 1: Find FOUR figure moving average from the given seasonal
data (Quarterly or Monthly) and Express given values
(q13 , q14 , q21 , ….) as percentage of the corresponding moving
average values (C1 , C2 , C3 , ….)
𝑞13
Example 𝑃13 = × 100
𝐶1
𝑞14
𝑃14 = × 100 …….
𝐶2
4 moving
4 moving % of
year Quarter Value centered
averages moving average
averages
I q11 --
II q12 --
𝒚𝟏 M1
𝒒𝟏𝟑
III q13 C1 × 𝟏𝟎𝟎 = 𝑷𝟏𝟑
𝑪𝟏
M2
𝒒𝟏𝟒
IV q14 C2 × 𝟏𝟎𝟎 = 𝑷𝟏𝟒
𝑪𝟐
M3
𝒒𝟐𝟏
I q21 C3 × 𝟏𝟎𝟎 = 𝑷𝟐𝟏
𝑪𝟑
M4
𝒒𝟐𝟐
II q22 C4 × 𝟏𝟎𝟎 = 𝑷𝟐𝟐
𝒚𝟐 𝑪𝟒
M5
𝒒𝟐𝟑
III q23 C5 × 𝟏𝟎𝟎 = 𝑷𝟐𝟑
𝑪𝟓
M6
𝒒𝟐𝟒
IV q24 C6 × 𝟏𝟎𝟎 = 𝑷𝟐𝟒
𝑪𝟔
M7
𝒒𝟑𝟏
I q31 C7 × 𝟏𝟎𝟎 = 𝑷𝟑𝟏
𝑪𝟕
M8
𝒒𝟑𝟐
II q32 C8 × 𝟏𝟎𝟎 = 𝑷𝟑𝟐
𝒚𝟑 𝑪𝟖
M9
III q33 --
IV q34 --
Step 2: Find the seasonal indices for above data by simple average
method
Year 1st Quarter 2nd Quarter 3rd Quarter 4th Quarter
Y1 -- -- P13 P14
Y2 P21 P22 P23 P24
Y3 P31 P32 -- --
Seasonal
P1 P2 P3 P4
Total
Seasonal 𝑃1 𝑃2 𝑃3 𝑃4
average = 𝐴1 = 𝐴2 = 𝐴3 = 𝐴4
2 2 2 2
Grand 𝐴1 + 𝐴2 + 𝐴3 + 𝐴4
Average =𝐺
4
𝐴1 𝐴3 𝐴4
Seasonal × 100 𝐴2 × 100 × 100
Index 𝐺 × 100 = 𝑆𝐼2 𝐺 𝐺
= 𝑆𝐼1 𝐺 = 𝑆𝐼3 = 𝑆𝐼4
PROBLEMS:
This method is based on the assumption that the trend is linear and cyclical variations are
of uniform pattern. The link relatives are percentages of the current period (quarter or
month) as compared with the previous period. With the computations of the link relatives
and their average, the effect of cyclical and the random components is minimized.
Further, the trend gets eliminated in the process of adjustment of chain relatives.
q13
Link relative of q13 = L31 = × 100
q12
q21
Link relative of q21 = L21 = × 100 …..
q14
1st 4th
Year 2nd Quarter 3rd Quarter
Quarter Quarter
Y1 -- L12 L13 L14
Y2 L21 L22 L23 L24
Y3 L31 L32 L33 L34
Y4 L41 L42 L43 L44
Y5 L51 L52 L53 L54
Step 2: Obtain the average of link relatives of a given quarter of various years.
Arithmetic Mean (Average) can be used for this purpose. Theoretically, the later is
preferable because the former gives undue importance to extreme items.
Step 3: These averages are converted into chained relatives by assuming the chained
relative of the first quarter (or month) equal to 100.
The chained relative (C.R.) for the current period (quarter ) = Chain Relative of the
previous period ×Link Relative of the current period / 100.
Step 4: Compute the CHAIN RELATIVE of the first quarter on the basis of the last
quarter (or month).
This is given by Chain Relative of the last quarter × average Link Relative of the first
𝑪𝟒 ×𝑨𝟏
quarter / 100 ie., 𝑪𝟏 =
𝟏𝟎𝟎
This value, in general, is different from 100 due to long term trend in the data. The
chained relatives, obtained above, are to be adjusted for the effect of this trend.
The adjustment factor (AF) = new Chain Relative for 1st quarter - 100
𝐴𝐹
for quaterly data 𝐷 =
4
Step 5 : On the assumption that the trend is linear D, 2D, 3D is respectively subtracted
from the 2nd , 3rd , 4th , etc quarter
Solution:
Computation of seasonal indices by link relative method
Year 1 Qrt. 2Qrt. 3Qrt. 4Qrt.
2015 --- 108.33 120 111.538
2016 62.068 146.296 106.329 86.904
2017 93.151 95.588 143.076 68.817
2018 112.5 80.555 129.310 113.333
2019 77.647 110.606 109.589 88.75
Average L R 86.341 108.275 121.6608 93.868
Chain relative 100 108.275 131.728 123.650
Adjusted C R 100 106.585 128.348 118.58
S.I. 88.20 94.01 113.20 104.59
2. Compute the seasonal indices by the ‘Link relatives’ method for the following data
Quarter 2014 2015 2016 2017
I 75 86 90 100
II 60 65 72 78
III 54 63 66 72
IV 59 80 85 93
Solution:
Computation of seasonal indices by link relative method
Year 1 Qrt. 2Qrt. 3Qrt. 4Qrt.
2020 --- 80 90 109.26
2021 145.76 75.58 96.92 126.98
2022 112.50 80 91.67 128.79
2023 117.65 78 92.31 129.17
Average L R 125.30 78.395 92.725 123.55
Chain relative 100 78.395 72.692 89.811
Adjusted C R 100 75.261 66.424 80.409
S.I. 124.188 93.465 82.491 99.858
3. Calculate the seasonal indices by the link relative method from the following data