SlideShare a Scribd company logo
1 of 24
Lesson 4: AR-MA
1
Learning Objectives
You will be able to do the following:
๏‚ง Describe the autocorrelation function (ACF).
๏‚ง Describe the partial autocorrelation function (PACF).
๏‚ง Explain how autoregressive and moving average models work.
๏‚ง Use Python* to fit autocorrelation models.
2
ACF and PACF
Autocorrelation Function (ACF)
๏‚ง Measures the correlation of a signal with a delayed copy of itself.
๏‚ง It is used to find repeating patterns in a signal, such as the presence of a
periodic signal.
where ฮผ is the mean and ฯƒ2 is the variance
๐‘… ๐œ =
๐ธ ๐‘‹๐‘ก โˆ’ ๐œ‡ ๐‘‹๐‘ก+๐œ โˆ’ ๐œ‡
๐œŽ2
4
Autocorrelation Function (ACF)
Observed Data ACF Plot
5
https://commons.wikimedia.org/wiki/File:Acf_new.svg
Partial Autocorrelation Function
The partial autocorrelation at lag k is the autocorrelation between Xt and Xt-k
that is not accounted for by lags 1 through k-1
where Pt,k(x) denotes the projection of x onto the space spanning xt+1, โ€ฆ. xt+k-1
๐›ผ 1 = ๐ถ๐‘œ๐‘Ÿ ๐‘ฅ ๐‘ก+1, ๐‘ฅ
๐›ผ ๐‘˜ = ๐ถ๐‘œ๐‘Ÿ ๐‘ฅ ๐‘ก+๐‘˜ โˆ’ ๐‘ƒ๐‘ก,๐‘˜ ๐‘ฅ ๐‘ก+๐‘˜ , ๐‘ฅ ๐‘ก โˆ’ ๐‘ƒ๐‘ก,๐‘˜(๐‘ฅ ๐‘ก)
6
Autoregressive Models
Autoregressive Models (AR)
๏‚ง A common approach to model univariate time series is to use autoregressive
models (AR).
๏‚ง An AR model is a linear regression of the current value of the series against
one or more prior values of the series.
๏‚ง Uses maximum likelihood estimators to determine coefficients instead of
least squares.
8
Autoregressive Models (AR)
The notation AR(p) indicates an autoregressive model of order p.
where ฯ†i are the parameters of the model and ฮตt is white noise.
๐‘‹๐‘ก =
๐‘–=1
๐‘
๐œ‘๐‘– ๐‘‹๐‘กโˆ’๐‘– + ๐œ€๐‘ก
9
Autoregressive Models (AR)
๏‚ง Useful for short term forecasts
๏‚ง This model can forecast up to p values
10
Steps for Forecasting with AR
Step 1: Model the trend and/or seasonality of a time series and subtract it from
the data (Xt = Observedt โ€“ Trendt โ€“ Seasonalityt)
Step 2: Calculate AR on Xt to obtain Xt+1
Step 3: Forecast = Xt+1 + Trendt + Seasonalityt
11
ACF Plot Details
Observed Data ACF Plot
12
https://commons.wikimedia.org/wiki/File:Acf_new.svg
PACF Plot
PACF Plot
๏‚ง Letโ€™s say we generated the PACF plot to
the right.
๏‚ง We see a single significant spike at lag
1.
๏‚ง This means that all other significant
spikes in the ACF plot are explained by
the spike at lag 1.
๏‚ง Therefore, we would choose the model
AR(1).
13
Source: https://people.duke.edu/~rnau/411arim3.htm
Moving Average Models
Moving Average Models (MA)
๏‚ง Another common approach to modeling univariate time series is the moving
average (MA) model.
๏‚ง MA models are conceptually a linear regression of the current value of the
series against the white noise of one or more of the previous values of the
series.
๏‚ง The noise at each point is assumed to come from a normal distribution with
mean 0 and constant variance.
15
Moving Average Models (MA)
๏‚ง Fitting MA estimates is more complicated than AR models because the error
terms are not observable.
๏‚ง As a result, iterative nonlinear fitting procedures need to be used.
๏‚ง MA models are less interpretable than AR models.
16
Moving Average Models (MA)
The notation MA(q) indicates a moving average model of order q.
where ฮธi are the parameters of the model and ฮตt is white noise.
๐‘‹๐‘ก = ๐œ€๐‘ก +
๐‘–=1
๐‘ž
๐œƒ๐‘– ๐œ€๐‘กโˆ’๐‘–
17
Moving Average Models (MA)
๏‚ง We talked about smoothing with a moving average in Lesson 3.
๏‚ง Moving average models are not the same as smoothing.
๏‚ง Please donโ€™t confuse the two.
18
AR or MA Model?
๏‚ง If the PACF drops sharply at a given lag or the first lag autocorrelation is
positive, then use an AR model with order p equal to the lag just before the
sharp decline.
๏‚ง If the ACF drops sharply at a given lag or the first lag autocorrelation is
negative, then use an MA model with order q equal to the lag just before
the sharp decline.
19
Applications in Python
Use Python to Fit Autocorrelation Models
Next up is a look at applying these concepts in Python.
๏‚ง See notebook entitled Autocorrelation_student.ipynb
21
Learning Objectives Recap
In this session you learned how to do the following:
๏‚ง Describe the autocorrelation function (ACF)
๏‚ง Describe the partial autocorrelation function (PACF).
๏‚ง Explain how autoregressive and moving average models work.
๏‚ง Use Python to fit autocorrelation models.
22
Legal Notices and Disclaimers
This presentation is for informational purposes only. INTEL MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS
SUMMARY.
Intel technologiesโ€™ features and benefits depend on system configuration and may require enabled hardware, software or
service activation. Performance varies depending on system configuration. Check with your system manufacturer or
retailer or learn more at intel.com.
Sample source code is released under the Intel Sample Source Code License Agreement.
Intel, the Intel logo, the Intel. Experience Whatโ€™s Inside logo, and Intel. Experience Whatโ€™s Inside are trademarks of Intel
Corporation in the U.S. and/or other countries.
*Other names and brands may be claimed as the property of others.
Copyright ยฉ 2018, Intel Corporation. All rights reserved.
23
Lesson 4 ar-ma

More Related Content

What's hot

Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet MahanaArima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet MahanaAmrinder Arora
ย 
Seasonal ARIMA
Seasonal ARIMASeasonal ARIMA
Seasonal ARIMAJoud Khattab
ย 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time SeriesManu Antony
ย 
Time Series
Time SeriesTime Series
Time Seriesyush313
ย 
Time series forecasting with machine learning
Time series forecasting with machine learningTime series forecasting with machine learning
Time series forecasting with machine learningDr Wei Liu
ย 
Time Series, Moving Average
Time Series, Moving AverageTime Series, Moving Average
Time Series, Moving AverageSOMASUNDARAM T
ย 
Time series forecasting
Time series forecastingTime series forecasting
Time series forecastingFiras Kastantin
ย 
Introduction to Maximum Likelihood Estimator
Introduction to Maximum Likelihood EstimatorIntroduction to Maximum Likelihood Estimator
Introduction to Maximum Likelihood EstimatorAmir Al-Ansary
ย 
Time Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingTime Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingMaruthi Nataraj K
ย 
Time series
Time seriesTime series
Time seriesHaitham Ahmed
ย 
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
ย 
Presentation
PresentationPresentation
PresentationSrinivas KNS
ย 
ForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential SmoothingForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential SmoothingDeepThought, Inc.
ย 
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...Simplilearn
ย 
Deep learning and feature extraction for time series forecasting
Deep learning and feature extraction for time series forecastingDeep learning and feature extraction for time series forecasting
Deep learning and feature extraction for time series forecastingPavel Filonov
ย 
Multivariate analysis - Multiple regression analysis
Multivariate analysis -  Multiple regression analysisMultivariate analysis -  Multiple regression analysis
Multivariate analysis - Multiple regression analysisRaihanathusSahdhiyya
ย 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation PresentationIrfan Hussain
ย 

What's hot (20)

Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet MahanaArima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
Arima Forecasting - Presentation by Sera Cresta, Nora Alosaimi and Puneet Mahana
ย 
Seasonal ARIMA
Seasonal ARIMASeasonal ARIMA
Seasonal ARIMA
ย 
Analysis of Time Series
Analysis of Time SeriesAnalysis of Time Series
Analysis of Time Series
ย 
Time Series
Time SeriesTime Series
Time Series
ย 
Time series forecasting with machine learning
Time series forecasting with machine learningTime series forecasting with machine learning
Time series forecasting with machine learning
ย 
Timeseries forecasting
Timeseries forecastingTimeseries forecasting
Timeseries forecasting
ย 
Arima
ArimaArima
Arima
ย 
Time Series, Moving Average
Time Series, Moving AverageTime Series, Moving Average
Time Series, Moving Average
ย 
Time series forecasting
Time series forecastingTime series forecasting
Time series forecasting
ย 
Introduction to Maximum Likelihood Estimator
Introduction to Maximum Likelihood EstimatorIntroduction to Maximum Likelihood Estimator
Introduction to Maximum Likelihood Estimator
ย 
Time Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and ForecastingTime Series Analysis - Modeling and Forecasting
Time Series Analysis - Modeling and Forecasting
ย 
Time series
Time seriesTime series
Time series
ย 
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
ย 
Multivariate analysis
Multivariate analysisMultivariate analysis
Multivariate analysis
ย 
Presentation
PresentationPresentation
Presentation
ย 
ForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential SmoothingForecastIT 3. Simple Exponential Smoothing
ForecastIT 3. Simple Exponential Smoothing
ย 
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
Time Series Analysis - 2 | Time Series in R | ARIMA Model Forecasting | Data ...
ย 
Deep learning and feature extraction for time series forecasting
Deep learning and feature extraction for time series forecastingDeep learning and feature extraction for time series forecasting
Deep learning and feature extraction for time series forecasting
ย 
Multivariate analysis - Multiple regression analysis
Multivariate analysis -  Multiple regression analysisMultivariate analysis -  Multiple regression analysis
Multivariate analysis - Multiple regression analysis
ย 
Auto Correlation Presentation
Auto Correlation PresentationAuto Correlation Presentation
Auto Correlation Presentation
ย 

Similar to Lesson 4 ar-ma

Project time series ppt
Project time series pptProject time series ppt
Project time series pptamar patil
ย 
CHAC Algorithm ECAL'07 Presentation
CHAC Algorithm ECAL'07 PresentationCHAC Algorithm ECAL'07 Presentation
CHAC Algorithm ECAL'07 PresentationAntonio Mora
ย 
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Filip Krikava
ย 
Verification of confliction and unreachability in rule based expert systems w...
Verification of confliction and unreachability in rule based expert systems w...Verification of confliction and unreachability in rule based expert systems w...
Verification of confliction and unreachability in rule based expert systems w...ijaia
ย 
Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...
Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...
Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...BRNSS Publication Hub
ย 
Time series modelling arima-arch
Time series modelling  arima-archTime series modelling  arima-arch
Time series modelling arima-archjeevan solaskar
ย 
H046014853
H046014853H046014853
H046014853IJERA Editor
ย 
Different Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLDifferent Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLVijaySharma802
ย 
IJSRED-V2I1P23
IJSRED-V2I1P23IJSRED-V2I1P23
IJSRED-V2I1P23IJSRED
ย 
IJSRED-V2I1P23
IJSRED-V2I1P23IJSRED-V2I1P23
IJSRED-V2I1P23IJSRED
ย 
spparksUpdates
spparksUpdatesspparksUpdates
spparksUpdatesJustin Roberts
ย 
Efficient Model Partitioning for Distributed Model Transformations
Efficient Model Partitioning for Distributed Model TransformationsEfficient Model Partitioning for Distributed Model Transformations
Efficient Model Partitioning for Distributed Model TransformationsAmine Benelallam
ย 
CFM Challenge - Course Project
CFM Challenge - Course ProjectCFM Challenge - Course Project
CFM Challenge - Course ProjectKhalilBergaoui
ย 
05 dataflow
05 dataflow05 dataflow
05 dataflowali Hussien
ย 
Data fitting in Scilab - Tutorial
Data fitting in Scilab - TutorialData fitting in Scilab - Tutorial
Data fitting in Scilab - TutorialScilab
ย 
FINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHFINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHIJDKP
ย 
Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1csandit
ย 
Pyro Primer
Pyro PrimerPyro Primer
Pyro PrimerZachWolpe
ย 

Similar to Lesson 4 ar-ma (20)

Project time series ppt
Project time series pptProject time series ppt
Project time series ppt
ย 
CHAC Algorithm ECAL'07 Presentation
CHAC Algorithm ECAL'07 PresentationCHAC Algorithm ECAL'07 Presentation
CHAC Algorithm ECAL'07 Presentation
ย 
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
Integrating Adaptation Mechanisms Using Control Theory Centric Architecture M...
ย 
Verification of confliction and unreachability in rule based expert systems w...
Verification of confliction and unreachability in rule based expert systems w...Verification of confliction and unreachability in rule based expert systems w...
Verification of confliction and unreachability in rule based expert systems w...
ย 
Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...
Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...
Investigation of Parameter Behaviors in Stationarity of Autoregressive and Mo...
ย 
Ps1
Ps1Ps1
Ps1
ย 
Time series modelling arima-arch
Time series modelling  arima-archTime series modelling  arima-arch
Time series modelling arima-arch
ย 
H046014853
H046014853H046014853
H046014853
ย 
04_AJMS_288_20.pdf
04_AJMS_288_20.pdf04_AJMS_288_20.pdf
04_AJMS_288_20.pdf
ย 
Different Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIMLDifferent Models Used In Time Series - InsideAIML
Different Models Used In Time Series - InsideAIML
ย 
IJSRED-V2I1P23
IJSRED-V2I1P23IJSRED-V2I1P23
IJSRED-V2I1P23
ย 
IJSRED-V2I1P23
IJSRED-V2I1P23IJSRED-V2I1P23
IJSRED-V2I1P23
ย 
spparksUpdates
spparksUpdatesspparksUpdates
spparksUpdates
ย 
Efficient Model Partitioning for Distributed Model Transformations
Efficient Model Partitioning for Distributed Model TransformationsEfficient Model Partitioning for Distributed Model Transformations
Efficient Model Partitioning for Distributed Model Transformations
ย 
CFM Challenge - Course Project
CFM Challenge - Course ProjectCFM Challenge - Course Project
CFM Challenge - Course Project
ย 
05 dataflow
05 dataflow05 dataflow
05 dataflow
ย 
Data fitting in Scilab - Tutorial
Data fitting in Scilab - TutorialData fitting in Scilab - Tutorial
Data fitting in Scilab - Tutorial
ย 
FINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPHFINDING FREQUENT SUBPATHS IN A GRAPH
FINDING FREQUENT SUBPATHS IN A GRAPH
ย 
Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1Robust Visual Tracking Based on Sparse PCA-L1
Robust Visual Tracking Based on Sparse PCA-L1
ย 
Pyro Primer
Pyro PrimerPyro Primer
Pyro Primer
ย 

More from ankit_ppt

Deep learning summary
Deep learning summaryDeep learning summary
Deep learning summaryankit_ppt
ย 
08 neural networks
08 neural networks08 neural networks
08 neural networksankit_ppt
ย 
07 learning
07 learning07 learning
07 learningankit_ppt
ย 
06 image features
06 image features06 image features
06 image featuresankit_ppt
ย 
05 contours seg_matching
05 contours seg_matching05 contours seg_matching
05 contours seg_matchingankit_ppt
ย 
04 image transformations_ii
04 image transformations_ii04 image transformations_ii
04 image transformations_iiankit_ppt
ย 
03 image transformations_i
03 image transformations_i03 image transformations_i
03 image transformations_iankit_ppt
ย 
02 image processing
02 image processing02 image processing
02 image processingankit_ppt
ย 
01 foundations
01 foundations01 foundations
01 foundationsankit_ppt
ย 
Word2 vec
Word2 vecWord2 vec
Word2 vecankit_ppt
ย 
Text similarity measures
Text similarity measuresText similarity measures
Text similarity measuresankit_ppt
ย 
Text generation and_advanced_topics
Text generation and_advanced_topicsText generation and_advanced_topics
Text generation and_advanced_topicsankit_ppt
ย 
Nlp toolkits and_preprocessing_techniques
Nlp toolkits and_preprocessing_techniquesNlp toolkits and_preprocessing_techniques
Nlp toolkits and_preprocessing_techniquesankit_ppt
ย 
Matrix decomposition and_applications_to_nlp
Matrix decomposition and_applications_to_nlpMatrix decomposition and_applications_to_nlp
Matrix decomposition and_applications_to_nlpankit_ppt
ย 
Machine learning and_nlp
Machine learning and_nlpMachine learning and_nlp
Machine learning and_nlpankit_ppt
ย 
Latent dirichlet allocation_and_topic_modeling
Latent dirichlet allocation_and_topic_modelingLatent dirichlet allocation_and_topic_modeling
Latent dirichlet allocation_and_topic_modelingankit_ppt
ย 
Intro to nlp
Intro to nlpIntro to nlp
Intro to nlpankit_ppt
ย 
Ot regularization and_gradient_descent
Ot regularization and_gradient_descentOt regularization and_gradient_descent
Ot regularization and_gradient_descentankit_ppt
ย 
Ml10 dimensionality reduction-and_advanced_topics
Ml10 dimensionality reduction-and_advanced_topicsMl10 dimensionality reduction-and_advanced_topics
Ml10 dimensionality reduction-and_advanced_topicsankit_ppt
ย 
Ml9 introduction to-unsupervised_learning_and_clustering_methods
Ml9 introduction to-unsupervised_learning_and_clustering_methodsMl9 introduction to-unsupervised_learning_and_clustering_methods
Ml9 introduction to-unsupervised_learning_and_clustering_methodsankit_ppt
ย 

More from ankit_ppt (20)

Deep learning summary
Deep learning summaryDeep learning summary
Deep learning summary
ย 
08 neural networks
08 neural networks08 neural networks
08 neural networks
ย 
07 learning
07 learning07 learning
07 learning
ย 
06 image features
06 image features06 image features
06 image features
ย 
05 contours seg_matching
05 contours seg_matching05 contours seg_matching
05 contours seg_matching
ย 
04 image transformations_ii
04 image transformations_ii04 image transformations_ii
04 image transformations_ii
ย 
03 image transformations_i
03 image transformations_i03 image transformations_i
03 image transformations_i
ย 
02 image processing
02 image processing02 image processing
02 image processing
ย 
01 foundations
01 foundations01 foundations
01 foundations
ย 
Word2 vec
Word2 vecWord2 vec
Word2 vec
ย 
Text similarity measures
Text similarity measuresText similarity measures
Text similarity measures
ย 
Text generation and_advanced_topics
Text generation and_advanced_topicsText generation and_advanced_topics
Text generation and_advanced_topics
ย 
Nlp toolkits and_preprocessing_techniques
Nlp toolkits and_preprocessing_techniquesNlp toolkits and_preprocessing_techniques
Nlp toolkits and_preprocessing_techniques
ย 
Matrix decomposition and_applications_to_nlp
Matrix decomposition and_applications_to_nlpMatrix decomposition and_applications_to_nlp
Matrix decomposition and_applications_to_nlp
ย 
Machine learning and_nlp
Machine learning and_nlpMachine learning and_nlp
Machine learning and_nlp
ย 
Latent dirichlet allocation_and_topic_modeling
Latent dirichlet allocation_and_topic_modelingLatent dirichlet allocation_and_topic_modeling
Latent dirichlet allocation_and_topic_modeling
ย 
Intro to nlp
Intro to nlpIntro to nlp
Intro to nlp
ย 
Ot regularization and_gradient_descent
Ot regularization and_gradient_descentOt regularization and_gradient_descent
Ot regularization and_gradient_descent
ย 
Ml10 dimensionality reduction-and_advanced_topics
Ml10 dimensionality reduction-and_advanced_topicsMl10 dimensionality reduction-and_advanced_topics
Ml10 dimensionality reduction-and_advanced_topics
ย 
Ml9 introduction to-unsupervised_learning_and_clustering_methods
Ml9 introduction to-unsupervised_learning_and_clustering_methodsMl9 introduction to-unsupervised_learning_and_clustering_methods
Ml9 introduction to-unsupervised_learning_and_clustering_methods
ย 

Recently uploaded

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
ย 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdfSuman Jyoti
ย 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringmulugeta48
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfJiananWang21
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
ย 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .DerechoLaboralIndivi
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Bookingroncy bisnoi
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service9953056974 Low Rate Call Girls In Saket, Delhi NCR
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...Call Girls in Nagpur High Profile
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
ย 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Call Girls in Nagpur High Profile
ย 

Recently uploaded (20)

Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
ย 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ย 
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank  Design by Working Stress - IS Method.pdfIntze Overhead Water Tank  Design by Working Stress - IS Method.pdf
Intze Overhead Water Tank Design by Working Stress - IS Method.pdf
ย 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
ย 
chapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineeringchapter 5.pptx: drainage and irrigation engineering
chapter 5.pptx: drainage and irrigation engineering
ย 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
ย 
data_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdfdata_management_and _data_science_cheat_sheet.pdf
data_management_and _data_science_cheat_sheet.pdf
ย 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
ย 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
ย 
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Walvekar Nagar Call Me 7737669865 Budget Friendly No Advance Booking
ย 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
ย 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
ย 
NFPA 5000 2024 standard .
NFPA 5000 2024 standard                                  .NFPA 5000 2024 standard                                  .
NFPA 5000 2024 standard .
ย 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ย 
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance BookingCall Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
Call Girls Wakad Call Me 7737669865 Budget Friendly No Advance Booking
ย 
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort ServiceCall Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
Call Girls in Ramesh Nagar Delhi ๐Ÿ’ฏ Call Us ๐Ÿ”9953056974 ๐Ÿ” Escort Service
ย 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
ย 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
ย 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
ย 
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth โŸŸ 6297143586 โŸŸ Call Me For Genuine Se...
ย 

Lesson 4 ar-ma

  • 2. Learning Objectives You will be able to do the following: ๏‚ง Describe the autocorrelation function (ACF). ๏‚ง Describe the partial autocorrelation function (PACF). ๏‚ง Explain how autoregressive and moving average models work. ๏‚ง Use Python* to fit autocorrelation models. 2
  • 4. Autocorrelation Function (ACF) ๏‚ง Measures the correlation of a signal with a delayed copy of itself. ๏‚ง It is used to find repeating patterns in a signal, such as the presence of a periodic signal. where ฮผ is the mean and ฯƒ2 is the variance ๐‘… ๐œ = ๐ธ ๐‘‹๐‘ก โˆ’ ๐œ‡ ๐‘‹๐‘ก+๐œ โˆ’ ๐œ‡ ๐œŽ2 4
  • 5. Autocorrelation Function (ACF) Observed Data ACF Plot 5 https://commons.wikimedia.org/wiki/File:Acf_new.svg
  • 6. Partial Autocorrelation Function The partial autocorrelation at lag k is the autocorrelation between Xt and Xt-k that is not accounted for by lags 1 through k-1 where Pt,k(x) denotes the projection of x onto the space spanning xt+1, โ€ฆ. xt+k-1 ๐›ผ 1 = ๐ถ๐‘œ๐‘Ÿ ๐‘ฅ ๐‘ก+1, ๐‘ฅ ๐›ผ ๐‘˜ = ๐ถ๐‘œ๐‘Ÿ ๐‘ฅ ๐‘ก+๐‘˜ โˆ’ ๐‘ƒ๐‘ก,๐‘˜ ๐‘ฅ ๐‘ก+๐‘˜ , ๐‘ฅ ๐‘ก โˆ’ ๐‘ƒ๐‘ก,๐‘˜(๐‘ฅ ๐‘ก) 6
  • 8. Autoregressive Models (AR) ๏‚ง A common approach to model univariate time series is to use autoregressive models (AR). ๏‚ง An AR model is a linear regression of the current value of the series against one or more prior values of the series. ๏‚ง Uses maximum likelihood estimators to determine coefficients instead of least squares. 8
  • 9. Autoregressive Models (AR) The notation AR(p) indicates an autoregressive model of order p. where ฯ†i are the parameters of the model and ฮตt is white noise. ๐‘‹๐‘ก = ๐‘–=1 ๐‘ ๐œ‘๐‘– ๐‘‹๐‘กโˆ’๐‘– + ๐œ€๐‘ก 9
  • 10. Autoregressive Models (AR) ๏‚ง Useful for short term forecasts ๏‚ง This model can forecast up to p values 10
  • 11. Steps for Forecasting with AR Step 1: Model the trend and/or seasonality of a time series and subtract it from the data (Xt = Observedt โ€“ Trendt โ€“ Seasonalityt) Step 2: Calculate AR on Xt to obtain Xt+1 Step 3: Forecast = Xt+1 + Trendt + Seasonalityt 11
  • 12. ACF Plot Details Observed Data ACF Plot 12 https://commons.wikimedia.org/wiki/File:Acf_new.svg
  • 13. PACF Plot PACF Plot ๏‚ง Letโ€™s say we generated the PACF plot to the right. ๏‚ง We see a single significant spike at lag 1. ๏‚ง This means that all other significant spikes in the ACF plot are explained by the spike at lag 1. ๏‚ง Therefore, we would choose the model AR(1). 13 Source: https://people.duke.edu/~rnau/411arim3.htm
  • 15. Moving Average Models (MA) ๏‚ง Another common approach to modeling univariate time series is the moving average (MA) model. ๏‚ง MA models are conceptually a linear regression of the current value of the series against the white noise of one or more of the previous values of the series. ๏‚ง The noise at each point is assumed to come from a normal distribution with mean 0 and constant variance. 15
  • 16. Moving Average Models (MA) ๏‚ง Fitting MA estimates is more complicated than AR models because the error terms are not observable. ๏‚ง As a result, iterative nonlinear fitting procedures need to be used. ๏‚ง MA models are less interpretable than AR models. 16
  • 17. Moving Average Models (MA) The notation MA(q) indicates a moving average model of order q. where ฮธi are the parameters of the model and ฮตt is white noise. ๐‘‹๐‘ก = ๐œ€๐‘ก + ๐‘–=1 ๐‘ž ๐œƒ๐‘– ๐œ€๐‘กโˆ’๐‘– 17
  • 18. Moving Average Models (MA) ๏‚ง We talked about smoothing with a moving average in Lesson 3. ๏‚ง Moving average models are not the same as smoothing. ๏‚ง Please donโ€™t confuse the two. 18
  • 19. AR or MA Model? ๏‚ง If the PACF drops sharply at a given lag or the first lag autocorrelation is positive, then use an AR model with order p equal to the lag just before the sharp decline. ๏‚ง If the ACF drops sharply at a given lag or the first lag autocorrelation is negative, then use an MA model with order q equal to the lag just before the sharp decline. 19
  • 21. Use Python to Fit Autocorrelation Models Next up is a look at applying these concepts in Python. ๏‚ง See notebook entitled Autocorrelation_student.ipynb 21
  • 22. Learning Objectives Recap In this session you learned how to do the following: ๏‚ง Describe the autocorrelation function (ACF) ๏‚ง Describe the partial autocorrelation function (PACF). ๏‚ง Explain how autoregressive and moving average models work. ๏‚ง Use Python to fit autocorrelation models. 22
  • 23. Legal Notices and Disclaimers This presentation is for informational purposes only. INTEL MAKES NO WARRANTIES, EXPRESS OR IMPLIED, IN THIS SUMMARY. Intel technologiesโ€™ features and benefits depend on system configuration and may require enabled hardware, software or service activation. Performance varies depending on system configuration. Check with your system manufacturer or retailer or learn more at intel.com. Sample source code is released under the Intel Sample Source Code License Agreement. Intel, the Intel logo, the Intel. Experience Whatโ€™s Inside logo, and Intel. Experience Whatโ€™s Inside are trademarks of Intel Corporation in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others. Copyright ยฉ 2018, Intel Corporation. All rights reserved. 23