Financial Econometrics Lecture Notes 2

Slides:



Advertisements
Similar presentations
FINANCIAL TIME-SERIES ECONOMETRICS SUN LIJIAN Feb 23,2001.
Advertisements

SMA 6304 / MIT / MIT Manufacturing Systems Lecture 11: Forecasting Lecturer: Prof. Duane S. Boning Copyright 2003 © Duane S. Boning. 1.
Cointegration and Error Correction Models
Autocorrelation Functions and ARIMA Modelling
Time Series Analysis Definition of a Time Series process
Nonstationary Time Series Data and Cointegration
DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Exam 1 review: Quizzes 1-6.
Using SAS for Time Series Data
Part II – TIME SERIES ANALYSIS C5 ARIMA (Box-Jenkins) Models
Nonstationary Time Series Data and Cointegration Prepared by Vera Tabakova, East Carolina University.
Non-stationary data series
Unit Roots & Forecasting
Slide 1 DSCI 5340: Predictive Modeling and Business Forecasting Spring 2013 – Dr. Nick Evangelopoulos Lecture 7: Box-Jenkins Models – Part II (Ch. 9) Material.
Time Series Building 1. Model Identification
R. Werner Solar Terrestrial Influences Institute - BAS Time Series Analysis by means of inference statistical methods.
An Introduction to Time Series Ginger Davis VIGRE Computational Finance Seminar Rice University November 26, 2003.
Economics 20 - Prof. Anderson
12 Autocorrelation Serial Correlation exists when errors are correlated across periods -One source of serial correlation is misspecification of the model.
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.
#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.
Various topics Petter Mostad Overview Epidemiology Study types / data types Econometrics Time series data More about sampling –Estimation.
It’s About Time Mark Otto U. S. Fish and Wildlife Service.
FAME Time Series Econometrics Daniel V. Gordon Department of Economics University of Calgary.
Autocorrelation, Box Jenkins or ARIMA Forecasting.
The Properties of Time Series: Lecture 4 Previously introduced AR(1) model X t = φX t-1 + u t (1) (a) White Noise (stationary/no unit root) X t = u t i.e.
How do we identify non-stationary processes? (A) Informal methods Thomas 14.1 Plot time series Correlogram (B) Formal Methods Statistical test for stationarity.
Time Series Basics Fin250f: Lecture 8.1 Spring 2010 Reading: Brooks, chapter
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.
MULTIVARIATE TIME SERIES & FORECASTING 1. 2 : autocovariance function of the individual time series.
Time Series Analysis Lecture 11
Dynamic Models, Autocorrelation and Forecasting ECON 6002 Econometrics Memorial University of Newfoundland Adapted from Vera Tabakova’s notes.
1 Chapter 5 : Volatility Models Similar to linear regression analysis, many time series exhibit a non-constant variance (heteroscedasticity). In a regression.
The Box-Jenkins (ARIMA) Methodology
TESTING FOR NONSTATIONARITY 1 This sequence will describe two methods for detecting nonstationarity, a graphical method involving correlograms and a more.
TESTING FOR NONSTATIONARITY 1 This sequence will describe two methods for detecting nonstationarity, a graphical method involving correlograms and a more.
Introduction to stochastic processes
Time Series Analysis PART II. Econometric Forecasting Forecasting is an important part of econometric analysis, for some people probably the most important.
Stationarity and Unit Root Testing Dr. Thomas Kigabo RUSUHUZWA.
1 Lecture Plan : Statistical trading models for energy futures.: Stochastic Processes and Market Efficiency Trading Models Long/Short one.
Lecture 12 Time Series Model Estimation Materials for lecture 12 Read Chapter 15 pages 30 to 37 Lecture 12 Time Series.XLSX Lecture 12 Vector Autoregression.XLSX.
Analysis of Financial Data Spring 2012 Lecture 4: Time Series Models - 1 Priyantha Wijayatunga Department of Statistics, Umeå University
Financial Econometrics Lecture Notes 5
Stochastic Process - Introduction
Financial Econometrics Lecture Notes 4
Lecture 12 Time Series Model Estimation
Nonstationary Time Series Data and Cointegration
Ch8 Time Series Modeling
Time Series Econometrics: Some Basic Concepts
Chapter 6: Autoregressive Integrated Moving Average (ARIMA) Models
Further Issues Using OLS with Time Series Data
STAT 497 LECTURE NOTE 9 DIAGNOSTIC CHECKS.
Applied Econometric Time-Series Data Analysis
CHAPTER 16 ECONOMIC FORECASTING Damodar Gujarati
Further Issues in Using OLS with Time Series Data
STATIONARY AND NONSTATIONARY TIME SERIES

Forecasting with non-stationary data series
Machine Learning Week 4.
Stock Prediction with ARIMA
Module 3 Forecasting a Single Variable from its own History, continued
Unit Root & Augmented Dickey-Fuller (ADF) Test
Introduction to Time Series
Further Issues Using OLS with Time Series Data
Lecturer Dr. Veronika Alhanaqtah
Autocorrelation MS management.
CH2 Time series.
BOX JENKINS (ARIMA) METHODOLOGY
Stationary Stochastic Process
Presentation transcript:

Financial Econometrics Lecture Notes 2 University of Piraeus Antypas Antonios

Contents Time Series Models Forecasting Stationarity VS Non Stationarity ARIMA(p,d,q) Models Forecasting In Sample & Out of Sample Modeling The Dynamics of The Variance Conditional Heteroskedasticity Models - GARCH(p,q) Re-specifying our initial model

Data Time Series We analyze how a variable of interest evolves over time Example: Collect the historic values of X1,t: “Advertisement Expenditures “ and Yt: “Sales of Product A “ realized by Company “ABC” to examine the success of advertisement campaigns of this company Subscript “t” refers to the value of a variable at date t, e.g. Y2000 refers to the sales that Company “ABC” realized during the year 2000

Time Series Analysis Modeling time series Definitions Exogenous Models: Describe a time series as a function of other time series Time Series Models: Models aiming to describe the dynamics of the series Definitions First Order Stationarity E(yt)=μ is constant Second Order Stationarity ( or weakly stationarity ) var(yt)=σ2 is constant cov(yt,yt+s)=f(s) is a function of the distance “s” Second Order Stationarity Implies First Order Stationarity

Series is Second Order Stationary Time Series Analysis Examples of stationarity Series is Second Order Stationary

Time Series Analysis Examples of stationarity Series is First Order Stationary and not Second Order Stationary (the variance changes at some time)

Series is Not Stationary Time Series Analysis Examples of stationarity Series is Not Stationary

Time Series Analysis Stationarity and Empirical Stylized Facts Prices of an Asset are not Stationary Returns of an Asset are Stationary

Time Series Analysis Autoregressive models of order p are used to model time dependence in our series using past realizations First Order Autoregressive Model - AR(1) – is the simplest case We regress Yt on itself (auto regressive), one lag back (first order) gretl command for estimating an AR(1) Model ols Y const Y(-1) or arma 1 0 ; y or arima 1 0 0 ; y gretl command for estimating an AR(3) Model ols y const y(-1) y(-2) y(-3) or arma 3 0 ; y or arima 3 0 0 ; y arma and arima functions will be explained in more detail later Behavior of Yt depends on the value of ρ

Time Series Analysis First Order Autoregressive Model - AR(1) Example 1: ρ=0 Observe that series is mean-reverting fast - Independent

Time Series Analysis First Order Autoregressive Model - AR(1) Example 2: ρ=0.9 – Observe stochastic cycles: Slow Mean Reversion - Dependent

Time Series Analysis First Order Autoregressive Model - AR(1) Properties Case 1: |ρ|<1 – Series is stationary Mean is Constant Variance is Constant Covariance is a function of i. As i increases, since |ρ|<1, covariance (therefore correlation )will be decreasing

gretl output (right click series and select Correlogram) Time Series Analysis First Order Autoregressive Model - AR(1) Properties Case 1: |ρ|<1 – Series is stationary If ρ is positive, autocorrelation will decrease monotically. (why?). Therefore, if we assume that a series can be modeled through an AR(1) model, with a positive ρ, the autocorrelation function should look like here gretl output (right click series and select Correlogram)

gretl output (right click series and select Correlogram) Time Series Analysis First Order Autoregressive Model - AR(1) Properties Case 1: |ρ|<1 – Series is stationary If ρ is negative, autocorrelation will decrease non-monotically (why?). Therefore, if we assume that a series can be modeled through an AR(1) model, with a negative ρ, the autocorrelation function should look like here gretl output (right click series and select Correlogram)

Econometric Analysis Time Series Analysis First Order Autoregressive Model - AR(1) Case 2: ρ=1 – Series is not stationary!

series name=y-y(-1) or series name=diff(y) Time Series Analysis First Order Autoregressive Model - AR(1) Case 1: ρ=1 – Series is not stationary! In this case we say that our series has (at least) one unit root. We also say that our series contains stochastic trend If this is the case we can transform our non-stationary series into stationary by taking the first differences, that is creating a new series as: gretl Command for Creating this new series: series name=y-y(-1) or series name=diff(y) As noted before, prices of assets are non-stationary. If we take first differences of prices, we generate a new series which will be stationary. BUT, we prefer taking first differences at the log prices since the generated stationary series will represent the returns of the asset.

Time Series Analysis First Order Autoregressive Model - AR(1) Case 1: ρ=1 – Series is not stationary! It is possible that our series is non-stationary because it evolves naturally with time, that is it contains deterministic trend. If this is the case, we will model our series including in the explanatory factors the time trend. We need to test the Null Hypothesis of a Unit Root in our series in order to decide for the appropriate method of de-trending our series (Check the following slides)

Time Series Analysis Autoregressive Model of order p - AR(p) We regress Yt on itself (auto regressive), p lags back (p order) Case 1: Σ ρ i < 1 – Series is stationary Case 2: Σ ρ i = 1 – Series has a unit root Analysis of correlation function remains the same

Econometric Analysis Time Series Analysis Testing for a Unit Root = Testing for stationarity in the Mean Popular tests Augmented Dickey - Fuller Test Phillips - Perron Test If we reject the null hypothesis of a unit root then our series is stationary (|ρ|<1) and we can move on modeling If we do not reject the null hypothesis of a unit root, then our series is non-stationary. We take first differences and test the new series for stationarity. We keep taking first differences to the generated series until we reject the null.

Econometric Analysis Time Series Analysis How to perform a Unit Root Test for series yt(example refers to Y1t from dataset2.xlsx) Select series Y1 (click on it) Go Variable -> Unit Root Tests and select the preferred statistic e.g. Augmented Dickey-Fuller Consider the other choices as discussed in class Press OK

Econometric Analysis Time Series Analysis How to perform a Unit Root Test for series yt(example refers to Y1t from dataset2.xlsx) Examine the results of the hypothesis testing Since the Probability is over 0.05 and the Null Hypothesis is Y has a unit root, then we do not reject that our series is non-stationary gretl output

Time Series Analysis Testing for a Unit Root = Testing for stationarity in the Mean If we reject the Null Hypothesis, we say that our series is integrated of order 0 and write yt – I(0) If we do not reject the Null Hypothesis, we take the first differences dyt and test the new series for a unit root. If the new series dyt is stationary then we say that our series is integrated of order 1, that is we need to differentiate once to transform our non-stationary series to stationary and write yt – I(1) (also dyt – I(0))

Time Series Analysis Moving Average model of order q are used to model time dependence in our series using past values of the error term First Order Moving Average Model - MA(1) – is, as before, the simplest case We regress Yt on the error term one lag back (first order) Behavior of Yt depends on the value of θ

Time Series Analysis First Order Moving Average Model - MA(1) Properties Case 1: |ρ|<1 – Series is stationary Mean is Constant Variance is Constant Only covariance of today (t) with yesterday (t-1) is non-zero.

Time Series Analysis First Order Moving Average Model - MA(1) If we expect that a series can be modeled through an MA(1) model, the autocorrelation function should look like here gretl output

Time Series Analysis Moving Average of order q – MA(q) Analysis of correlation function remains the same How to estimate a MA(1) model in gretl arma 0 1 ; y or arima 0 0 1 ; y How to estimate a MA(3) model in gretl arma 0 3 ; y or arima 0 0 3 ; y

Time Series Analysis We can combine the discussed models into one, creating the Autoregressive Moving Average models of order p and q If we add the information of the order of integration, that is the number of times we have to take first differences in order to result to a stationary series, we define ARIMA (p,d,q) where d is the order of integration, p & q as before Example: If we write that yt –ARIMA(2,1,1) this means that we have to generate dyt=yt-yt-1 and use the following model:

Time Series Analysis How to determine the appropriate ARIMA(p,d,q) model to describe a time series Step 1: Perform Unit Root Testing to determine the order of integration (d). If d>=1 then go to step 2, else go to step 3 Step 2: Based on step 1, generate from original (non-stationary) series a new stationary series Step 3: Estimate alternative competitive models and use model selection criteria (Akaike, Hannan Quinn, Swhatch) to select the best model Step 4: Run misspecification test procedures to make sure no dependency is left out of the models

Time Series Analysis How to estimate a ARMA (p,q) model in gretl arma p q ; y or arima p 0 q ; y How to estimate a ARIMA (p,d,q) model in gretl arima p d q ; y