With joint time series data and either a bivariate model, data (X(t),Y(t); t = 0,...,T-1) or a regression/transfer function model the following R functions.

Slides:



Advertisements
Similar presentations
SMA 6304 / MIT / MIT Manufacturing Systems Lecture 11: Forecasting Lecturer: Prof. Duane S. Boning Copyright 2003 © Duane S. Boning. 1.
Advertisements

Using R for Time Series Analysis R is a package that can be downloaded for free.
Time Series Building 1. Model Identification
Time Series Analysis using SAS prepared by John Fahey (former Load Forecaster at NSPI) and Voytek Grus (former Sales and Revenue Forecaster at BC Gas Inc.)
BABS 502 Lecture 9 ARIMA Forecasting II March 23, 2009.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.
1 Power Nine Econ 240C. 2 Outline Lab Three Exercises Lab Three Exercises –Fit a linear trend to retail and food sales –Add a quadratic term –Use both.
NY Times 23 Sept time series of the day. Stat Sept 2008 D. R. Brillinger Chapter 4 - Fitting t.s. models in the time domain sample autocovariance.
BABS 502 Lecture 8 ARIMA Forecasting II March 16 and 21, 2011.
L7: ARIMA1 Lecture 7: ARIMA Model Process The following topics will be covered: Properties of Stock Returns AR model MA model ARMA Non-Stationary Process.
BOX JENKINS METHODOLOGY
Box Jenkins or Arima Forecasting. H:\My Documents\classes\eco346\Lectures\chap ter 7\Autoregressive Models.docH:\My Documents\classes\eco346\Lectures\chap.
Teknik Peramalan: Materi minggu kedelapan
Tapering and prewhitening fFT taper, h(u). Need for prewhitening/prefiltering periodogram is generally biased.
#1 EC 485: Time Series Analysis in a Nut Shell. #2 Data Preparation: 1)Plot data and examine for stationarity 2)Examine ACF for stationarity 3)If not.
Intervention models Something’s happened around t = 200.
Overview of Main Quality Diagnostics Anu Peltola Economic Statistics Section, UNECE UNECE Workshop on Seasonal Adjustment 20 – 23 February 2012, Ankara,
John G. Zhang, Ph.D. Harper College
Introducing ITSM 2000 By: Amir Heshmaty Far. S EVERAL FUNCTION IN ITSM to analyze and display the properties of time series data to compute and display.
Big Data at Home Depot KSU – Big Data Survey Course Steve Einbender Advanced Analytics Architect.
3.Analysis of asset price dynamics 3.1Introduction Price – continuous function yet sampled discretely (usually - equal spacing). Stochastic process – has.
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS 1. After identifying and estimating a time series model, the goodness-of-fit of the model and validity of the.
Seasonal ARMA forecasting and Fitting the bivariate data to GARCH John DOE.
Case 2 Review Brad Barker, Benjamin Milroy, Matt Sonnycalb, Kristofer Still, Chandhrika Venkataraman Time Series - February 2013.
Linear Filters. denote a bivariate time series with zero mean. Let.
Mean and Variance Dynamics Between Agricultural Commodity Prices, Crude Oil Prices and Exchange Rates Ardian Harri Mississippi State University Darren.
2/25/ lecture 121 STATS 330: Lecture 12. 2/25/ lecture 122 Diagnostics 4 Aim of today’s lecture To discuss diagnostics for independence.
Standard and Poor index (S&P500) Standard and Poor index (S&P500) : Returns (first difference)
Testing Seasonal Adjustment of the Price Index for tomatoes with Demetra+ Kumpeisova Dinara Agency of Statistics of the Republic of Kazakhstan, Kazakhstan.
Subodh Kant. Auto-Regressive Integrated Moving Average Also known as Box-Jenkins methodology A type of linear model Capable of representing stationary.
Time series analysis. Example Objectives of time series analysis.
Analysis of Financial Data Spring 2012 Lecture 5: Time Series Models - 3 Priyantha Wijayatunga Department of Statistics, Umeå University
Ian Newcombe CO 2 LEVEL RISE OVER 26 YEARS. DATASET Quarterly Mauna Loa, HI CO 2 Record Quarterly US gasoline sales Quarterly US car and light truck sales.
Predicting Future. Two Approaches to Predition n Extrapolation: Use past experiences for predicting future. One looks for patterns over time. n Predictive.
TBC Ingredients ApS TBC Ingredients ApS Edible oils monthly price development month development on page December 2012.
Energy Consumption Forecast Using JMP® Pro 11 Time Series Analysis
A bank of band-pass filters
Case study 4: Multiplicative Seasonal ARIMA Model
An Example. The question Data Analyses Conclusions.
Lecture 8 ARIMA Forecasting II
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
TM 745 Forecasting for Business & Technology Dr. Frank Joseph Matejcik
Statistics 153 Review - Sept 30, 2008
6.4 GARCH models..
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS.
Applied Econometric Time-Series Data Analysis
Testing seasonal adjustment with Demetra+
NY Times 25 November 2008.
Regression with ARMA Errors
The importance of prefiltering.
A Weighted Moving Average Process for Forecasting “Economics and Environment” By Chris P. Tsokos.
ARCH(m) Example. S&P/TSX Capped Composite
An ARCH(m) example S&P/TSX Capped Composite 4/26/2010 to 4/26/2013
postscript(file="sales.eps",paper="letter")
5.4 GARCH models..
How to select regressors and specifications in Demetra+?
Sales of Existing Detached Homes
Sales Started the Year with Down
Linear Filters.
Chapter 8 Supplement Forecasting.
Time Series Analysis and Seasonal Adjustment
Peak-Fitting This slide show presents a Step-by-Step view of a simple peak-fit We first define the number of “data” points to define the end points Then.
Case study 3: SEASONAL ARIMA MODEL
Yankov V.M. Rosstat, Russian Federation
Time Series introduction in R - Iñaki Puigdollers
Ermurachi Galina National Bureau of Statistics, Republic of Moldova
Selective Editing Techniques and Seasonal Adjustment of STS
Testing seasonal adjustment with Demetra+
Chap 7: Seasonal ARIMA Models
Presentation transcript:

With joint time series data and either a bivariate model, data (X(t),Y(t); t = 0,...,T-1) or a regression/transfer function model the following R functions are available: 1. ccf() 2. arimax() use xreg option to fit Y(t) = c(0)X(t) + c(1)X(t-1) + ... + c(K)X(t-k) + Z(t), Z(.) noise 3. spectrum() A key parameter estimated in 3. is the coherence.

Monthly price of oil - Jan 86 to Jan 2006 Fit arima Check via acf and spec of residuals library(TSA) data(oil.price) par(mfrow=c(2,1)) plot(log(oil.price),main="log(monthly oil.prices)",type="l") m1.oil<-arima(log(oil.price),order=c(0,1,1)) plot(residuals(m1.oil),type="l",main="residuals ARIMA(0,1,1)") acf(residuals(m1.oil),main="acf residuals") spec(residuals(m1.oil),span=2,log="yes",main="log(spectrum) residuals")

postscript(file="unemploy. eps") par(mfrow=c(2,1)) junk<-read postscript(file="unemploy.eps") par(mfrow=c(2,1)) junk<-read.table("unrate.dat",header=F) time<-seq(from=1948,to=(2013-1/12),by=1/12) rate<-c(junk[,2],NA,NA) junknsa<-read.table("unratensa.dat",header=F) ratensa<-c(junknsa[,2],NA,NA) plot(time,ratensa,xlab="",ylab="year",main="Not seasonally adjusted unemployment rate 1948-2012",type="l") plot(time,rate,xlab="",ylab="year",main="Seasonallu adjusted unemployment rate 1948-2012",type="l") spectrum(ratensa[1:778],spans=5,main="Spectrum estimate unadjusted") for(j in 1:6){ abline(v=j/12,col="blue") } spectrum(rate[1:778],spans=5,main="Spectrum estimate adjusted") for(j in 1:6){ abline(v=j/12,col="blue") } graphics.off()