welcome to the course
play

Welcome to the Course! ARIMA Modeling with R About Me Professor - PowerPoint PPT Presentation

ARIMA MODELING WITH R Welcome to the Course! ARIMA Modeling with R About Me Professor of Statistics Co-author of two texts on time series astsa- package ARIMA Modeling with R Time series are everywhere!


  1. ARIMA MODELING WITH R Welcome to the Course!

  2. ARIMA Modeling with R About Me ● Professor of Statistics ● Co-author of two texts on time series 
 ● astsa- package

  3. ARIMA Modeling with R Time series… ● … are everywhere! ● Finance ● Industrial Processes ● Nature ● Autoregressive (AR) & Moving Average (MA): ARMA ● Integrated ARMA: ARIMA

  4. ARIMA Modeling with R Course outline ● Chapter 1: Time Series Data and Models ● Chapter 2: Fi � ing ARMA models ● Chapter 3: ARIMA models ● Chapter 4: Seasonal ARIMA

  5. ARIMA Modeling with R Prerequisites ● Introduction to R ● Intermediate R ● Introduction to Time Series Analysis in R

  6. ARIMA MODELING WITH R Let’s get started!

  7. ARIMA MODELING WITH R First Things First

  8. ARIMA Modeling with R About Me ● Professor of Statistics ● Co-author of two texts on time series 
 ● astsa- package

  9. ARIMA Modeling with R Time Series Data - I > library(astsa) > plot(jj, main = "Johnson & Johnson Quarterly Earnings per Share", type = "c" ) > text(jj, labels = 1:4, col = 1:4)

  10. ARIMA Modeling with R Time Series Data - II > library(astsa) > plot(globtemp, main = "Global Temperature Deviations", type= "o")

  11. ARIMA Modeling with R Time Series Data - III > library(xts) > plot(sp500w, main = "S&P 500 Weekly Returns")

  12. ARIMA Modeling with R Time Series Regression Models Regression: , where is white noise White Noise: ● independent normals with common variance ● is basic building block of time series AutoRegression: ( is white noise) Moving Average: ( is white noise) ARMA:

  13. ARIMA MODELING WITH R Let’s practice!

  14. ARIMA MODELING WITH R Stationarity and Nonstationarity

  15. ARIMA Modeling with R Stationarity A time series is stationary when it is “stable”, meaning: ● the mean is constant over time (no trend) ● the correlation structure remains constant over time

  16. ARIMA Modeling with R Stationarity Given data, we can estimate by averaging For example, if the mean is constant, we can estimate it by the sample average Pairs can be used to estimate correlation on di ff erent lags: for lag 1 for lag 2

  17. ARIMA Modeling with R Southern Oscillation Index Reasonable to assume stationary, but perhaps some slight trend.

  18. ARIMA Modeling with R Southern Oscillation Index To estimate autocorrelation, compute the correlation coe ffi cient between the time series and itself at various lags. Here you see how to get the correlation at lag 1 and lag 6.

  19. ARIMA Modeling with R Random Walk Trend Not stationary, but di ff erenced data are stationary. globtemp diff(globtemp)

  20. ARIMA Modeling with R Trend Stationarity Stationarity around a trend, di ff erencing still works! chicken diff(chicken)

  21. ARIMA Modeling with R Nonstationarity in trend and variability First log, then di ff erence

  22. ARIMA MODELING WITH R Let’s practice!

  23. ARIMA MODELING WITH R Stationary Time Series: ARMA

  24. ARIMA Modeling with R Wold Decomposition Wold proved that any stationary time series may be represented as a linear combination of white noise: For constants Any ARMA model has this form, which means they are suited to modeling time series. Note: Special case of MA( ) is already of this form, 
 q where constants are a � er -th term. 0 q

  25. ARIMA Modeling with R Generating ARMA using arima.sim() ● Basic syntax: Order of AR Order of MA arima.sim(model, n, …) ● model is a list with order of the model as c(p, d, q) 
 and the coe ffi cients n is the length of the series ●

  26. ARIMA Modeling with R Generating and plo � ing MA(1) Generate MA(1) given by > x <- arima.sim(list(order = c(0, 0, 1), ma = 0.9), n = 100) > plot(x)

  27. ARIMA Modeling with R Generating and plo � ing AR(2) Generate AR(2) given by > x <- arima.sim(list(order = c(2, 0, 0), ar = c(0, -0.9)), n = 100) > plot(x)

  28. ARIMA MODELING WITH R Let’s practice!

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend