SlideShare a Scribd company logo
Time Series Analysis
Contents
• Moving average (MA) models
• Exponential Smoothing
• ARMA Model
Moving Average Model
• Moving average (MA) models account for the possibility of a relationship between a variable and the
residuals from previous periods.
• MA(q) is moving average with q legs:
• The 1st order moving average model, denoted by MA(1) is:
• The 2nd order moving average model, denoted by MA(2) is:
• The qth order moving average model, denoted by MA(q) is:
yt=µ +εt+ 𝑖=1
𝑞
𝜃𝑖 𝜀 𝑡 − 𝑖
yt=µ +εt+Ɵ1εt-1 + Ɵ2εt-2 + ………+ Ɵqεt-q
yt=µ +εt+Ɵ1εt-1
yt=µ +εt+Ɵ1εt-1 + Ɵ2εt-2
Theoretical Properties of a Time Series with an MA(1) Model
•Mean is E(yt) = μ
•Variance is Var(yt) = σ 2(1 + θ1
2)
•Autocovarience at lag 1 is:
Var(Yt) = E(yt-μ)2
= E[(εt-θ1εt-1)2]
= E[(ε2
t+ 2θ1εtεt-1 +θ2
1ε2
t-1)]
= E[εt
2] + 2θ1E[εtεt-1 ] + θ2
1E[ε2
t-1]
= σ 2 + 2θ1 (0)+ θ1
2 σ 2
= σ 2(1 + θ1
2)
E(Yt) = E(μ+εt+θ1εt-1)
= μ + 0 + (θ1)(0)
= μ
Covar = E(yt-μ) (yt-1-μ)
= E[(εt-θ1εt-1) (εt-1-θ1εt-2)]
= E[(εtεt-1 + θ1εt-1εt-1 + θ1εtεt-2 +θ2
1εt-1 εt-2)]
= 0+ θ1E[ε2
t-1 ] + 0 + 0
= θ1σ 2
Theoretical Properties of a Time Series with an MA(1) Model
•Autocovarience at lag 2 is:
•For MA(1) , the autocovarience at higher lags (k>1) is 0.
•The autocorrelation function is: =
cov[yt,yt−k]
𝑣𝑎𝑟[𝑦𝑡]
=
θ1
σ 2
(1 + θ1
2)σ 2
•The autocorrelation of MA(q) series is non zero only for lags k≤q and is zero for all higher lags.
Cov = E(yt-μ) (yt-2-μ)
= E[(εt-θ1εt-1) (εt-2-θ1εt-3)]
= E[(εtεt-2 + θ1εt-1εt-2 + θ1εtεt-3 +θ2
1εt-1 εt-3)]
= 0+ 0 + 0 + 0
= 0
ρ1=
1 𝑘 = 0
θ1
(1 + θ1
2)
𝑘 = 1
0 𝑘 > 1
Example 1 Suppose that an MA(1) model is yt = 10 + εt + .7εt-1 .The coefficient θ1= 0.7(calculated by yule walker
method). Because this is an MA(1), the theoretical ACF will have nonzero values only at lags 1.The theoretical ACF is
given by
ρ1=
θ1
(1 + θ1
2)
=
0.7
1+0.72 = 0.4698
A plot of this ACF follows.
Determining the order MA(q)
Autocorrelation is:
The order of MA(q) model is last significant value observed from autocorrelation
function plot.
A “spike” at lag 1 followed by generally non-significant values for lags past 1. Note that the sample ACF does
not match the theoretical pattern of the underlying MA(1), which is that all autocorrelations for lags past 1 will be
0. A different sample would have a slightly different sample ACF shown above, but would likely have the same
broad features.
Moving Average Model : Forecasting
• Used for smoothing
• A series of arithmetic means over time
• Result dependent upon choice of L (length of period for computing means)
• Examples:
• For a 5 year moving average, L = 5
• For a 7 year moving average, L = 7
• Etc.
• Example: Five-year moving average
• First average:
• Second average:
• etc.
5
YYYYY
MA(5) 54321 

5
YYYYY
MA(5) 65432 

Example: Annual Data
Year Sales
1
2
3
4
5
6
7
8
9
10
11
etc…
23
40
25
27
32
48
33
37
37
50
40
etc…
Annual Sales
0
10
20
30
40
50
60
1 2 3 4 5 6 7 8 9 10 11
Year
Sales
Calculating Moving average
• Each moving average is for a consecutive block of 5 years
Year Sales
1 23
2 40
3 25
4 27
5 32
6 48
7 33
8 37
9 37
10 50
11 40
Average
Year
5-Year
Moving
Average
3 29.4
4 34.4
5 33.0
6 35.4
7 37.4
8 41.0
9 39.4
… …
5
54321
3


5
3227254023
29.4


etc…
Annual vs. Moving Average
Annual vs. 5-Year Moving Average
0
10
20
30
40
50
60
1 2 3 4 5 6 7 8 9 10 11
Year
Sales
Annual 5-Year Moving Average
• The 5-year moving average
smoothes the data and shows
the underlying trend.
Exponential Smoothing
• A weighted moving average.
• Used for smoothing and short term forecasting .
• The weight (smoothing coefficient) is α -
• Subjectively chosen
• Range from 0 to 1
• Weights decline exponentially
• Most recent observation weighted most
• Smaller W gives more smoothing, larger W gives less smoothing
• The weight is:
• Close to 0 for smoothing out unwanted cyclical and irregular components
• Close to 1 for forecasting
Exponential Smoothing Model
 Exponential smoothing model
S1=X1
St=αXt+(1-α)St-1 For t = 2, 3, 4, …
where:
St = exponentially smoothed value for period t
St-1 = exponentially smoothed value already computed for period t - 1
xt = observed value in period t
α = weight (smoothing coefficient), 0 < α < 1
Deriving the Exponential Smoothing Formula
Exponential Smoothing Example
• Suppose we use weight α = .2
Time
Period
(t)
Sales
(Xt)
Forecast
from prior
period (st-1)
Exponentially Smoothed
Value for this period (St)
1
2
3
4
5
6
7
8
9
10
etc.
23
40
25
27
32
48
33
37
37
50
etc.
--
23
26.4
26.12
26.296
27.437
31.549
31.840
32.872
33.697
etc.
23
(.2)(40)+(.8)(23)=26.4
(.2)(25)+(.8)(26.4)=26.12
(.2)(27)+(.8)(26.12)=26.296
(.2)(32)+(.8)(26.296)=27.437
(.2)(48)+(.8)(27.437)=31.549
(.2)(48)+(.8)(31.549)=31.840
(.2)(33)+(.8)(31.840)=32.872
(.2)(37)+(.8)(32.872)=33.697
(.2)(50)+(.8)(33.697)=36.958
etc.
1)1( 

tt
t
SX
S

s1 = x1 since
no prior
information
exists
Sales vs. Smoothed Sales
• Fluctuations have
been smoothed
• NOTE: the smoothed
value in this case is
generally a little low,
since the trend is
upward sloping and the
weighting factor is
only .2 0
10
20
30
40
50
60
1 2 3 4 5 6 7 8 9 10
Time Period
Sales
Sales Smoothed
ARMA Model
• Autoregressive moving average model combines both p autoregressive terms and q moving
average terms.
• Where εt ⁓ WN(0,σ2)
• Φi and Ɵi are the parameters of the process
• Special Cases: q=0 Autoregressive model(p)
p=0 Moving Average model(q)
Model :
yt=µ+ Φ1yt-1+ Φ2yt-2+…+Φpyt-p + εt + Ɵ1εt-1 + Ɵ2εt-2 + ………+ Ɵqεt-q
The models will be specified in terms of the lag operator L. In these terms then the AR(p) model is given by
Thank You

More Related Content

What's hot

Time series forecasting
Time series forecastingTime series forecasting
Time series forecasting
Firas Kastantin
 
Arch & Garch Processes
Arch & Garch ProcessesArch & Garch Processes
Arch & Garch Processes
Francescō Bianchi
 
Seasonal ARIMA
Seasonal ARIMASeasonal ARIMA
Seasonal ARIMA
Joud Khattab
 
Time series
Time seriesTime series
Time series
Haitham Ahmed
 
Lecture: Monte Carlo Methods
Lecture: Monte Carlo MethodsLecture: Monte Carlo Methods
Lecture: Monte Carlo Methods
Frank Kienle
 
Multivariate time series
Multivariate time seriesMultivariate time series
Multivariate time series
Luigi Piva CQF
 
Time series.ppt
Time series.pptTime series.ppt
Time series.ppt
ALEXANDEROPOKU1
 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time Series
Manu Antony
 
Arima model (time series)
Arima model (time series)Arima model (time series)
Arima model (time series)
Kumar P
 
Time Series Analysis.pptx
Time Series Analysis.pptxTime Series Analysis.pptx
Time Series Analysis.pptx
Sunny429247
 
Time series analysis in Stata
Time series analysis in StataTime series analysis in Stata
Time series analysis in Stata
shahisec1
 
What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?
What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?
What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?
Smarten Augmented Analytics
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
HARISH Kumar H R
 
Time Series - 1
Time Series - 1Time Series - 1
Time Series - 1
Birinder Singh Gulati
 
Time series analysis
Time series analysisTime series analysis
Time series analysis
Utkarsh Sharma
 
Presentation
PresentationPresentation
Presentation
Srinivas KNS
 
Time series modelling arima-arch
Time series modelling  arima-archTime series modelling  arima-arch
Time series modelling arima-arch
jeevan solaskar
 
Mba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisMba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisChandra Kodituwakku
 

What's hot (20)

Time series forecasting
Time series forecastingTime series forecasting
Time series forecasting
 
Arch & Garch Processes
Arch & Garch ProcessesArch & Garch Processes
Arch & Garch Processes
 
Seasonal ARIMA
Seasonal ARIMASeasonal ARIMA
Seasonal ARIMA
 
Time series
Time seriesTime series
Time series
 
Lecture: Monte Carlo Methods
Lecture: Monte Carlo MethodsLecture: Monte Carlo Methods
Lecture: Monte Carlo Methods
 
Multivariate time series
Multivariate time seriesMultivariate time series
Multivariate time series
 
Time series.ppt
Time series.pptTime series.ppt
Time series.ppt
 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time Series
 
Arima model (time series)
Arima model (time series)Arima model (time series)
Arima model (time series)
 
Time Series Analysis.pptx
Time Series Analysis.pptxTime Series Analysis.pptx
Time Series Analysis.pptx
 
Time series analysis in Stata
Time series analysis in StataTime series analysis in Stata
Time series analysis in Stata
 
What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?
What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?
What is ARIMAX Forecasting and How is it Used for Enterprise Analysis?
 
AR model
AR modelAR model
AR model
 
Multinomial Logistic Regression Analysis
Multinomial Logistic Regression AnalysisMultinomial Logistic Regression Analysis
Multinomial Logistic Regression Analysis
 
Time Series - 1
Time Series - 1Time Series - 1
Time Series - 1
 
Time series analysis
Time series analysisTime series analysis
Time series analysis
 
Presentation
PresentationPresentation
Presentation
 
Time series modelling arima-arch
Time series modelling  arima-archTime series modelling  arima-arch
Time series modelling arima-arch
 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
 
Mba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysisMba 532 2011_part_3_time_series_analysis
Mba 532 2011_part_3_time_series_analysis
 

Viewers also liked

2017.03.09 collaboration is key to thriving in the 21st century
2017.03.09 collaboration is key to thriving in the 21st century2017.03.09 collaboration is key to thriving in the 21st century
2017.03.09 collaboration is key to thriving in the 21st century
NUI Galway
 
2012.09.27 Lessons Learned from Doing Qualitative Research
2012.09.27 Lessons Learned from Doing Qualitative Research2012.09.27 Lessons Learned from Doing Qualitative Research
2012.09.27 Lessons Learned from Doing Qualitative Research
NUI Galway
 
Forecasting solid waste generation in Juba Town, South Sudan using Artificial...
Forecasting solid waste generation in Juba Town, South Sudan using Artificial...Forecasting solid waste generation in Juba Town, South Sudan using Artificial...
Forecasting solid waste generation in Juba Town, South Sudan using Artificial...
Premier Publishers
 
FPGA Implementation of a GA
FPGA Implementation of a GAFPGA Implementation of a GA
FPGA Implementation of a GA
Hocine Merabti
 
ARMA and VAR modelling of Industrial Production in America
ARMA and VAR modelling of Industrial Production in AmericaARMA and VAR modelling of Industrial Production in America
ARMA and VAR modelling of Industrial Production in America
Emilio José Calle Celi
 
2017.03.09 innovation and why it matters more in the 21st century than ever b...
2017.03.09 innovation and why it matters more in the 21st century than ever b...2017.03.09 innovation and why it matters more in the 21st century than ever b...
2017.03.09 innovation and why it matters more in the 21st century than ever b...
NUI Galway
 
2017.02.08 The Darkside of Enterprise Social Media
2017.02.08 The Darkside of Enterprise Social Media2017.02.08 The Darkside of Enterprise Social Media
2017.02.08 The Darkside of Enterprise Social Media
NUI Galway
 
2012.09.18 exploring the glocalization of activism and empowerment
2012.09.18 exploring the glocalization of activism and empowerment2012.09.18 exploring the glocalization of activism and empowerment
2012.09.18 exploring the glocalization of activism and empowerment
NUI Galway
 
2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...
2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...
2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...
NUI Galway
 
Forecasting IP using ARMA and VAR
Forecasting IP using ARMA and VARForecasting IP using ARMA and VAR
Forecasting IP using ARMA and VAR
Emilio José Calle Celi
 
2017.05.24 coaching yourself to success
2017.05.24 coaching yourself to success2017.05.24 coaching yourself to success
2017.05.24 coaching yourself to success
NUI Galway
 

Viewers also liked (12)

2017.03.09 collaboration is key to thriving in the 21st century
2017.03.09 collaboration is key to thriving in the 21st century2017.03.09 collaboration is key to thriving in the 21st century
2017.03.09 collaboration is key to thriving in the 21st century
 
2012.09.27 Lessons Learned from Doing Qualitative Research
2012.09.27 Lessons Learned from Doing Qualitative Research2012.09.27 Lessons Learned from Doing Qualitative Research
2012.09.27 Lessons Learned from Doing Qualitative Research
 
Forecasting solid waste generation in Juba Town, South Sudan using Artificial...
Forecasting solid waste generation in Juba Town, South Sudan using Artificial...Forecasting solid waste generation in Juba Town, South Sudan using Artificial...
Forecasting solid waste generation in Juba Town, South Sudan using Artificial...
 
Final Report SCP
Final Report SCPFinal Report SCP
Final Report SCP
 
FPGA Implementation of a GA
FPGA Implementation of a GAFPGA Implementation of a GA
FPGA Implementation of a GA
 
ARMA and VAR modelling of Industrial Production in America
ARMA and VAR modelling of Industrial Production in AmericaARMA and VAR modelling of Industrial Production in America
ARMA and VAR modelling of Industrial Production in America
 
2017.03.09 innovation and why it matters more in the 21st century than ever b...
2017.03.09 innovation and why it matters more in the 21st century than ever b...2017.03.09 innovation and why it matters more in the 21st century than ever b...
2017.03.09 innovation and why it matters more in the 21st century than ever b...
 
2017.02.08 The Darkside of Enterprise Social Media
2017.02.08 The Darkside of Enterprise Social Media2017.02.08 The Darkside of Enterprise Social Media
2017.02.08 The Darkside of Enterprise Social Media
 
2012.09.18 exploring the glocalization of activism and empowerment
2012.09.18 exploring the glocalization of activism and empowerment2012.09.18 exploring the glocalization of activism and empowerment
2012.09.18 exploring the glocalization of activism and empowerment
 
2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...
2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...
2013.06.18 Time Series Analysis Workshop ..Applications in Physiology, Climat...
 
Forecasting IP using ARMA and VAR
Forecasting IP using ARMA and VARForecasting IP using ARMA and VAR
Forecasting IP using ARMA and VAR
 
2017.05.24 coaching yourself to success
2017.05.24 coaching yourself to success2017.05.24 coaching yourself to success
2017.05.24 coaching yourself to success
 

Similar to Time series Analysis

Time series Modelling Basics
Time series Modelling BasicsTime series Modelling Basics
Time series Modelling Basics
Ashutosh Kumar
 
Forecasting exponential smoothing
Forecasting exponential smoothingForecasting exponential smoothing
Forecasting exponential smoothing
Doiyan
 
Univariate Financial Time Series Analysis
Univariate Financial Time Series AnalysisUnivariate Financial Time Series Analysis
Univariate Financial Time Series Analysis
Anissa ATMANI
 
Av 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background MaterialAv 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background Material
Dr. Bilal Siddiqui, C.Eng., MIMechE, FRAeS
 
stochastic processes-2.ppt
stochastic processes-2.pptstochastic processes-2.ppt
stochastic processes-2.ppt
kjbvhjgcdrxs46d576fu
 
NLP_KASHK:Markov Models
NLP_KASHK:Markov ModelsNLP_KASHK:Markov Models
NLP_KASHK:Markov Models
Hemantha Kulathilake
 
Chapter 5.pptx
Chapter 5.pptxChapter 5.pptx
Chapter 5.pptx
Tekle12
 
Lec1 01
Lec1 01Lec1 01
Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3
Fabian Pedregosa
 
Recent developments on unbiased MCMC
Recent developments on unbiased MCMCRecent developments on unbiased MCMC
Recent developments on unbiased MCMC
Pierre Jacob
 
LeastSquaresParameterEstimation.ppt
LeastSquaresParameterEstimation.pptLeastSquaresParameterEstimation.ppt
LeastSquaresParameterEstimation.ppt
StavrovDule2
 
Lecture 23 24-time_response
Lecture 23 24-time_responseLecture 23 24-time_response
Lecture 23 24-time_response
Syed Ali Raza Rizvi
 
Forecasting exponential smoothing
Forecasting exponential smoothingForecasting exponential smoothing
Forecasting exponential smoothing
Sublaxmi Gupta
 
Effect of global market on indian market
Effect of global market on indian marketEffect of global market on indian market
Effect of global market on indian marketArpit Jain
 
Unbiased MCMC with couplings
Unbiased MCMC with couplingsUnbiased MCMC with couplings
Unbiased MCMC with couplings
Pierre Jacob
 
lec-7_phase_plane_analysis.pptx
lec-7_phase_plane_analysis.pptxlec-7_phase_plane_analysis.pptx
lec-7_phase_plane_analysis.pptx
datamboli
 

Similar to Time series Analysis (20)

Time series Modelling Basics
Time series Modelling BasicsTime series Modelling Basics
Time series Modelling Basics
 
Forecasting exponential smoothing
Forecasting exponential smoothingForecasting exponential smoothing
Forecasting exponential smoothing
 
Univariate Financial Time Series Analysis
Univariate Financial Time Series AnalysisUnivariate Financial Time Series Analysis
Univariate Financial Time Series Analysis
 
ACF.ppt
ACF.pptACF.ppt
ACF.ppt
 
ETSATPWAATFU
ETSATPWAATFUETSATPWAATFU
ETSATPWAATFU
 
Av 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background MaterialAv 738- Adaptive Filtering - Background Material
Av 738- Adaptive Filtering - Background Material
 
ARIMA.pptx
ARIMA.pptxARIMA.pptx
ARIMA.pptx
 
stochastic processes-2.ppt
stochastic processes-2.pptstochastic processes-2.ppt
stochastic processes-2.ppt
 
NLP_KASHK:Markov Models
NLP_KASHK:Markov ModelsNLP_KASHK:Markov Models
NLP_KASHK:Markov Models
 
Chapter 5.pptx
Chapter 5.pptxChapter 5.pptx
Chapter 5.pptx
 
Ch6 slides
Ch6 slidesCh6 slides
Ch6 slides
 
Lec1 01
Lec1 01Lec1 01
Lec1 01
 
Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3Random Matrix Theory and Machine Learning - Part 3
Random Matrix Theory and Machine Learning - Part 3
 
Recent developments on unbiased MCMC
Recent developments on unbiased MCMCRecent developments on unbiased MCMC
Recent developments on unbiased MCMC
 
LeastSquaresParameterEstimation.ppt
LeastSquaresParameterEstimation.pptLeastSquaresParameterEstimation.ppt
LeastSquaresParameterEstimation.ppt
 
Lecture 23 24-time_response
Lecture 23 24-time_responseLecture 23 24-time_response
Lecture 23 24-time_response
 
Forecasting exponential smoothing
Forecasting exponential smoothingForecasting exponential smoothing
Forecasting exponential smoothing
 
Effect of global market on indian market
Effect of global market on indian marketEffect of global market on indian market
Effect of global market on indian market
 
Unbiased MCMC with couplings
Unbiased MCMC with couplingsUnbiased MCMC with couplings
Unbiased MCMC with couplings
 
lec-7_phase_plane_analysis.pptx
lec-7_phase_plane_analysis.pptxlec-7_phase_plane_analysis.pptx
lec-7_phase_plane_analysis.pptx
 

Recently uploaded

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
ydteq
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
gdsczhcet
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
ssuser7dcef0
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
top1002
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
ChristineTorrepenida1
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
SamSarthak3
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
manasideore6
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
Vijay Dialani, PhD
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
aqil azizi
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
Aditya Rajan Patra
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
SyedAbiiAzazi1
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
VENKATESHvenky89705
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
TeeVichai
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
WENKENLI1
 

Recently uploaded (20)

CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
一比一原版(UofT毕业证)多伦多大学毕业证成绩单如何办理
 
Gen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdfGen AI Study Jams _ For the GDSC Leads in India.pdf
Gen AI Study Jams _ For the GDSC Leads in India.pdf
 
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
NUMERICAL SIMULATIONS OF HEAT AND MASS TRANSFER IN CONDENSING HEAT EXCHANGERS...
 
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Basic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparelBasic Industrial Engineering terms for apparel
Basic Industrial Engineering terms for apparel
 
Unbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptxUnbalanced Three Phase Systems and circuits.pptx
Unbalanced Three Phase Systems and circuits.pptx
 
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdfAKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
AKS UNIVERSITY Satna Final Year Project By OM Hardaha.pdf
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Fundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptxFundamentals of Electric Drives and its applications.pptx
Fundamentals of Electric Drives and its applications.pptx
 
ML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptxML for identifying fraud using open blockchain data.pptx
ML for identifying fraud using open blockchain data.pptx
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdfTutorial for 16S rRNA Gene Analysis with QIIME2.pdf
Tutorial for 16S rRNA Gene Analysis with QIIME2.pdf
 
Recycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part IIIRecycled Concrete Aggregate in Construction Part III
Recycled Concrete Aggregate in Construction Part III
 
Standard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - NeometrixStandard Reomte Control Interface - Neometrix
Standard Reomte Control Interface - Neometrix
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application14 Template Contractual Notice - EOT Application
14 Template Contractual Notice - EOT Application
 
road safety engineering r s e unit 3.pdf
road safety engineering  r s e unit 3.pdfroad safety engineering  r s e unit 3.pdf
road safety engineering r s e unit 3.pdf
 
Railway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdfRailway Signalling Principles Edition 3.pdf
Railway Signalling Principles Edition 3.pdf
 
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdfGoverning Equations for Fundamental Aerodynamics_Anderson2010.pdf
Governing Equations for Fundamental Aerodynamics_Anderson2010.pdf
 

Time series Analysis

  • 2. Contents • Moving average (MA) models • Exponential Smoothing • ARMA Model
  • 3. Moving Average Model • Moving average (MA) models account for the possibility of a relationship between a variable and the residuals from previous periods. • MA(q) is moving average with q legs: • The 1st order moving average model, denoted by MA(1) is: • The 2nd order moving average model, denoted by MA(2) is: • The qth order moving average model, denoted by MA(q) is: yt=µ +εt+ 𝑖=1 𝑞 𝜃𝑖 𝜀 𝑡 − 𝑖 yt=µ +εt+Ɵ1εt-1 + Ɵ2εt-2 + ………+ Ɵqεt-q yt=µ +εt+Ɵ1εt-1 yt=µ +εt+Ɵ1εt-1 + Ɵ2εt-2
  • 4. Theoretical Properties of a Time Series with an MA(1) Model •Mean is E(yt) = μ •Variance is Var(yt) = σ 2(1 + θ1 2) •Autocovarience at lag 1 is: Var(Yt) = E(yt-μ)2 = E[(εt-θ1εt-1)2] = E[(ε2 t+ 2θ1εtεt-1 +θ2 1ε2 t-1)] = E[εt 2] + 2θ1E[εtεt-1 ] + θ2 1E[ε2 t-1] = σ 2 + 2θ1 (0)+ θ1 2 σ 2 = σ 2(1 + θ1 2) E(Yt) = E(μ+εt+θ1εt-1) = μ + 0 + (θ1)(0) = μ Covar = E(yt-μ) (yt-1-μ) = E[(εt-θ1εt-1) (εt-1-θ1εt-2)] = E[(εtεt-1 + θ1εt-1εt-1 + θ1εtεt-2 +θ2 1εt-1 εt-2)] = 0+ θ1E[ε2 t-1 ] + 0 + 0 = θ1σ 2
  • 5. Theoretical Properties of a Time Series with an MA(1) Model •Autocovarience at lag 2 is: •For MA(1) , the autocovarience at higher lags (k>1) is 0. •The autocorrelation function is: = cov[yt,yt−k] 𝑣𝑎𝑟[𝑦𝑡] = θ1 σ 2 (1 + θ1 2)σ 2 •The autocorrelation of MA(q) series is non zero only for lags k≤q and is zero for all higher lags. Cov = E(yt-μ) (yt-2-μ) = E[(εt-θ1εt-1) (εt-2-θ1εt-3)] = E[(εtεt-2 + θ1εt-1εt-2 + θ1εtεt-3 +θ2 1εt-1 εt-3)] = 0+ 0 + 0 + 0 = 0 ρ1= 1 𝑘 = 0 θ1 (1 + θ1 2) 𝑘 = 1 0 𝑘 > 1
  • 6. Example 1 Suppose that an MA(1) model is yt = 10 + εt + .7εt-1 .The coefficient θ1= 0.7(calculated by yule walker method). Because this is an MA(1), the theoretical ACF will have nonzero values only at lags 1.The theoretical ACF is given by ρ1= θ1 (1 + θ1 2) = 0.7 1+0.72 = 0.4698 A plot of this ACF follows.
  • 7. Determining the order MA(q) Autocorrelation is: The order of MA(q) model is last significant value observed from autocorrelation function plot.
  • 8. A “spike” at lag 1 followed by generally non-significant values for lags past 1. Note that the sample ACF does not match the theoretical pattern of the underlying MA(1), which is that all autocorrelations for lags past 1 will be 0. A different sample would have a slightly different sample ACF shown above, but would likely have the same broad features.
  • 9. Moving Average Model : Forecasting • Used for smoothing • A series of arithmetic means over time • Result dependent upon choice of L (length of period for computing means) • Examples: • For a 5 year moving average, L = 5 • For a 7 year moving average, L = 7 • Etc. • Example: Five-year moving average • First average: • Second average: • etc. 5 YYYYY MA(5) 54321   5 YYYYY MA(5) 65432  
  • 10. Example: Annual Data Year Sales 1 2 3 4 5 6 7 8 9 10 11 etc… 23 40 25 27 32 48 33 37 37 50 40 etc… Annual Sales 0 10 20 30 40 50 60 1 2 3 4 5 6 7 8 9 10 11 Year Sales
  • 11. Calculating Moving average • Each moving average is for a consecutive block of 5 years Year Sales 1 23 2 40 3 25 4 27 5 32 6 48 7 33 8 37 9 37 10 50 11 40 Average Year 5-Year Moving Average 3 29.4 4 34.4 5 33.0 6 35.4 7 37.4 8 41.0 9 39.4 … … 5 54321 3   5 3227254023 29.4   etc…
  • 12. Annual vs. Moving Average Annual vs. 5-Year Moving Average 0 10 20 30 40 50 60 1 2 3 4 5 6 7 8 9 10 11 Year Sales Annual 5-Year Moving Average • The 5-year moving average smoothes the data and shows the underlying trend.
  • 13. Exponential Smoothing • A weighted moving average. • Used for smoothing and short term forecasting . • The weight (smoothing coefficient) is α - • Subjectively chosen • Range from 0 to 1 • Weights decline exponentially • Most recent observation weighted most • Smaller W gives more smoothing, larger W gives less smoothing • The weight is: • Close to 0 for smoothing out unwanted cyclical and irregular components • Close to 1 for forecasting
  • 14. Exponential Smoothing Model  Exponential smoothing model S1=X1 St=αXt+(1-α)St-1 For t = 2, 3, 4, … where: St = exponentially smoothed value for period t St-1 = exponentially smoothed value already computed for period t - 1 xt = observed value in period t α = weight (smoothing coefficient), 0 < α < 1
  • 15. Deriving the Exponential Smoothing Formula
  • 16. Exponential Smoothing Example • Suppose we use weight α = .2 Time Period (t) Sales (Xt) Forecast from prior period (st-1) Exponentially Smoothed Value for this period (St) 1 2 3 4 5 6 7 8 9 10 etc. 23 40 25 27 32 48 33 37 37 50 etc. -- 23 26.4 26.12 26.296 27.437 31.549 31.840 32.872 33.697 etc. 23 (.2)(40)+(.8)(23)=26.4 (.2)(25)+(.8)(26.4)=26.12 (.2)(27)+(.8)(26.12)=26.296 (.2)(32)+(.8)(26.296)=27.437 (.2)(48)+(.8)(27.437)=31.549 (.2)(48)+(.8)(31.549)=31.840 (.2)(33)+(.8)(31.840)=32.872 (.2)(37)+(.8)(32.872)=33.697 (.2)(50)+(.8)(33.697)=36.958 etc. 1)1(   tt t SX S  s1 = x1 since no prior information exists
  • 17. Sales vs. Smoothed Sales • Fluctuations have been smoothed • NOTE: the smoothed value in this case is generally a little low, since the trend is upward sloping and the weighting factor is only .2 0 10 20 30 40 50 60 1 2 3 4 5 6 7 8 9 10 Time Period Sales Sales Smoothed
  • 18. ARMA Model • Autoregressive moving average model combines both p autoregressive terms and q moving average terms. • Where εt ⁓ WN(0,σ2) • Φi and Ɵi are the parameters of the process • Special Cases: q=0 Autoregressive model(p) p=0 Moving Average model(q) Model : yt=µ+ Φ1yt-1+ Φ2yt-2+…+Φpyt-p + εt + Ɵ1εt-1 + Ɵ2εt-2 + ………+ Ɵqεt-q
  • 19. The models will be specified in terms of the lag operator L. In these terms then the AR(p) model is given by