University of New South Wales Semester 1, Economics 4201 and Homework #2 Due on Tuesday 3/29 (20% penalty per day late)

Similar documents
Booth School of Business, University of Chicago Business 41202, Spring Quarter 2014, Mr. Ruey S. Tsay. Solutions to Midterm

Economics 413: Economic Forecast and Analysis Department of Economics, Finance and Legal Studies University of Alabama

Chapter 5 Univariate time-series analysis. () Chapter 5 Univariate time-series analysis 1 / 29

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

Financial Econometrics Notes. Kevin Sheppard University of Oxford

Web Appendix. Are the effects of monetary policy shocks big or small? Olivier Coibion

Chapter 4 Level of Volatility in the Indian Stock Market

This homework assignment uses the material on pages ( A moving average ).

A1. Relating Level and Slope to Expected Inflation and Output Dynamics

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2010, Mr. Ruey S. Tsay Solutions to Final Exam

Washington University Fall Economics 487

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2017, Mr. Ruey S. Tsay. Solutions to Final Exam

GARCH Models. Instructor: G. William Schwert

Assessing Model Stability Using Recursive Estimation and Recursive Residuals

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

STAT758. Final Project. Time series analysis of daily exchange rate between the British Pound and the. US dollar (GBP/USD)

Determinants of Stock Prices in Ghana

Introduction Dickey-Fuller Test Option Pricing Bootstrapping. Simulation Methods. Chapter 13 of Chris Brook s Book.

The University of Chicago, Booth School of Business Business 41202, Spring Quarter 2009, Mr. Ruey S. Tsay. Solutions to Final Exam

Properties of the estimated five-factor model

Week 7 Quantitative Analysis of Financial Markets Simulation Methods

Empirical Study on Short-Term Prediction of Shanghai Composite Index Based on ARMA Model

Forecasting the Philippine Stock Exchange Index using Time Series Analysis Box-Jenkins

THE UNIVERSITY OF CHICAGO Graduate School of Business Business 41202, Spring Quarter 2003, Mr. Ruey S. Tsay

Introductory Econometrics for Finance

Internet Appendix for Asymmetry in Stock Comovements: An Entropy Approach

Risk Management. Risk: the quantifiable likelihood of loss or less-than-expected returns.

Quantitative Introduction ro Risk and Uncertainty in Business Module 5: Hypothesis Testing Examples

THE PENNSYLVANIA STATE UNIVERSITY SCHREYER HONORS COLLEGE DEPARTMENT OF ECONOMICS

ARIMA ANALYSIS WITH INTERVENTIONS / OUTLIERS

Financial Econometrics: Problem Set # 3 Solutions

The Constant Expected Return Model

Lecture 5a: ARCH Models

Financial Econometrics Review Session Notes 4

Empirical Analysis of the US Swap Curve Gough, O., Juneja, J.A., Nowman, K.B. and Van Dellen, S.

Gloria Gonzalez-Rivera Forecasting For Economics and Business Solutions Manual

Model Construction & Forecast Based Portfolio Allocation:

Amath 546/Econ 589 Univariate GARCH Models

Washington University Fall Economics 487. Project Proposal due Monday 10/22 Final Project due Monday 12/3

Panel Regression of Out-of-the-Money S&P 500 Index Put Options Prices

STRESS TEST MODELLING OF PD RISK PARAMETER UNDER ADVANCED IRB

Homework Assignments for BusAdm 713: Business Forecasting Methods. Assignment 1: Introduction to forecasting, Review of regression

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

LAMPIRAN. Null Hypothesis: LO has a unit root Exogenous: Constant Lag Length: 1 (Automatic based on SIC, MAXLAG=13)

Forecasting Financial Markets. Time Series Analysis

Market Risk Analysis Volume I

Modeling Volatility of Price of Some Selected Agricultural Products in Ethiopia: ARIMA-GARCH Applications

Graduate School of Business, University of Chicago Business 41202, Spring Quarter 2007, Mr. Ruey S. Tsay. Midterm

Computer Lab Session 2 ARIMA, ARCH and GARCH Models

Graduate School of Business, University of Chicago Business 41202, Spring Quarter 2007, Mr. Ruey S. Tsay. Solutions to Final Exam

Non-linearities in Simple Regression

Assicurazioni Generali: An Option Pricing Case with NAGARCH

Booth School of Business, University of Chicago Business 41202, Spring Quarter 2013, Mr. Ruey S. Tsay. Midterm

INFORMATION EFFICIENCY HYPOTHESIS THE FINANCIAL VOLATILITY IN THE CZECH REPUBLIC CASE

Market Integration, Price Discovery, and Volatility in Agricultural Commodity Futures P.Ramasundaram* and Sendhil R**

List of tables List of boxes List of screenshots Preface to the third edition Acknowledgements

Financial Econometrics

Asymmetric Price Transmission: A Copula Approach

Lecture 9: Markov and Regime

CHAPTER III METHODOLOGY

Variance clustering. Two motivations, volatility clustering, and implied volatility

ESTIMATING MONEY DEMAND FUNCTION OF BANGLADESH

Appendix A. Mathematical Appendix

The Two-Sample Independent Sample t Test

Chapter 5 Univariate time-series analysis. () Chapter 5 Univariate time-series analysis 1 / 59

Conditional Heteroscedasticity

A SEARCH FOR A STABLE LONG RUN MONEY DEMAND FUNCTION FOR THE US

Money, Interest Rates and Output Revisited. Joseph H. Haslag. and. Xue Li 1

SFSU FIN822 Project 1

Lecture 8: Markov and Regime

Statistical Inference and Methods

MEASURING PORTFOLIO RISKS USING CONDITIONAL COPULA-AR-GARCH MODEL

The Economic Consequences of Dollar Appreciation for US Manufacturing Investment: A Time-Series Analysis

I. Return Calculations (20 pts, 4 points each)

A Predictive Model for Monthly Currency in Circulation in Ghana

CAES Workshop: Risk Management and Commodity Market Analysis

Internet Appendix for: Cyclical Dispersion in Expected Defaults

Forecasting Exchange Rate between Thai Baht and the US Dollar Using Time Series Analysis

CFA Level II - LOS Changes

CFA Level II - LOS Changes

Financial Data Analysis, WS08/09. Roman Liesenfeld, University of Kiel 1

Advanced Topic 7: Exchange Rate Determination IV

Financial Time Series Analysis (FTSA)

Univariate Time Series Analysis of Forecasting Asset Prices

The relationship between output and unemployment in France and United Kingdom

COINTEGRATION AND MARKET EFFICIENCY: AN APPLICATION TO THE CANADIAN TREASURY BILL MARKET. Soo-Bin Park* Carleton University, Ottawa, Canada K1S 5B6

POLYTECHNIC OF NAMIBIA SCHOOL OF MANAGEMENT SCIENCES DEPARTMENT OF ACCOUNTING, ECONOMICS AND FINANCE ECONOMETRICS. Mr.

Available online at ScienceDirect. Procedia Economics and Finance 32 ( 2015 ) Andreea Ro oiu a, *

Research on the Forecast and Development of China s Public Fiscal Revenue Based on ARIMA Model

Determinants of Merchandise Export Performance in Sri Lanka

Research Article The Volatility of the Index of Shanghai Stock Market Research Based on ARCH and Its Extended Forms

Final Exam Suggested Solutions

Does Commodity Price Index predict Canadian Inflation?

MITOCW watch?v=cdlbeqz1pqk

Introduction to Population Modeling

Forecasting Stock Index Futures Price Volatility: Linear vs. Nonlinear Models

CFA Level 2 - LOS Changes

The Great Moderation Flattens Fat Tails: Disappearing Leptokurtosis

Econometric Models for the Analysis of Financial Portfolios

Strategies for High Frequency FX Trading

Transcription:

University of New South Wales Semester 1, 2011 School of Economics James Morley 1. Autoregressive Processes (15 points) Economics 4201 and 6203 Homework #2 Due on Tuesday 3/29 (20 penalty per day late) In this exercise, you will simulate data for different Gaussian AR processes in GAUSS. In GAUSS, there are different ways to simulate data from an AR process (including the recserar function), but I would recommend using a basic do loop in order to make what you are doing as transparent as possible. Here is the general equation for Gaussian AR(p) processes: y t = c + " 1 y t#1 + " 2 y t#2 +!+ " p y t# p + $ t, where " t ~ iidn(0,# " 2 ). For simplicity, set c = 0 and " # 2 =1. These are the processes that I want you to consider: 1. AR(1) with " 1 = 0.5 2. AR(1) with " 1 = 0.95 4. AR(2) with " 1 =1.35 and " 2 = #0.7 i. Before simulating data, I want you to determine the true autocorrelation function (ACF) and partial autocorrelation function (PACF) for each of the three cases. Recall that an autocorrelation is " j = # j # 0, where " j = cov(y t, y t# j ) and an ACF is a plot of " j against j. Do this for j =1,...,12. For the PACF, the calculation for a partial autocorrelation can be found on the p. 138 of the class reader, which is from Section 4.8, p. 111 of Hamilton (1994). As discussed there, the partial autocorrelation " m is the population coefficient on the mth lag in a linear projection of the time series on m lags and can be calculated for each m as follows: # $ " 1 " 2! " m *1 & # ) 0 ) 1 " ) m*1 & #) 1 & ( ( ( ( ) = 1 ) 0 " ) m*2 ( ) 2 ( (!! #! (! ( ( ( ( ' $ ) m*1 ) m*2 " ) 0 ' $ ) m ' 1

That is, " m = " m (m ). Note that this calculation is not as hard as it looks for this assignment because " m = 0 for m > p. Also, note that " p = # p, making the calculations that you have to do for AR(1) and AR(2) processes quite trivial. Finally, note that for each lag m, you need to set up the matrix calculation above and find " m = " m (m ). E.g., for, say, an AR(2), you need to do it for m=1 and then again for m=2. The PACF, then, is a plot of " m against m. Again, plot from 1 to 12 lags. You should have six panels (an ACF and PACF for each of the three processes). Also, show your workings for the AR(2) case. ii. iii. Now, for each process, simulate a series of sample size = 100 and sample size = 500. Plot these series in six panels. Discuss the visual differences in the persistence of the series. Report the code that you used to simulate 500 observations from the third process. For the simulated series of sample size = 100, calculate the sample ACF and sample PACF and report these in six panels (consider up to 12 lags). Note that the sample PACF is straightforward to calculate, with " ˆ m being the estimate of the last coefficient in an OLS regression of the series on a constant and m lags (see p. 62 or p. 138 of the reading package for more discussion). Discuss how well the sample analogues match up with the corresponding true ACFs and PACFs that you calculated in part i. Repeat for sample size = 500. 2. Monte Carlo Analysis (20 points) In this exercise, you will conduct some very basic Monte Carlo analysis to see the properties of the least squares estimator for an AR(1) coefficient and the spurious regression phenomenon. A Monte Carlo experiment involves simulating repeated samples of data from a known Data Generating Process (DGP) and determining characteristics of, say, estimators or test statistics for the given DGP. Note that the characteristics may be highly dependent on the particular parameter assumptions for the DGP, thus one should be careful about extrapolating what the behaviour would be for other parameter assumptions or other DGPs. On the other hand, doing so is the basis of so-called bootstrap analysis that we will consider later in the course. For the Monte Carlo experiments, you need to determine the following things: Number of Monte Carlo samples (which I like to call nsim ). Let s choose nsim=1,000. There will still be some Monte Carlo error, although it will, in most experiments, be small given such a large number of simulations. Monte Carlo error means that the characteristics that you find will only be accurate to a certain number of decimal places. Of course, the cost of a larger number of simulations is computational time. This cost has diminished massively in recent 2

years. If you want, you can compare your results for 1,000 simulations to, say, only 100 or 500 simulations in order to get a sense of the Monte Carlo error. DGP: You need to code up how to simulate data for a given DGP with given parameters. You ve already done this in the previous exercise. The difference now is that you will loop around this simulation to generate 1,000 samples instead of just one. You need to code up how to construct an estimate or test statistic given a particular sample. Again, you ve done this in the previous homework. The only difference is that you are going to do this within the loop for each simulation. That is, you will repeat the calculation for each simulated sample and store the result. The code for the calculation of the estimate or test statistic is the same as if you had real data. Meanwhile, the code for storing the results is straightforward. Outside of the loop for each simulation, set up storage space. For example, suppose you want to store a parameter estimate b. You can define a storage space called b_mat={}; outside of the loop. Then, inside the loop, every time you calculate b, you can add it to the storage space as follows: b_mat=b_mat b;. Then, after you ve gone through all 1,000 simulations, you will have 1,000 draws of b from its distribution stored in b_mat. Thus, it should be straightforward to determine features of this distribution (e.g., use the average draw (i.e., meanc(b_mat); ) to determine the mean of the distribution or the standard deviation of draws (i.e., stdc(b_mat); ). This will allow you to see if the estimator is unbiased. i. For the first two DGPs in question 1 (i.e., the two AR(1) processes, with coefficients 0.5 and 0.95, respectively), determine the distribution of the OLS estimator for the autoregressive coefficient when the sample size is 100 and then when it is 500. That is, you will have four cases to consider: two AR(1) DGPs and two sample sizes. Report the Monte Carlo estimates of mean and standard deviation for the OLS estimator for each of the four cases. What do you notice about the behaviour of the estimator in each case? Compare across cases. Also, report the code you used for the Monte Carlo experiment for the last case. ii. Again consider the first two DGPs and sample sizes of 100 and 500. However, now in each case, we are going to consider two independent AR processes with the same coefficients. That is, for each simulation, draw two samples, one of which will be treated as a realization for series 1 and the other of which will be treated as a realization for series 2. Then, run a regression of series 1 on a constant and series 2. Construct a t-statistic for the hypothesis that the coefficient on series 2 is zero. To do this, you will need to calculate the OLS standard error. Store the t-statistic for each simulation. After running 1,000 simulations, sort the stored t-statistics. What are the 2.5 th and 97.5 th percentiles of the draws of the t-statistics for the Monte Carlo experiment? Repeat this for the two DGPs and the two sample sizes (i.e., four cases). How do the results compare to the traditional assumption that a t-statistic has a Student-t distribution? I.e., what would happen if you used a Student-t 3

distribution to test the hypothesis that the two series are related? Would you reject more or less than 5 of the time using a 5 critical value for a twotailed test? Compare across sample sizes. Again, report the code for the Monte Carlo experiment for the last case. 3. Estimation in EViews (15 points) Download the latest vintage of postwar quarterly U.S. real GDP from FRED. Also, download postwar quarterly real change in private inventories from FRED (it is also under GDP and components). Import the data into EViews. i. Based on the notion that the long-run growth rate of U.S. real GDP is relatively stable, take natural logarithms of the raw data and multiply by 100 so that movements in the transformed series, denoted y t, have the interpretation of percentage point movements. Run an ADF unit root test, including a constant and trend in the test regression. Consider both SIC and AIC lag selection. What are the test statistics vs. 5 critical values? Do you reject the unit root null? Why did you include a constant and a time trend? Repeat the test for the first differences of 100 times ln(real GDP), which we will denote as "y t. This time only include a constant in the regression. Again, consider both SIC and AIC lag selection. What are the test statistics vs. 5 critical values? Do you reject the unit root null? Why did you include and constant, but no trend in the test regression? When reporting results, include plots of y t and "y t. ii. In terms of change in inventories, divide real change in inventories by real GDP (level, not logs) and multiply by 100 to get change in inventories as a percentage of GDP. Run an ADF unit root test for the change in inventory ratio, including a constant in the test regression. Consider both SIC and AIC lag selection. What are the test statistics vs. 5 critical values? Do you reject the unit root null? Why did you include a constant? When iii. reporting results, include a plot of "H # t =100 $ "H t, where "H t denotes the real change in private inventories and Y t denotes real GDP. Still in EViews, estimate the following four models for "y t : an AR(1) model, an AR(2) model, an ARMA(2,1) model, and an ADL(1,1) model with a constant, lagged "y t, and lagged "H # t on the right-hand-side (no contemporaneous change in inventories for the forecasting model). For example, to estimate the ARMA(2,1) model, you can select Estimate Equation from the Quick menu and type dlrgdp c ar(1) ar(2) ma(1) in the box, where dlrgdp is the name for "y t. Note that estimating the univariate ARMA models in this way (instead of using, say, dlrgdp(-1 to -2) for the AR terms) produces an estimate for c that is actually an estimate of the unconditional mean µ = c /(1" # 1 " # 2 ), not of the intercept. This has no impact on the other estimates in the model. On the other hand, to estimate the ADL model with inventories, you need to use dlrgdp c Y t 4

dlrgdp(-1) dhstar(-1) and not ar(1) for the lagged output growth term (they are not equivalent in a multivariate setting). Report your estimates for the four models in a concise manner. The key information to report in each case is point estimates, standard errors, log likelihood, and sample period. Note that the sample periods will not be the same in every case. How would you rank the forecasting models? Do inventories appear to be helpful for forecasting? 5