Presentation is loading. Please wait.

Presentation is loading. Please wait.

Computational Finance II: Time Series Guest Lecture II K.Ensor.

Similar presentations


Presentation on theme: "Computational Finance II: Time Series Guest Lecture II K.Ensor."— Presentation transcript:

1 Computational Finance II: Time Series Guest Lecture II K.Ensor

2 Review ACF PACF Autocorrelation when estimating the mean. First difference removes linear nonstationarities Sth differences removes seasonal nonstationarities

3 Identifying periodic patterns Spectral decomposition of a realization of length n. Any finite sequence of numbers can be represented as the sum of many (n/2) sin and cos functions of different periodicities and different amplitudes. Examination of the amplitudes (or amplitudes squared) provides an understanding of the dominant periodicities that exist in the data.

4 Smoothed Periodogram for Johnson and Johnson Series

5 Regression with Autocorrelated Errors Residual Standard Error = 0.1351, Multiple R-Square = 0.9832 N = 84, F-statistic = 2369.586 on 2 and 81 df, p-value = 0 coef std.err t.stat p.value Int 1.0924 0.0149 73.3676 0 jjt 1.0187 0.0148 68.7034 0 cjj 0.1138 0.0201 5.6550 0

6 Residuals from Linear plus periodic regression

7 How to proceed? The residuals from the regression fit exhibit dependence over the time lags. Identify the time series model. Refit Regression + time series model using MLE.

8 Regression with Autocorrelated Errors How can we study the relationship between 2 or more time series. Consider the regression model for studying the term structure of interest rates such as r(1tr(2t)+e(t) with time series Let’s look at the relationship between two U.S. weekly interest rate series measured in percentages r(1t) = The 1-year Treasury constant maturity rate r(2t) = The 3-year Treasury constant maturity rate From 1/5/1962 to 9/10/1999.

9

10 Scatterplots between series simultaneous in time, and the change in each series. The two series are highly correlated.

11 Try this model? r3(tr2(t) + e(t) Splus summary results of least squares fit Residual Standard Error = 0.538, Multiple R-Square = 0.9575 N = 1967, F-statistic = 44313.8 on 1 and 1965 df, p-value = 0 coef std.err t.stat p.value Inter 0.9107 0.0323 28.2380 0 X 0.9239 0.0044 210.5084 0

12 Behavior of Residuals The residuals are nonstionary. Thus there does not appear to be a long-term equlibrium between the two interest rates.

13 From a regression perspective the assumptions of our regression model are violated. Let’s consider the change series of interest rates c1(t)=(1-B)r1(t) c3(t)=(1-B)r2(t) Now regress c1 on c3.

14

15

16 Regression results Residual Standard Error = 0.0682, Multiple R-Square = 0.8479 N = 1966, F-statistic = 10947.08 on 1 and 1964 df, p- value = 0 coef std.err t.stat p.value Intercept 0.0002 0.0015 0.1609 0.8722 X 0.7811 0.0075 104.6283 0.0000 rse R2 n 0.06819 0.8479 1966 coef std.err t.stat p.value Intercept 0.00020.0015 0.1609 0.8721554 X 0.78110.0075 104.630.0

17 Looking at the Residuals There is a small bit of autocorrelation – violating our regression assumptions.

18 The correct model c3(t)=c1(t) + e(t) with e(t) = a(t) +a(t-1) Parameter estimates: 2) 0.0002 0.7824 -0.2115 0.0045 Standard errors: ( 0.0018, 0.0077, 0.0221) R-squared = 85.4%

19 Regression + MA diagnostics

20 Summary – Regression with autocorrelated errors Fit regression model Check residuals for the presence of autocorrelation. If autocorrelation is present, identify the nature of the autocorrelation and simultaneously fit (via MLE) the regression parameters and the time series parameters (in Splus use arima.mle)


Download ppt "Computational Finance II: Time Series Guest Lecture II K.Ensor."

Similar presentations


Ads by Google