Diebold Li (2006) AR process

2 次查看(过去 30 天)
Michael
Michael 2014-6-28
评论: Michael 2014-6-29
Hi there,
I have a question about the paper by Diebold and Li (2006). They estimated a time-series of three factors subsequently they want to forecast these parameters to forecast the yield curve. I have exactly the same estimated factors, however, when I want to forecast the factors I get different results. They say they model the factor B[t+h] = c + y*B[t] by a simple regression. However, when you perform this regression on simply the previous B, you will only get an estimate of for y and the constant c is always zero right?
Here is the paper
Kind regards,
Michael

回答(1 个)

the cyclist
the cyclist 2014-6-28
Why would c be zero? Wouldn't the autoregression of B be something like
B = [1 1 2 3 5 8 13 21 34]';
regressCoeffs = regress(B(2:end)',[ones(8,1) B(1:end-1)']);
c = regressCoeffs(1);
y = regressCoeffs(2);
where I have obviously just put in some nonsense data.
  3 个评论
the cyclist
the cyclist 2014-6-29
You need to estimate not just the relationship of the last observation to the next-to-last, but rather all observations (except the first one) to the one just prior. So, you are doing the estimate of the coefficients c and y that best fit
B(2) = c + y*B(1)
B(3) = c + y*B(2)
B(4) = c + y*B(3)
etc.
Or maybe I misunderstand.
Michael
Michael 2014-6-29
I had tried that aswell, but that also gave me not the right outputs. I also found a mistake in my code which caused some deviance and now I have fixed that I almost have the correct output. I need to multiply the coefficients with the last datapoints and multiply that by estimated factor loadings to get estimates of my independent variable. Then I compare the deviance from the true values of the independent values and I get slightly different results. But I think I can live with that. Thank you for your input.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Numerical Integration and Differentiation 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by