Time Series Analysis
Time Series Analysis
An Introduction
WHAT IS A TIME SERIES?
• Series of observations recorded sequentially over
a period of time (i.e. a collection of observations
recorded along with the time stamp)
• Represented as
(t,Yt ); t = 1,...,n
• Yt may be univariate (single variable) or
multivariate (collection of variables of interest)
• Frequency of observations: yearly, quarterly,
monthly, weekly, daily or tick (i.e. as and when
data changes)
8/2/23 Amit Mitra 2
ANALYSIS OF TIME SERIES
• Identify the dominant feature (s) of an observed
time series
• Explain the movements of the time series
through an “appropriate” stochastic process and
study the characteristics of the process
• Identify possible cause-effect or lead-lag
relationship between related time series
• Fit (through estimation of parameters) a
statistical model and build a predictive model for
forecasting
• Build early warning prediction system for possible
future adverse events
8/2/23 Amit Mitra 3
APPLICATION AREAS
• FINANCIAL: Exchange rate forecasting, share price
movements, credit card fraud detection
• ECONOMIC: Modeling of Economic fundamentals data,
e.g. GDP, GNP, inflation, employment rate
• BIO-MEDICAL: Monitoring/modeling ECG, EEG,
Diastolic & systolic pressure
• SPEECH: Digitized speech signal data-synthesis and
analysis
• METEOROLOGICAL: Forecasting and/or relationship
between rainfall, temperature, pressure, air pollution
• Wireless communication, radar signal, nowcasting in
aviation, demographic, ……….. ……..
INR/EURO Daily
INR/USD Daily
8/2/23 Amit Mitra 7
FINANCIAL TIME SERIES
U.S. Weekly Interest Rates
Red line is 1-year; Blue line is 3-year
16
14
12
percent
10
8
6
4
Time in weeks
2400000
2200000
2000000
1800000
1600000
1400000
1200000
1000000
22/01/10 10/08/10 26/02/11 14/09/11 01/04/12 18/10/12
300000
Thousands
250000
200000
150000
100000
50000
0
0 5 10 15 20
Positions of cycle:
Prosperity/Peak, recession, depression/ trough, recovery
Deterministic
components
Stochastic
component:
Extensions
• Weighted MA
• Exponential Weighted MA
yt = a + b t
• Unknown constants estimated using least
squares
Amit Mitra
29
Beyond Linear Trend
• Quadratic and higher order trends can also be
fitted using OLS
𝑋 𝜔, 𝑡
33
• We are concerned with processes
indexed by time, either continuous
time or discrete time processes
0.25
0.2
0.15
0.1
0.05
-0.05
-0.1
-0.15
-0.2
-0.25
0 10 20 30 40 50 60 70
White Noise
0.6
0.4
0.2
0
-0.2
-0.4
-0.6
.7
2.25
2 .65
1.75 .6
1.25
.5
1
.45
.75
.4
.5
.25 .35
0 50 100 150 200 250 300 350 400 450 0 50 100 150 200 250
9.3
9.2
GNP
9.1
8.9
8.8
8.7
6 3.5
4 3
2 2.5
0 2
-2 1.5
-4 1
-6 0.5
-8
0 20 40 60 80 100 120 140 160 180 200 0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
4
10
3.5
5 3
2.5
0
2
-5 1.5
1
-10
0.5
-15
0 50 100 150 200 250 300 350 400 450 500 0
0 0.05 0.1 0.15 0.2 0.25 0.3 0.35 0.4 0.45 0.5
• VAR, VMA………
• THRESHOLD AR (TAR)
• SELF EXCITED TAR (SETAR)
• AUTOREGRESSIVE CONDITIONAL
HETEROSKADASTIC (ARCH)
• GENERALIZED ARCH (GARCH)
Error Error
0 0
0 0
T T
Random errors periodic effects not accounted for
T
Trend not accounted for
MODELING OF TIME SERIES
350
300
250
200
150
100
50
0
May-83
May-85
May-87
May-89
May-91
May-93
May-95
May-97
May-99
May-01
May-03
May-05
May-07
• Actual monthly index for industrial production (IIP) and
fitted seasonal-arima model
8/2/23 Amit Mitra 56
FITTING OF ECG SIGNAL
Fitted Against Observed
500
400
300
200
100
-100
-200
0 100 200 300 400 500 600
1300
Index
1100
900
700
-10
20
30
10
Aug-82
Feb-83
Aug-83
Feb-84
Aug-84
Feb-85
Aug-85
Feb-86
Aug-86
Feb-87
Aug-87
Feb-88
Aug-88
Feb-89
Actual
Aug-89
Feb-90
Amit Mitra
Aug-90
Feb-91
Aug-91
Predicted
Feb-92
Aug-92
IIP (growth rate)
Feb-93
Aug-93
Feb-94
Aug-94
Feb-95
Aug-95
Feb-96
Neuro-Genetic forecasting model of
Aug-96
Feb-97
60
Some Standard Text Books
• Introduction to Time Series and Forecasting-
P.J.Brockwell & R.A.Davies