Forecasting using R. Rob J Hyndman. 3.2 Dynamic regression. Forecasting using R 1

Size: px
Start display at page:

Download "Forecasting using R. Rob J Hyndman. 3.2 Dynamic regression. Forecasting using R 1"

Transcription

1 Forecasting using R Rob J Hyndman 3.2 Dynamic regression Forecasting using R 1

2 Outline 1 Regression with ARIMA errors 2 Stochastic and deterministic trends 3 Periodic seasonality 4 Lab session 14 5 Dynamic regression models Forecasting using R Regression with ARIMA errors 2

3 Regression with ARIMA errors Regression models y t = β 0 + β 1 x 1,t + + β k x k,t + e t, y t modeled as function of k explanatory variables x 1,t,..., x k,t. In regression, we assume that e t was WN. Now we want to allow e t to be autocorrelated. Example: ARIMA(1,1,1) errors y t = β 0 + β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)(1 B)n t = (1 + θ 1 B)e t, where e t is white noise. Forecasting using R Regression with ARIMA errors 3

4 Regression with ARIMA errors Regression models y t = β 0 + β 1 x 1,t + + β k x k,t + e t, y t modeled as function of k explanatory variables x 1,t,..., x k,t. In regression, we assume that e t was WN. Now we want to allow e t to be autocorrelated. Example: ARIMA(1,1,1) errors y t = β 0 + β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)(1 B)n t = (1 + θ 1 B)e t, where e t is white noise. Forecasting using R Regression with ARIMA errors 3

5 Residuals and errors Example: N t = ARIMA(1,1,1) y t = β 0 + β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)(1 B)n t = (1 + θ 1 B)e t, Be careful in distinguishing n t from e t. Only the errors n t are assumed to be white noise. In ordinary regression, n t is assumed to be white noise and so n t = e t. Forecasting using R Regression with ARIMA errors 4

6 Residuals and errors Example: N t = ARIMA(1,1,1) y t = β 0 + β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)(1 B)n t = (1 + θ 1 B)e t, Be careful in distinguishing n t from e t. Only the errors n t are assumed to be white noise. In ordinary regression, n t is assumed to be white noise and so n t = e t. Forecasting using R Regression with ARIMA errors 4

7 Estimation If we minimize n 2 t (by using ordinary regression): 1 Estimated coefficients ˆβ 0,..., ˆβ k are no longer optimal as some information ignored; 2 Statistical tests associated with the model (e.g., t-tests on the coefficients) are incorrect. 3 p-values for coefficients usually too small ( spurious regression ). 4 AIC of fitted models misleading. Minimizing e 2 t avoids these problems. Maximizing likelihood is similar to minimizing e 2 t. Forecasting using R Regression with ARIMA errors 5

8 Estimation If we minimize n 2 t (by using ordinary regression): 1 Estimated coefficients ˆβ 0,..., ˆβ k are no longer optimal as some information ignored; 2 Statistical tests associated with the model (e.g., t-tests on the coefficients) are incorrect. 3 p-values for coefficients usually too small ( spurious regression ). 4 AIC of fitted models misleading. Minimizing e 2 t avoids these problems. Maximizing likelihood is similar to minimizing e 2 t. Forecasting using R Regression with ARIMA errors 5

9 Stationarity Regression with ARMA errors y t = β 0 + β 1 x 1,t + + β k x k,t + n t, where n t is an ARMA process. All variables in the model must be stationary. If we estimate the model while any of these are non-stationary, the estimated coefficients can be incorrect. Difference variables until all stationary. If necessary, apply same differencing to all variables. Forecasting using R Regression with ARIMA errors 6

10 Stationarity Model with ARIMA(1,1,1) errors y t = β 0 + β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)(1 B)n t = (1 + θ 1 B)e t, Equivalent to model with ARIMA(1,0,1) errors y t = β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)n t = (1 + θ 1 B)e t, where y t = y t y t 1, x t,i = x t,i x t 1,i and n t = n t n t 1. Forecasting using R Regression with ARIMA errors 7

11 Stationarity Model with ARIMA(1,1,1) errors y t = β 0 + β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)(1 B)n t = (1 + θ 1 B)e t, Equivalent to model with ARIMA(1,0,1) errors y t = β 1 x 1,t + + β k x k,t + n t, (1 φ 1 B)n t = (1 + θ 1 B)e t, where y t = y t y t 1, x t,i = x t,i x t 1,i and n t = n t n t 1. Forecasting using R Regression with ARIMA errors 7

12 Regression with ARIMA errors Any regression with an ARIMA error can be rewritten as a regression with an ARMA error by differencing all variables with the same differencing operator as in the ARIMA model. Original data y t = β 0 + β 1 x 1,t + + β k x k,t + n t where φ(b)(1 B) d N t = θ(b)e t After differencing all variables y t = β 1 x 1,t + + β k x k,t + n t. where and φ(b)n t = θ(b)e t y t = (1 B) d y t Forecasting using R Regression with ARIMA errors 8

13 Regression with ARIMA errors Any regression with an ARIMA error can be rewritten as a regression with an ARMA error by differencing all variables with the same differencing operator as in the ARIMA model. Original data y t = β 0 + β 1 x 1,t + + β k x k,t + n t where φ(b)(1 B) d N t = θ(b)e t After differencing all variables y t = β 1 x 1,t + + β k x k,t + n t. where and φ(b)n t = θ(b)e t y t = (1 B) d y t Forecasting using R Regression with ARIMA errors 8

14 Regression with ARIMA errors Any regression with an ARIMA error can be rewritten as a regression with an ARMA error by differencing all variables with the same differencing operator as in the ARIMA model. Original data y t = β 0 + β 1 x 1,t + + β k x k,t + n t where φ(b)(1 B) d N t = θ(b)e t After differencing all variables y t = β 1 x 1,t + + β k x k,t + n t. where and φ(b)n t = θ(b)e t y t = (1 B) d y t Forecasting using R Regression with ARIMA errors 8

15 Model selection Check that all variables are stationary. If not, apply differencing. Where appropriate, use the same differencing for all variables to preserve interpretability. Fit regression model with automatically selected ARIMA errors. Check that e t series looks like white noise. Selecting predictors AICc can be calculated for final model. Repeat procedure for all subsets of predictors to be considered, and select model with lowest AIC value. Forecasting using R Regression with ARIMA errors 9

16 US personal consumption & income 2 Quarterly changes in US consumption and personal income consumption income Year Forecasting using R Regression with ARIMA errors 10

17 US personal consumption & income Quarterly changes in US consumption and personal income 2 1 consumption income Forecasting using R Regression with ARIMA errors 11

18 US Personal Consumption and income No need for transformations or further differencing. Increase in income does not necessarily translate into instant increase in consumption (e.g., after the loss of a job, it may take a few months for expenses to be reduced to allow for the new circumstances). We will ignore this for now. Forecasting using R Regression with ARIMA errors 12

19 US personal consumption & income (fit <- auto.arima(usconsumption[,1], xreg=usconsumption[,2])) ## Series: usconsumption[, 1] ## ARIMA(1,0,2) with non-zero mean ## ## Coefficients: ## ar1 ma1 ma2 intercept usconsumption[, 2] ## ## s.e ## ## sigma^2 estimated as : log likelihood= ## AIC= AICc= BIC= Forecasting using R Regression with ARIMA errors 13

20 US personal consumption & income ggtsdisplay(arima.errors(fit), main="arima errors") 1 0 ARIMA errors x Time ACF PACF Lag Lag Forecasting using R Regression with ARIMA errors 14

21 US personal consumption & income ggtsdisplay(residuals(fit), main="arima residuals") x ARIMA residuals Time ACF 0.0 PACF Lag Lag Forecasting using R Regression with ARIMA errors 15

22 US Personal Consumption and Income A Ljung-Box test shows the residuals are uncorrelated. Box.test(residuals(fit), fitdf=5, lag=10, type="ljung") ## ## Box-Ljung test ## ## data: residuals(fit) ## X-squared = , df = 5, p-value = Forecasting using R Regression with ARIMA errors 16

23 US Personal Consumption and Income fcast <- forecast(fit, xreg=rep(mean(usconsumption[,2]),8), h=8) autoplot(fcast) + xlab("year") + ylab("percentage change") + ggtitle("forecasts from regression with ARIMA(1,0,2) errors" Forecasts from regression with ARIMA(1,0,2) errors 2 Percentage change level Year Forecasting using R Regression with ARIMA errors 17

24 Forecasting To forecast a regression model with ARIMA errors, we need to forecast the regression part of the model and the ARIMA part of the model and combine the results. Some explanatory variable are known into the future (e.g., time, dummies). Separate forecasting models may be needed for other explanatory variables. Forecasting using R Regression with ARIMA errors 18

25 Outline 1 Regression with ARIMA errors 2 Stochastic and deterministic trends 3 Periodic seasonality 4 Lab session 14 5 Dynamic regression models Forecasting using R Stochastic and deterministic trends 19

26 Stochastic & deterministic trends Deterministic trend y t = β 0 + β 1 t + n t where n t is ARMA process. Stochastic trend y t = β 0 + β 1 t + n t where n t is ARIMA process with d 1. Difference both sides until n t is stationary: y t = β 1 + n t where n t is ARMA process. Forecasting using R Stochastic and deterministic trends 20

27 Stochastic & deterministic trends Deterministic trend y t = β 0 + β 1 t + n t where n t is ARMA process. Stochastic trend y t = β 0 + β 1 t + n t where n t is ARIMA process with d 1. Difference both sides until n t is stationary: y t = β 1 + n t where n t is ARMA process. Forecasting using R Stochastic and deterministic trends 20

28 Stochastic & deterministic trends Deterministic trend y t = β 0 + β 1 t + n t where n t is ARMA process. Stochastic trend y t = β 0 + β 1 t + n t where n t is ARIMA process with d 1. Difference both sides until n t is stationary: y t = β 1 + n t where n t is ARMA process. Forecasting using R Stochastic and deterministic trends 20

29 International visitors Total annual international visitors to Australia 5 millions of people Year Forecasting using R Stochastic and deterministic trends 21

30 International visitors Deterministic trend (fit1 <- auto.arima(austa, d=0, xreg=1:length(austa))) ## Series: austa ## ARIMA(2,0,0) with non-zero mean ## ## Coefficients: ## ar1 ar2 intercept 1:length(austa) ## ## s.e ## ## sigma^2 estimated as : log likelihood=12.7 ## AIC=-15.4 AICc=-13 BIC=-8.23 y t = t + n t n t = n t n t 2 + e t e t NID(0, ). Forecasting using R Stochastic and deterministic trends 22

31 International visitors Deterministic trend (fit1 <- auto.arima(austa, d=0, xreg=1:length(austa))) ## Series: austa ## ARIMA(2,0,0) with non-zero mean ## ## Coefficients: ## ar1 ar2 intercept 1:length(austa) ## ## s.e ## ## sigma^2 estimated as : log likelihood=12.7 ## AIC=-15.4 AICc=-13 BIC=-8.23 y t = t + n t n t = n t n t 2 + e t e t NID(0, ). Forecasting using R Stochastic and deterministic trends 22

32 Forecasting using R y t y t 1 = e t y t = y t + n t n t = n t 1 + e t e NID(0, ). Stochastic and deterministic trends 23 International visitors Stochastic trend (fit2 <- auto.arima(austa,d=1)) ## Series: austa ## ARIMA(0,1,0) with drift ## ## Coefficients: ## drift ## ## s.e ## ## sigma^2 estimated as : log likelihood=9.38 ## AIC= AICc= BIC=-11.96

33 Forecasting using R y t y t 1 = e t y t = y t + n t n t = n t 1 + e t e NID(0, ). Stochastic and deterministic trends 23 International visitors Stochastic trend (fit2 <- auto.arima(austa,d=1)) ## Series: austa ## ARIMA(0,1,0) with drift ## ## Coefficients: ## drift ## ## s.e ## ## sigma^2 estimated as : log likelihood=9.38 ## AIC= AICc= BIC=-11.96

34 International visitors 8 Forecasts from linear trend with AR(2) error level Year Forecasts from ARIMA(0,1,0) with drift level Year Forecasting using R Stochastic and deterministic trends 24

35 Forecasting with trend Point forecasts are almost identical, but prediction intervals differ. Stochastic trends have much wider prediction intervals because the errors are non-stationary. Be careful of forecasting with deterministic trends too far ahead. Forecasting using R Stochastic and deterministic trends 25

36 Outline 1 Regression with ARIMA errors 2 Stochastic and deterministic trends 3 Periodic seasonality 4 Lab session 14 5 Dynamic regression models Forecasting using R Periodic seasonality 26

37 Fourier terms for seasonality Periodic seasonality can be handled using pairs of Fourier terms: ( 2πkt s k (t) = sin m ) ( 2πkt c k (t) = cos m y t = K [α k s k (t) + β k c k (t)] + n t k=1 n t is non-seasonal ARIMA process. Every periodic function can be approximated by sums of sin and cos terms for large enough K. Choose K by minimizing AICc. ) Forecasting using R Periodic seasonality 27

38 US Accidental Deaths fit <- auto.arima(usaccdeaths, xreg=fourier(usaccdeaths, 5), seasonal=false) fc <- forecast(fit, xreg=fourier(usaccdeaths, 5, 24)) Forecasting using R Periodic seasonality 28

39 US Accidental Deaths autoplot(fc) Forecasts from ARIMA(0,1,1) y level Forecasting using R Time Periodic seasonality 29

40 Outline 1 Regression with ARIMA errors 2 Stochastic and deterministic trends 3 Periodic seasonality 4 Lab session 14 5 Dynamic regression models Forecasting using R Lab session 14 30

41 Lab Session 14 Forecasting using R Lab session 14 31

42 Outline 1 Regression with ARIMA errors 2 Stochastic and deterministic trends 3 Periodic seasonality 4 Lab session 14 5 Dynamic regression models Forecasting using R Dynamic regression models 32

43 Dynamic regression models Sometimes a change in x t does not affect y t instantaneously y t = sales, x t = advertising. y t = stream flow, x t = rainfall. y t = size of herd, x t = breeding stock. These are dynamic systems with input (x t ) and output (y t ). x t is often a leading indicator. There can be multiple predictors. Forecasting using R Dynamic regression models 33

44 Dynamic regression models Sometimes a change in x t does not affect y t instantaneously y t = sales, x t = advertising. y t = stream flow, x t = rainfall. y t = size of herd, x t = breeding stock. These are dynamic systems with input (x t ) and output (y t ). x t is often a leading indicator. There can be multiple predictors. Forecasting using R Dynamic regression models 33

45 Dynamic regression models Sometimes a change in x t does not affect y t instantaneously y t = sales, x t = advertising. y t = stream flow, x t = rainfall. y t = size of herd, x t = breeding stock. These are dynamic systems with input (x t ) and output (y t ). x t is often a leading indicator. There can be multiple predictors. Forecasting using R Dynamic regression models 33

46 Lagged explanatory variables The model include present and past values of predictor: x t, x t 1, x t 2,.... y t = a + ν 0 x t + ν 1 x t ν k x t k + n t where n t is an ARIMA process. Rewrite model as y t = a + (ν 0 + ν 1 B + ν 2 B ν k B k )x t + n t = a + ν(b)x t + n t. ν(b) is called a transfer function since it describes how change in x t is transferred to y t. x can influence y, but y is not allowed to influence x. Forecasting using R Dynamic regression models 34

47 Lagged explanatory variables The model include present and past values of predictor: x t, x t 1, x t 2,.... y t = a + ν 0 x t + ν 1 x t ν k x t k + n t where n t is an ARIMA process. Rewrite model as y t = a + (ν 0 + ν 1 B + ν 2 B ν k B k )x t + n t = a + ν(b)x t + n t. ν(b) is called a transfer function since it describes how change in x t is transferred to y t. x can influence y, but y is not allowed to influence x. Forecasting using R Dynamic regression models 34

48 Lagged explanatory variables The model include present and past values of predictor: x t, x t 1, x t 2,.... y t = a + ν 0 x t + ν 1 x t ν k x t k + n t where n t is an ARIMA process. Rewrite model as y t = a + (ν 0 + ν 1 B + ν 2 B ν k B k )x t + n t = a + ν(b)x t + n t. ν(b) is called a transfer function since it describes how change in x t is transferred to y t. x can influence y, but y is not allowed to influence x. Forecasting using R Dynamic regression models 34

49 Example: Insurance quotes and TV adverts Insurance advertising and quotations Quotes TV.advert Year Forecasting using R Dynamic regression models 35

50 Example: Insurance quotes and TV adverts Advert <- cbind(insurance[,2], c(na,insurance[1:39,2])) colnames(advert) <- paste("adlag",0:1,sep="") (fit <- auto.arima(insurance[,1], xreg=advert, d=0)) ## Series: insurance[, 1] ## ARIMA(3,0,0) with non-zero mean ## ## Coefficients: ## ar1 ar2 ar3 intercept AdLag0 AdLag1 ## ## s.e ## ## sigma^2 estimated as : log likelihood= ## AIC=61.78 AICc=65.28 BIC=73.6 y t = x t x t 1 + n t n t = 1.41n t 1 093n t n t 3 Forecasting using R Dynamic regression models 36

51 Example: Insurance quotes and TV adverts Advert <- cbind(insurance[,2], c(na,insurance[1:39,2])) colnames(advert) <- paste("adlag",0:1,sep="") (fit <- auto.arima(insurance[,1], xreg=advert, d=0)) ## Series: insurance[, 1] ## ARIMA(3,0,0) with non-zero mean ## ## Coefficients: ## ar1 ar2 ar3 intercept AdLag0 AdLag1 ## ## s.e ## ## sigma^2 estimated as : log likelihood= ## AIC=61.78 AICc=65.28 BIC=73.6 y t = x t x t 1 + n t n t = 1.41n t 1 093n t n t 3 Forecasting using R Dynamic regression models 36

52 Example: Insurance quotes and TV adverts fc <- forecast(fit, h=20, xreg=cbind(c(advert[40,1],rep(10,19)), rep(10,20))) autoplot(fc) 18 Forecasts from ARIMA(3,0,0) with non zero mean 16 y level Time Forecasting using R Dynamic regression models 37

53 Example: Insurance quotes and TV adverts fc <- forecast(fit, h=20, xreg=cbind(c(advert[40,1],rep(8,19)), rep(8,20))) autoplot(fc) 18 Forecasts from ARIMA(3,0,0) with non zero mean 16 y level Time Forecasting using R Dynamic regression models 38

54 Example: Insurance quotes and TV adverts fc <- forecast(fit, h=20, xreg=cbind(c(advert[40,1],rep(6,19)), rep(6,20))) autoplot(fc) 18 Forecasts from ARIMA(3,0,0) with non zero mean 16 y level Time Forecasting using R Dynamic regression models 39

55 Dynamic regression models y t = a + ν(b)x t + n t where n t is an ARMA process. So φ(b)n t = θ(b)e t or n t = θ(b) φ(b) e t = ψ(b)e t. y t = a + ν(b)x t + ψ(b)e t ARMA models are rational approximations to general transfer functions of e t. We can also replace ν(b) by a rational approximation. There is no R package for forecasting using a general transfer function approach. Forecasting using R Dynamic regression models 40

56 Dynamic regression models y t = a + ν(b)x t + n t where n t is an ARMA process. So φ(b)n t = θ(b)e t or n t = θ(b) φ(b) e t = ψ(b)e t. y t = a + ν(b)x t + ψ(b)e t ARMA models are rational approximations to general transfer functions of e t. We can also replace ν(b) by a rational approximation. There is no R package for forecasting using a general transfer function approach. Forecasting using R Dynamic regression models 40

57 Dynamic regression models y t = a + ν(b)x t + n t where n t is an ARMA process. So φ(b)n t = θ(b)e t or n t = θ(b) φ(b) e t = ψ(b)e t. y t = a + ν(b)x t + ψ(b)e t ARMA models are rational approximations to general transfer functions of e t. We can also replace ν(b) by a rational approximation. There is no R package for forecasting using a general transfer function approach. Forecasting using R Dynamic regression models 40

Forecasting using R. Rob J Hyndman. 2.4 Non-seasonal ARIMA models. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 2.4 Non-seasonal ARIMA models. Forecasting using R 1 Forecasting using R Rob J Hyndman 2.4 Non-seasonal ARIMA models Forecasting using R 1 Outline 1 Autoregressive models 2 Moving average models 3 Non-seasonal ARIMA models 4 Partial autocorrelations 5 Estimation

More information

FORECASTING USING R. Dynamic regression. Rob Hyndman Author, forecast

FORECASTING USING R. Dynamic regression. Rob Hyndman Author, forecast FORECASTING USING R Dynamic regression Rob Hyndman Author, forecast Dynamic regression Regression model with ARIMA errors y t = β 0 + β 1 x 1,t + + β r x r,t + e t y t modeled as function of r explanatory

More information

Forecasting using R. Rob J Hyndman. 2.5 Seasonal ARIMA models. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 2.5 Seasonal ARIMA models. Forecasting using R 1 Forecasting using R Rob J Hyndman 2.5 Seasonal ARIMA models Forecasting using R 1 Outline 1 Backshift notation reviewed 2 Seasonal ARIMA models 3 ARIMA vs ETS 4 Lab session 12 Forecasting using R Backshift

More information

STAT 436 / Lecture 16: Key

STAT 436 / Lecture 16: Key STAT 436 / 536 - Lecture 16: Key Modeling Non-Stationary Time Series Many time series models are non-stationary. Recall a time series is stationary if the mean and variance are constant in time and the

More information

Transformations for variance stabilization

Transformations for variance stabilization FORECASTING USING R Transformations for variance stabilization Rob Hyndman Author, forecast Variance stabilization If the data show increasing variation as the level of the series increases, then a transformation

More information

FE570 Financial Markets and Trading. Stevens Institute of Technology

FE570 Financial Markets and Trading. Stevens Institute of Technology FE570 Financial Markets and Trading Lecture 5. Linear Time Series Analysis and Its Applications (Ref. Joel Hasbrouck - Empirical Market Microstructure ) Steve Yang Stevens Institute of Technology 9/25/2012

More information

Dynamic Time Series Regression: A Panacea for Spurious Correlations

Dynamic Time Series Regression: A Panacea for Spurious Correlations International Journal of Scientific and Research Publications, Volume 6, Issue 10, October 2016 337 Dynamic Time Series Regression: A Panacea for Spurious Correlations Emmanuel Alphonsus Akpan *, Imoh

More information

Time Series I Time Domain Methods

Time Series I Time Domain Methods Astrostatistics Summer School Penn State University University Park, PA 16802 May 21, 2007 Overview Filtering and the Likelihood Function Time series is the study of data consisting of a sequence of DEPENDENT

More information

AR(p) + I(d) + MA(q) = ARIMA(p, d, q)

AR(p) + I(d) + MA(q) = ARIMA(p, d, q) AR(p) + I(d) + MA(q) = ARIMA(p, d, q) Outline 1 4.1: Nonstationarity in the Mean 2 ARIMA Arthur Berg AR(p) + I(d)+ MA(q) = ARIMA(p, d, q) 2/ 19 Deterministic Trend Models Polynomial Trend Consider the

More information

FORECASTING SUGARCANE PRODUCTION IN INDIA WITH ARIMA MODEL

FORECASTING SUGARCANE PRODUCTION IN INDIA WITH ARIMA MODEL FORECASTING SUGARCANE PRODUCTION IN INDIA WITH ARIMA MODEL B. N. MANDAL Abstract: Yearly sugarcane production data for the period of - to - of India were analyzed by time-series methods. Autocorrelation

More information

Lab: Box-Jenkins Methodology - US Wholesale Price Indicator

Lab: Box-Jenkins Methodology - US Wholesale Price Indicator Lab: Box-Jenkins Methodology - US Wholesale Price Indicator In this lab we explore the Box-Jenkins methodology by applying it to a time-series data set comprising quarterly observations of the US Wholesale

More information

The log transformation produces a time series whose variance can be treated as constant over time.

The log transformation produces a time series whose variance can be treated as constant over time. TAT 520 Homework 6 Fall 2017 Note: Problem 5 is mandatory for graduate students and extra credit for undergraduates. 1) The quarterly earnings per share for 1960-1980 are in the object in the TA package.

More information

TIME SERIES ANALYSIS AND FORECASTING USING THE STATISTICAL MODEL ARIMA

TIME SERIES ANALYSIS AND FORECASTING USING THE STATISTICAL MODEL ARIMA CHAPTER 6 TIME SERIES ANALYSIS AND FORECASTING USING THE STATISTICAL MODEL ARIMA 6.1. Introduction A time series is a sequence of observations ordered in time. A basic assumption in the time series analysis

More information

Lecture 5: Estimation of time series

Lecture 5: Estimation of time series Lecture 5, page 1 Lecture 5: Estimation of time series Outline of lesson 5 (chapter 4) (Extended version of the book): a.) Model formulation Explorative analyses Model formulation b.) Model estimation

More information

Design of Time Series Model for Road Accident Fatal Death in Tamilnadu

Design of Time Series Model for Road Accident Fatal Death in Tamilnadu Volume 109 No. 8 2016, 225-232 ISSN: 1311-8080 (printed version); ISSN: 1314-3395 (on-line version) url: http://www.ijpam.eu ijpam.eu Design of Time Series Model for Road Accident Fatal Death in Tamilnadu

More information

Forecasting: principles and practice. Rob J Hyndman 3.2 Forecasting with multiple seasonality

Forecasting: principles and practice. Rob J Hyndman 3.2 Forecasting with multiple seasonality Forecasting: principles and practice Rob J Hyndman 3.2 Forecasting with multiple seasonality 1 Outline 1 Time series with complex seasonality 2 STL with multiple seasonal periods 3 Dynamic harmonic regression

More information

Minitab Project Report - Assignment 6

Minitab Project Report - Assignment 6 .. Sunspot data Minitab Project Report - Assignment Time Series Plot of y Time Series Plot of X y X 7 9 7 9 The data have a wavy pattern. However, they do not show any seasonality. There seem to be an

More information

Circle the single best answer for each multiple choice question. Your choice should be made clearly.

Circle the single best answer for each multiple choice question. Your choice should be made clearly. TEST #1 STA 4853 March 6, 2017 Name: Please read the following directions. DO NOT TURN THE PAGE UNTIL INSTRUCTED TO DO SO Directions This exam is closed book and closed notes. There are 32 multiple choice

More information

Basics: Definitions and Notation. Stationarity. A More Formal Definition

Basics: Definitions and Notation. Stationarity. A More Formal Definition Basics: Definitions and Notation A Univariate is a sequence of measurements of the same variable collected over (usually regular intervals of) time. Usual assumption in many time series techniques is that

More information

Forecasting: Principles and Practice. Rob J Hyndman. 12. Advanced methods OTexts.com/fpp/9/2/ OTexts.com/fpp/9/3/

Forecasting: Principles and Practice. Rob J Hyndman. 12. Advanced methods OTexts.com/fpp/9/2/ OTexts.com/fpp/9/3/ Rob J Hyndman Forecasting: Principles and Practice 12. Advanced methods OTexts.com/fpp/9/2/ OTexts.com/fpp/9/3/ Forecasting: Principles and Practice 1 Outline 1 Vector autoregressions 2 Neural network

More information

Chapter 12: An introduction to Time Series Analysis. Chapter 12: An introduction to Time Series Analysis

Chapter 12: An introduction to Time Series Analysis. Chapter 12: An introduction to Time Series Analysis Chapter 12: An introduction to Time Series Analysis Introduction In this chapter, we will discuss forecasting with single-series (univariate) Box-Jenkins models. The common name of the models is Auto-Regressive

More information

477/577 In-class Exercise 5 : Fitting Wine Sales

477/577 In-class Exercise 5 : Fitting Wine Sales 477/577 In-class Exercise 5 : Fitting Wine Sales (due Fri 4/06/2017) Name: Use this file as a template for your report. Submit your code and comments together with (selected) output from R console. Your

More information

Homework 4. 1 Data analysis problems

Homework 4. 1 Data analysis problems Homework 4 1 Data analysis problems This week we will be analyzing a number of data sets. We are going to build ARIMA models using the steps outlined in class. It is also a good idea to read section 3.8

More information

Empirical Market Microstructure Analysis (EMMA)

Empirical Market Microstructure Analysis (EMMA) Empirical Market Microstructure Analysis (EMMA) Lecture 3: Statistical Building Blocks and Econometric Basics Prof. Dr. Michael Stein michael.stein@vwl.uni-freiburg.de Albert-Ludwigs-University of Freiburg

More information

The ARIMA Procedure: The ARIMA Procedure

The ARIMA Procedure: The ARIMA Procedure Page 1 of 120 Overview: ARIMA Procedure Getting Started: ARIMA Procedure The Three Stages of ARIMA Modeling Identification Stage Estimation and Diagnostic Checking Stage Forecasting Stage Using ARIMA Procedure

More information

INTRODUCTION TO TIME SERIES ANALYSIS. The Simple Moving Average Model

INTRODUCTION TO TIME SERIES ANALYSIS. The Simple Moving Average Model INTRODUCTION TO TIME SERIES ANALYSIS The Simple Moving Average Model The Simple Moving Average Model The simple moving average (MA) model: More formally: where t is mean zero white noise (WN). Three parameters:

More information

Some Time-Series Models

Some Time-Series Models Some Time-Series Models Outline 1. Stochastic processes and their properties 2. Stationary processes 3. Some properties of the autocorrelation function 4. Some useful models Purely random processes, random

More information

Circle a single answer for each multiple choice question. Your choice should be made clearly.

Circle a single answer for each multiple choice question. Your choice should be made clearly. TEST #1 STA 4853 March 4, 215 Name: Please read the following directions. DO NOT TURN THE PAGE UNTIL INSTRUCTED TO DO SO Directions This exam is closed book and closed notes. There are 31 questions. Circle

More information

Time Series Analysis -- An Introduction -- AMS 586

Time Series Analysis -- An Introduction -- AMS 586 Time Series Analysis -- An Introduction -- AMS 586 1 Objectives of time series analysis Data description Data interpretation Modeling Control Prediction & Forecasting 2 Time-Series Data Numerical data

More information

Modeling and forecasting global mean temperature time series

Modeling and forecasting global mean temperature time series Modeling and forecasting global mean temperature time series April 22, 2018 Abstract: An ARIMA time series model was developed to analyze the yearly records of the change in global annual mean surface

More information

Financial Time Series Analysis: Part II

Financial Time Series Analysis: Part II Department of Mathematics and Statistics, University of Vaasa, Finland Spring 2017 1 Unit root Deterministic trend Stochastic trend Testing for unit root ADF-test (Augmented Dickey-Fuller test) Testing

More information

Advanced Econometrics

Advanced Econometrics Advanced Econometrics Marco Sunder Nov 04 2010 Marco Sunder Advanced Econometrics 1/ 25 Contents 1 2 3 Marco Sunder Advanced Econometrics 2/ 25 Music Marco Sunder Advanced Econometrics 3/ 25 Music Marco

More information

Univariate Time Series Analysis; ARIMA Models

Univariate Time Series Analysis; ARIMA Models Econometrics 2 Fall 24 Univariate Time Series Analysis; ARIMA Models Heino Bohn Nielsen of4 Outline of the Lecture () Introduction to univariate time series analysis. (2) Stationarity. (3) Characterizing

More information

Suan Sunandha Rajabhat University

Suan Sunandha Rajabhat University Forecasting Exchange Rate between Thai Baht and the US Dollar Using Time Series Analysis Kunya Bowornchockchai Suan Sunandha Rajabhat University INTRODUCTION The objective of this research is to forecast

More information

Exercises - Time series analysis

Exercises - Time series analysis Descriptive analysis of a time series (1) Estimate the trend of the series of gasoline consumption in Spain using a straight line in the period from 1945 to 1995 and generate forecasts for 24 months. Compare

More information

Autoregressive Integrated Moving Average Model to Predict Graduate Unemployment in Indonesia

Autoregressive Integrated Moving Average Model to Predict Graduate Unemployment in Indonesia DOI 10.1515/ptse-2017-0005 PTSE 12 (1): 43-50 Autoregressive Integrated Moving Average Model to Predict Graduate Unemployment in Indonesia Umi MAHMUDAH u_mudah@yahoo.com (State Islamic University of Pekalongan,

More information

Forecasting using R. Rob J Hyndman. 2.3 Stationarity and differencing. Forecasting using R 1

Forecasting using R. Rob J Hyndman. 2.3 Stationarity and differencing. Forecasting using R 1 Forecasting using R Rob J Hyndman 2.3 Stationarity and differencing Forecasting using R 1 Outline 1 Stationarity 2 Differencing 3 Unit root tests 4 Lab session 10 5 Backshift notation Forecasting using

More information

UNIVARIATE TIME SERIES ANALYSIS BRIEFING 1970

UNIVARIATE TIME SERIES ANALYSIS BRIEFING 1970 UNIVARIATE TIME SERIES ANALYSIS BRIEFING 1970 Joseph George Caldwell, PhD (Statistics) 1432 N Camino Mateo, Tucson, AZ 85745-3311 USA Tel. (001)(520)222-3446, E-mail jcaldwell9@yahoo.com (File converted

More information

Stat 565. Spurious Regression. Charlotte Wickham. stat565.cwick.co.nz. Feb

Stat 565. Spurious Regression. Charlotte Wickham. stat565.cwick.co.nz. Feb Stat 565 Spurious Regression Feb 16 2016 Charlotte Wickham stat565.cwick.co.nz Last time: We can extend regression to deal with correlated errors. Today: Explore the concept of spurious correlation/regression

More information

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY

EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY EXAMINATIONS OF THE ROYAL STATISTICAL SOCIETY GRADUATE DIPLOMA, 011 MODULE 3 : Stochastic processes and time series Time allowed: Three Hours Candidates should answer FIVE questions. All questions carry

More information

Firstly, the dataset is cleaned and the years and months are separated to provide better distinction (sample below).

Firstly, the dataset is cleaned and the years and months are separated to provide better distinction (sample below). Project: Forecasting Sales Step 1: Plan Your Analysis Answer the following questions to help you plan out your analysis: 1. Does the dataset meet the criteria of a time series dataset? Make sure to explore

More information

Forecasting Seasonal Time Series 1. Introduction. Philip Hans Franses Econometric Institute Erasmus University Rotterdam

Forecasting Seasonal Time Series 1. Introduction. Philip Hans Franses Econometric Institute Erasmus University Rotterdam Forecasting Seasonal Time Series 1. Introduction Philip Hans Franses Econometric Institute Erasmus University Rotterdam SMU and NUS, Singapore, April-May 2004 1 Outline of tutorial lectures 1 Introduction

More information

Lecture 6a: Unit Root and ARIMA Models

Lecture 6a: Unit Root and ARIMA Models Lecture 6a: Unit Root and ARIMA Models 1 2 Big Picture A time series is non-stationary if it contains a unit root unit root nonstationary The reverse is not true. For example, y t = cos(t) + u t has no

More information

Sugarcane Productivity in Bihar- A Forecast through ARIMA Model

Sugarcane Productivity in Bihar- A Forecast through ARIMA Model Available online at www.ijpab.com Kumar et al Int. J. Pure App. Biosci. 5 (6): 1042-1051 (2017) ISSN: 2320 7051 DOI: http://dx.doi.org/10.18782/2320-7051.5838 ISSN: 2320 7051 Int. J. Pure App. Biosci.

More information

The Problem. Regression With Correlated Errors. Generalized Least Squares. Correlated Errors. Consider the typical regression model.

The Problem. Regression With Correlated Errors. Generalized Least Squares. Correlated Errors. Consider the typical regression model. The Problem Regression With Correlated Errors Consider the typical regression model y t = β z t + x t where x t is a process with covariance function γ(s, t). The matrix formulation is y = Z β + x where

More information

Estimation and application of best ARIMA model for forecasting the uranium price.

Estimation and application of best ARIMA model for forecasting the uranium price. Estimation and application of best ARIMA model for forecasting the uranium price. Medeu Amangeldi May 13, 2018 Capstone Project Superviser: Dongming Wei Second reader: Zhenisbek Assylbekov Abstract This

More information

5 Autoregressive-Moving-Average Modeling

5 Autoregressive-Moving-Average Modeling 5 Autoregressive-Moving-Average Modeling 5. Purpose. Autoregressive-moving-average (ARMA models are mathematical models of the persistence, or autocorrelation, in a time series. ARMA models are widely

More information

Reliability and Risk Analysis. Time Series, Types of Trend Functions and Estimates of Trends

Reliability and Risk Analysis. Time Series, Types of Trend Functions and Estimates of Trends Reliability and Risk Analysis Stochastic process The sequence of random variables {Y t, t = 0, ±1, ±2 } is called the stochastic process The mean function of a stochastic process {Y t} is the function

More information

Booth School of Business, University of Chicago Business 41914, Spring Quarter 2017, Mr. Ruey S. Tsay Midterm

Booth School of Business, University of Chicago Business 41914, Spring Quarter 2017, Mr. Ruey S. Tsay Midterm Booth School of Business, University of Chicago Business 41914, Spring Quarter 2017, Mr. Ruey S. Tsay Midterm Chicago Booth Honor Code: I pledge my honor that I have not violated the Honor Code during

More information

STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9)

STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) Outline 1 Building ARIMA Models 2 SARIMA 3 Homework 4c Arthur Berg STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) 2/ 34 Outline 1 Building ARIMA Models

More information

Unit root problem, solution of difference equations Simple deterministic model, question of unit root

Unit root problem, solution of difference equations Simple deterministic model, question of unit root Unit root problem, solution of difference equations Simple deterministic model, question of unit root (1 φ 1 L)X t = µ, Solution X t φ 1 X t 1 = µ X t = A + Bz t with unknown z and unknown A (clearly X

More information

Forecasting: principles and practice 1

Forecasting: principles and practice 1 Forecasting: principles and practice Rob J Hyndman 2.3 Stationarity and differencing Forecasting: principles and practice 1 Outline 1 Stationarity 2 Differencing 3 Unit root tests 4 Lab session 10 5 Backshift

More information

Exponentially weighted forecasts

Exponentially weighted forecasts FORECASTING USING R Exponentially weighted forecasts Rob Hyndman Author, forecast Simple exponential smoothing Forecasting Notation: ŷ t+h t = y t+h y 1,...,y t point forecast of Forecast Equation: given

More information

Part 1. Multiple Choice (40 questions, 1 point each) Part 2. Problems/Short Answer (10 questions, 6 points each)

Part 1. Multiple Choice (40 questions, 1 point each) Part 2. Problems/Short Answer (10 questions, 6 points each) GROUND RULES: This exam contains two parts: Part 1. Multiple Choice (40 questions, 1 point each) Part 2. Problems/Short Answer (10 questions, 6 points each) The maximum number of points on this exam is

More information

Spectral Analysis. Al Nosedal University of Toronto. Winter Al Nosedal University of Toronto Spectral Analysis Winter / 71

Spectral Analysis. Al Nosedal University of Toronto. Winter Al Nosedal University of Toronto Spectral Analysis Winter / 71 Spectral Analysis Al Nosedal University of Toronto Winter 2016 Al Nosedal University of Toronto Spectral Analysis Winter 2016 1 / 71 essentially, all models are wrong, but some are useful George E. P.

More information

STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) Outline. Return Rate. US Gross National Product

STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) Outline. Return Rate. US Gross National Product STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) Outline 1 Building ARIMA Models 2 SARIMA 3 Homework 4c Arthur Berg STA 6857 ARIMA and SARIMA Models ( 3.8 and 3.9) 2/ 34 Return Rate Suppose x t is the value

More information

Forecasting Area, Production and Yield of Cotton in India using ARIMA Model

Forecasting Area, Production and Yield of Cotton in India using ARIMA Model Forecasting Area, Production and Yield of Cotton in India using ARIMA Model M. K. Debnath 1, Kartic Bera 2 *, P. Mishra 1 1 Department of Agricultural Statistics, Bidhan Chanda Krishi Vishwavidyalaya,

More information

Time Series Outlier Detection

Time Series Outlier Detection Time Series Outlier Detection Tingyi Zhu July 28, 2016 Tingyi Zhu Time Series Outlier Detection July 28, 2016 1 / 42 Outline Time Series Basics Outliers Detection in Single Time Series Outlier Series Detection

More information

Seasonal Autoregressive Integrated Moving Average Model for Precipitation Time Series

Seasonal Autoregressive Integrated Moving Average Model for Precipitation Time Series Journal of Mathematics and Statistics 8 (4): 500-505, 2012 ISSN 1549-3644 2012 doi:10.3844/jmssp.2012.500.505 Published Online 8 (4) 2012 (http://www.thescipub.com/jmss.toc) Seasonal Autoregressive Integrated

More information

Univariate ARIMA Models

Univariate ARIMA Models Univariate ARIMA Models ARIMA Model Building Steps: Identification: Using graphs, statistics, ACFs and PACFs, transformations, etc. to achieve stationary and tentatively identify patterns and model components.

More information

Part 1. Multiple Choice (50 questions, 1 point each) Part 2. Problems/Short Answer (10 questions, 5 points each)

Part 1. Multiple Choice (50 questions, 1 point each) Part 2. Problems/Short Answer (10 questions, 5 points each) GROUND RULES: This exam contains two parts: Part 1. Multiple Choice (50 questions, 1 point each) Part 2. Problems/Short Answer (10 questions, 5 points each) The maximum number of points on this exam is

More information

FIN822 project 2 Project 2 contains part I and part II. (Due on November 10, 2008)

FIN822 project 2 Project 2 contains part I and part II. (Due on November 10, 2008) FIN822 project 2 Project 2 contains part I and part II. (Due on November 10, 2008) Part I Logit Model in Bankruptcy Prediction You do not believe in Altman and you decide to estimate the bankruptcy prediction

More information

Ch 8. MODEL DIAGNOSTICS. Time Series Analysis

Ch 8. MODEL DIAGNOSTICS. Time Series Analysis Model diagnostics is concerned with testing the goodness of fit of a model and, if the fit is poor, suggesting appropriate modifications. We shall present two complementary approaches: analysis of residuals

More information

Booth School of Business, University of Chicago Business 41914, Spring Quarter 2017, Mr. Ruey S. Tsay. Solutions to Midterm

Booth School of Business, University of Chicago Business 41914, Spring Quarter 2017, Mr. Ruey S. Tsay. Solutions to Midterm Booth School of Business, University of Chicago Business 41914, Spring Quarter 017, Mr Ruey S Tsay Solutions to Midterm Problem A: (51 points; 3 points per question) Answer briefly the following questions

More information

Classical Decomposition Model Revisited: I

Classical Decomposition Model Revisited: I Classical Decomposition Model Revisited: I recall classical decomposition model for time series Y t, namely, Y t = m t + s t + W t, where m t is trend; s t is periodic with known period s (i.e., s t s

More information

Lecture 19 Box-Jenkins Seasonal Models

Lecture 19 Box-Jenkins Seasonal Models Lecture 19 Box-Jenkins Seasonal Models If the time series is nonstationary with respect to its variance, then we can stabilize the variance of the time series by using a pre-differencing transformation.

More information

Introduction to Regression Analysis. Dr. Devlina Chatterjee 11 th August, 2017

Introduction to Regression Analysis. Dr. Devlina Chatterjee 11 th August, 2017 Introduction to Regression Analysis Dr. Devlina Chatterjee 11 th August, 2017 What is regression analysis? Regression analysis is a statistical technique for studying linear relationships. One dependent

More information

ITSM-R Reference Manual

ITSM-R Reference Manual ITSM-R Reference Manual George Weigt February 11, 2018 1 Contents 1 Introduction 3 1.1 Time series analysis in a nutshell............................... 3 1.2 White Noise Variance.....................................

More information

Chapter 3: Regression Methods for Trends

Chapter 3: Regression Methods for Trends Chapter 3: Regression Methods for Trends Time series exhibiting trends over time have a mean function that is some simple function (not necessarily constant) of time. The example random walk graph from

More information

STAT Financial Time Series

STAT Financial Time Series STAT 6104 - Financial Time Series Chapter 4 - Estimation in the time Domain Chun Yip Yau (CUHK) STAT 6104:Financial Time Series 1 / 46 Agenda 1 Introduction 2 Moment Estimates 3 Autoregressive Models (AR

More information

Analysis. Components of a Time Series

Analysis. Components of a Time Series Module 8: Time Series Analysis 8.2 Components of a Time Series, Detection of Change Points and Trends, Time Series Models Components of a Time Series There can be several things happening simultaneously

More information

FinQuiz Notes

FinQuiz Notes Reading 9 A time series is any series of data that varies over time e.g. the quarterly sales for a company during the past five years or daily returns of a security. When assumptions of the regression

More information

Applied Time Series Topics

Applied Time Series Topics Applied Time Series Topics Ivan Medovikov Brock University April 16, 2013 Ivan Medovikov, Brock University Applied Time Series Topics 1/34 Overview 1. Non-stationary data and consequences 2. Trends and

More information

Forecasting: principles and practice. Rob J Hyndman 1.1 Introduction to Forecasting

Forecasting: principles and practice. Rob J Hyndman 1.1 Introduction to Forecasting Forecasting: principles and practice Rob J Hyndman 1.1 Introduction to Forecasting 1 Outline 1 Background 2 Case studies 3 The statistical forecasting perspective 4 What can we forecast? 2 Resources Slides

More information

Forecasting with ARIMA models This version: 14 January 2018

Forecasting with ARIMA models This version: 14 January 2018 Forecasting with ARIMA models This version: 14 January 2018 Notes for Intermediate Econometrics / Time Series Analysis and Forecasting Anthony Tay Elsewhere we showed that the optimal forecast for a mean

More information

MODELING INFLATION RATES IN NIGERIA: BOX-JENKINS APPROACH. I. U. Moffat and A. E. David Department of Mathematics & Statistics, University of Uyo, Uyo

MODELING INFLATION RATES IN NIGERIA: BOX-JENKINS APPROACH. I. U. Moffat and A. E. David Department of Mathematics & Statistics, University of Uyo, Uyo Vol.4, No.2, pp.2-27, April 216 MODELING INFLATION RATES IN NIGERIA: BOX-JENKINS APPROACH I. U. Moffat and A. E. David Department of Mathematics & Statistics, University of Uyo, Uyo ABSTRACT: This study

More information

Ross Bettinger, Analytical Consultant, Seattle, WA

Ross Bettinger, Analytical Consultant, Seattle, WA ABSTRACT DYNAMIC REGRESSION IN ARIMA MODELING Ross Bettinger, Analytical Consultant, Seattle, WA Box-Jenkins time series models that contain exogenous predictor variables are called dynamic regression

More information

A SARIMAX coupled modelling applied to individual load curves intraday forecasting

A SARIMAX coupled modelling applied to individual load curves intraday forecasting A SARIMAX coupled modelling applied to individual load curves intraday forecasting Frédéric Proïa Workshop EDF Institut Henri Poincaré - Paris 05 avril 2012 INRIA Bordeaux Sud-Ouest Institut de Mathématiques

More information

ARIMA Modelling and Forecasting

ARIMA Modelling and Forecasting ARIMA Modelling and Forecasting Economic time series often appear nonstationary, because of trends, seasonal patterns, cycles, etc. However, the differences may appear stationary. Δx t x t x t 1 (first

More information

Topic 4 Unit Roots. Gerald P. Dwyer. February Clemson University

Topic 4 Unit Roots. Gerald P. Dwyer. February Clemson University Topic 4 Unit Roots Gerald P. Dwyer Clemson University February 2016 Outline 1 Unit Roots Introduction Trend and Difference Stationary Autocorrelations of Series That Have Deterministic or Stochastic Trends

More information

Forecasting. Simon Shaw 2005/06 Semester II

Forecasting. Simon Shaw 2005/06 Semester II Forecasting Simon Shaw s.c.shaw@maths.bath.ac.uk 2005/06 Semester II 1 Introduction A critical aspect of managing any business is planning for the future. events is called forecasting. Predicting future

More information

Testing for non-stationarity

Testing for non-stationarity 20 November, 2009 Overview The tests for investigating the non-stationary of a time series falls into four types: 1 Check the null that there is a unit root against stationarity. Within these, there are

More information

Evaluation of Some Techniques for Forecasting of Electricity Demand in Sri Lanka

Evaluation of Some Techniques for Forecasting of Electricity Demand in Sri Lanka Appeared in Sri Lankan Journal of Applied Statistics (Volume 3) 00 Evaluation of Some echniques for Forecasting of Electricity Demand in Sri Lanka.M.J. A. Cooray and M.Indralingam Department of Mathematics

More information

Module 3. Descriptive Time Series Statistics and Introduction to Time Series Models

Module 3. Descriptive Time Series Statistics and Introduction to Time Series Models Module 3 Descriptive Time Series Statistics and Introduction to Time Series Models Class notes for Statistics 451: Applied Time Series Iowa State University Copyright 2015 W Q Meeker November 11, 2015

More information

Ch3. TRENDS. Time Series Analysis

Ch3. TRENDS. Time Series Analysis 3.1 Deterministic Versus Stochastic Trends The simulated random walk in Exhibit 2.1 shows a upward trend. However, it is caused by a strong correlation between the series at nearby time points. The true

More information

THE ROYAL STATISTICAL SOCIETY 2009 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULAR FORMAT MODULE 3 STOCHASTIC PROCESSES AND TIME SERIES

THE ROYAL STATISTICAL SOCIETY 2009 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULAR FORMAT MODULE 3 STOCHASTIC PROCESSES AND TIME SERIES THE ROYAL STATISTICAL SOCIETY 9 EXAMINATIONS SOLUTIONS GRADUATE DIPLOMA MODULAR FORMAT MODULE 3 STOCHASTIC PROCESSES AND TIME SERIES The Society provides these solutions to assist candidates preparing

More information

A test for improved forecasting performance at higher lead times

A test for improved forecasting performance at higher lead times A test for improved forecasting performance at higher lead times John Haywood and Granville Tunnicliffe Wilson September 3 Abstract Tiao and Xu (1993) proposed a test of whether a time series model, estimated

More information

Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8]

Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8] 1 Multivariate Time Series Analysis and Its Applications [Tsay (2005), chapter 8] Insights: Price movements in one market can spread easily and instantly to another market [economic globalization and internet

More information

Estadística Oficial. Transfer Function Model Identication

Estadística Oficial. Transfer Function Model Identication Boletín de Estadística e Investigación Operativa Vol 25, No 2, Junio 2009, pp 109-115 Estadística Oficial Transfer Function Model Identication Víctor Gómez Ministerio de Economía y Hacienda B vgomez@sgpgmehes

More information

ARIMA Models. Jamie Monogan. January 16, University of Georgia. Jamie Monogan (UGA) ARIMA Models January 16, / 27

ARIMA Models. Jamie Monogan. January 16, University of Georgia. Jamie Monogan (UGA) ARIMA Models January 16, / 27 ARIMA Models Jamie Monogan University of Georgia January 16, 2018 Jamie Monogan (UGA) ARIMA Models January 16, 2018 1 / 27 Objectives By the end of this meeting, participants should be able to: Argue why

More information

Econometrics I: Univariate Time Series Econometrics (1)

Econometrics I: Univariate Time Series Econometrics (1) Econometrics I: Dipartimento di Economia Politica e Metodi Quantitativi University of Pavia Overview of the Lecture 1 st EViews Session VI: Some Theoretical Premises 2 Overview of the Lecture 1 st EViews

More information

Empirical Approach to Modelling and Forecasting Inflation in Ghana

Empirical Approach to Modelling and Forecasting Inflation in Ghana Current Research Journal of Economic Theory 4(3): 83-87, 2012 ISSN: 2042-485X Maxwell Scientific Organization, 2012 Submitted: April 13, 2012 Accepted: May 06, 2012 Published: June 30, 2012 Empirical Approach

More information

MCMC analysis of classical time series algorithms.

MCMC analysis of classical time series algorithms. MCMC analysis of classical time series algorithms. mbalawata@yahoo.com Lappeenranta University of Technology Lappeenranta, 19.03.2009 Outline Introduction 1 Introduction 2 3 Series generation Box-Jenkins

More information

at least 50 and preferably 100 observations should be available to build a proper model

at least 50 and preferably 100 observations should be available to build a proper model III Box-Jenkins Methods 1. Pros and Cons of ARIMA Forecasting a) need for data at least 50 and preferably 100 observations should be available to build a proper model used most frequently for hourly or

More information

New York University Department of Economics. Applied Statistics and Econometrics G Spring 2013

New York University Department of Economics. Applied Statistics and Econometrics G Spring 2013 New York University Department of Economics Applied Statistics and Econometrics G31.1102 Spring 2013 Text: Econometric Analysis, 7 h Edition, by William Greene (Prentice Hall) Optional: A Guide to Modern

More information

CHAPTER 8 MODEL DIAGNOSTICS. 8.1 Residual Analysis

CHAPTER 8 MODEL DIAGNOSTICS. 8.1 Residual Analysis CHAPTER 8 MODEL DIAGNOSTICS We have now discussed methods for specifying models and for efficiently estimating the parameters in those models. Model diagnostics, or model criticism, is concerned with testing

More information

arxiv: v1 [stat.co] 11 Dec 2012

arxiv: v1 [stat.co] 11 Dec 2012 Simulating the Continuation of a Time Series in R December 12, 2012 arxiv:1212.2393v1 [stat.co] 11 Dec 2012 Halis Sak 1 Department of Industrial and Systems Engineering, Yeditepe University, Kayışdağı,

More information

COMPUTER SESSION 3: ESTIMATION AND FORECASTING.

COMPUTER SESSION 3: ESTIMATION AND FORECASTING. UPPSALA UNIVERSITY Department of Mathematics JR Analysis of Time Series 1MS014 Spring 2010 COMPUTER SESSION 3: ESTIMATION AND FORECASTING. 1 Introduction The purpose of this exercise is two-fold: (i) By

More information

ECON/FIN 250: Forecasting in Finance and Economics: Section 7: Unit Roots & Dickey-Fuller Tests

ECON/FIN 250: Forecasting in Finance and Economics: Section 7: Unit Roots & Dickey-Fuller Tests ECON/FIN 250: Forecasting in Finance and Economics: Section 7: Unit Roots & Dickey-Fuller Tests Patrick Herb Brandeis University Spring 2016 Patrick Herb (Brandeis University) Unit Root Tests ECON/FIN

More information

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MAS451/MTH451 Time Series Analysis TIME ALLOWED: 2 HOURS

NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION MAS451/MTH451 Time Series Analysis TIME ALLOWED: 2 HOURS NANYANG TECHNOLOGICAL UNIVERSITY SEMESTER II EXAMINATION 2012-2013 MAS451/MTH451 Time Series Analysis May 2013 TIME ALLOWED: 2 HOURS INSTRUCTIONS TO CANDIDATES 1. This examination paper contains FOUR (4)

More information