Appendix C: Some SCA Commands

The following SCA commands are used in the analysis of Example 8.6:

input x1,x2. file ‘m-gs1n3-5301.txt’  % Load data

 --

r1=ln(x1)  % Take log transformation

 --

r2=ln(x2)

 --

miden r1,r2. no ccm. arfits 1 to 8.

 -- % Denote the model by v21.

mtsm v21. series r1,r2. model (i-p1*b-p2*b**2)series= @

c+(i-t1*b)noise.

 --

mestim v21.   % Initial estimation

 --

p1(2,1)=0     % Set zero constraints

 --

cp1(2,1)=1

 --

p2(2,1)=0

 --

cp2(2,1)=1

 --

p2(2,2)=0

 --

cp2(2,2)=1

 --

t1(2,1)=0

 --

ct1(2,1)=1

 -- % Refine estimation and store residuals

 mestim v21. method exact. hold resi(res1,res2)

 --

miden res1,res2.

Exercises

8.1 Consider the monthly log stock returns, in percentages and including dividends, of Merck & Company, Johnson & Johnson, General Electric, General Motors, Ford Motor Company, and value-weighted index from January 1960 to December 2008; see the file m-mrk2vw.txt.

a. Compute the sample mean, covariance matrix, and correlation matrix of the data.

b. Test the hypothesis Inline, where Inline is the lag-i cross-correlation matrix of the data. Draw conclusions based on the 5% significance level.

c. Is there any lead–lag relationship among the six return series?

8.2 The Federal Reserve Bank of St. Louis publishes selected interest rates and U.S. financial data on its website: http://research.stlouisfed.org/fred2/.

Consider the monthly 1-year and 10-year Treasury constant maturity rates from April 1953 to October 2009 for 679 observations; see the file m-gs1n10.txt. The rates are in percentages.

a. Let ct = rtrt−1 be the change series of the monthly interest rate rt. Build a bivariate autoregressive model for the two change series. Discuss the implications of the model. Transform the model into a structural form.

b. Build a bivariate moving-average model for the two change series. Discuss the implications of the model and compare it with the bivariate AR model built earlier.

8.3 Again consider the monthly 1-year and 10-year Treasury constant maturity rates from April 1953 to October 2009. Consider the log series of the data and build a VARMA model for the series. Discuss the implications of the model obtained.

8.4 Again consider the monthly 1-year and 10-year Treasury constant maturity rates from April 1953 to October 2009. Are the two interest rate series threshold cointegrated? Use the interest spread st = r10, tr1, t as the threshold variable, where rit is the i-year Treasury constant maturity rate. If they are threshold cointegrated, build a multivariate threshold model for the two series.

8.5 The bivariate AR(4) model Inline is a special seasonal model with periodicity 4, where Inline is a sequence of independent and identically distributed normal random vectors with mean zero and covariance matrix Inline. Such a seasonal model may be useful in studying quarterly earnings of a company. (a) Assume that Inline is weakly stationary. Derive the mean vector and covariance matrix of Inline. (b) Derive the necessary and sufficient condition of weak stationarity for Inline. (c) Show that Inline for ℓ > 0, where Inline is the lag-ℓ autocovariance matrix of Inline.

8.6 The bivariate MA(4) model Inline is another seasonal model with periodicity 4, where Inline is a sequence of independent and identically distributed normal random vectors with mean zero and covariance matrix Inline. Derive the covariance matrices Inline of Inline for ℓ = 0, … , 5.

8.7 Consider the monthly U.S. 1-year and 3-year Treasury constant maturity rates from April 1953 to March 2004. The data can be obtained from the Federal Reserve Bank of St. Louis or from the file m-gs1n3-5304.txt (1-year, 3-year, dates). See also Example 8.6, which uses a shorter data span. Here we use the interest rates directly without the log transformation and define Inline = (x1t, x2t), where x1t is the 1-year maturity rate and x2t is the 3-year maturity rate.

a. Identify a VAR model for the bivariate interest rate series. Write down the fitted model.

b. Compute the impulse response functions of the fitted VAR model. It suffices to use the first 6 lags.

c. Use the fitted VAR model to produce 1-step- to 12-step-ahead forecasts of the interest rates, assuming that the forecast origin is March 2004.

d. Are the two interest rate series cointegrated, when a restricted constant term is used? Use 5% significance level to perform the test.

e. If the series are cointegrated, build an ECM for the series. Write down the fitted model.

f. Use the fitted ECM to produce 1-step- to 12-step-ahead forecasts of the interest rates, assuming that the forecast origin is March 2004.

g. Compare the forecasts produced by the VAR model and the ECM.

References

Balke, N. S. and Fomby, T. B. (1997). Threshold cointegration. International Economic Review 38: 627–645.

Box, G. E. P. and Tiao, G. C. (1977). A canonical analysis of multiple time series. Biometrika 64: 355–366.

Brenner, R. J. and Kroner, K. F. (1995). Arbitrage, cointegration, and testing the unbiasedness hypothesis in financial markets. Journal of Financial and Quantitative Analysis 30: 23–42.

Cochrane, J. H. (1988). How big is the random walk in the GNP? Journal of Political Economy 96: 893–920.

Dwyer, G. P. Jr., Locke, P., and Yu, W. (1996). Index arbitrage and nonlinear dynamics between the S&P 500 futures and cash. Review of Financial Studies 9: 301–332.

Engle, R. F. and Granger, C. W. J. (1987). Cointegration and error correction representation, estimation and testing. Econometrica 55: 251–276.

Forbes, C. S., Kalb, G. R. J., and Kofman, P. (1999). Bayesian arbitrage threshold analysis. Journal of Business & Economic Statistics 17: 364–372.

Fuller, W. A. (1976). Introduction to Statistical Time Series. Wiley, New York.

Graybill, F. A. (1969). Introduction to Matrices with Applications in Statistics. Wadsworth, Belmont, CA.

Hannan, E. J. and Quinn, B. G. (1979). The determination of the order of an autoregression. Journal of the Royal Statistical Society Series B 41: 190–195.

Hillmer, S. C. and Tiao, G. C. (1979). Likelihood function of stationary multiple autoregressive moving average models. Journal of the American Statistical Association 74: 652–660.

Hosking, J. R. M. (1980). The multivariate portmanteau statistic. Journal of the American Statistical Association 75: 602–608.

Hosking, J. R. M. (1981). Lagrange-multiplier tests of multivariate time series models. Journal of the Royal Statistical Society Series B 43: 219–230.

Johansen, S. (1988). Statistical analysis of cointegration vectors. Journal of Economic Dynamics and Control 12: 231–254.

Johansen, S. (1995). Likelihood Based Inference in Cointegrated Vector Error Correction Models. Oxford University Press, Oxford, UK.

Johnson, R. A. and Wichern, D. W. (1998). Applied Multivariate Statistical Analysis,4th ed. Prentice Hall, Upper Saddle River, NJ.

Li, W. K. and McLeod, A. I. (1981). Distribution of the residual autocorrelations in multivariate ARMA time series models. Journal of the Royal Statistical Society Series B 43: 231–239.

Lütkepohl, H. (2005). New Introduction to Multiple Time Series Analysis. Springer, Berlin.

Pole, A. (2007). Statistical Arbitrage. Wiley, Hoboken, NJ.

Reinsel, G. C. (1993). Elements of Multivariate Time Series Analysis. Springer, New York.

Reinsel, G. C. and Ahn, S. K. (1992). Vector autoregressive models with unit roots and reduced rank structure: Estimation, likelihood ratio test, and forecasting. Journal of Time Series Analysis, 13: 353–375.

Stock, J. H. and Watson, M. W. (1988). Testing for common trends. Journal of the American Statistical Association 83: 1097–1107.

Strang, G. (1980). Linear Algebra and Its Applications,2nd ed. Harcourt Brace Jovanovich, Chicago.

Tiao, G. C. and Box, G. E. P. (1981). Modeling multiple time series with applications. Journal of the American Statistical Association 76: 802–816.

Tiao, G. C. and Tsay, R. S. (1989). Model specification in multivariate time series (with discussions). Journal of the Royal Statistical Society Series B 51: 157–213.

Tiao, G. C., Tsay, R. S., and Wang, T. (1993). Usefulness of linear transformations in multivariate time series analysis. Empirical Economics 18: 567–593.

Tsay, R. S. (1991). Two canonical forms for vector ARMA processes. Statistica Sinica 1: 247–269.

Tsay, R. S. (1998). Testing and modeling multivariate threshold models. Journal of the American Statistical Association 93: 1188–1202.

Tsay, R. S. and Tiao, G. C. (1990). Asymptotic properties of multivariate nonstationary processes with applications to autoregressions. Annals of Statistics 18: 220–250.

Vidyamurthy, G. (2004). Pairs Trading. Wiley, Hoboken, NJ.

Zivot, E. and Wang, J. (2003). Modeling Financial Time Series with S-Plus. Springer, New York.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset