Regression Models
- Bivariate data (y,x)
- Multivariate (y,x1,…,xk)
- Suppose the conditional mean of y is a
function of x
- Then the regression function is the optimal
forecast of y given x
( )
t t t
Regression Models Bivariate data (y,x) Multivariate (y,x 1 ,,x k ) - - PowerPoint PPT Presentation
Regression Models Bivariate data (y,x) Multivariate (y,x 1 ,,x k ) Suppose the conditional mean of y is a function of x ( ) = + | E y x x t t t Then the regression function is the optimal forecast of y given x
t t t
t t t
5 10 15 20 1940m1 1960m1 1980m1 2000m1 2020m1 time 3-Month Treasury One-Year Treasury
t t
_cons -.1826507 .0261585 -6.98 0.000 -.2340043 -.1312971 t1year .9344078 .0064224 145.49 0.000 .9217994 .9470161 t3month Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = .35034 R-squared = 0.9869 Prob > F = 0.0000 F( 1, 741) =21167.67 Linear regression Number of obs = 743 . reg t3month t1year, r
h n h n h n
+ + +
h n n h n
+ +
|
h n n h n
+ +
|
h t h t t
− −
n n h n
+ |
12
−
t t
_cons .5951917 .1089506 5.46 0.000 .3812972 .8090862
t1year t1year Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = 1.6102 R-squared = 0.7549 Prob > F = 0.0000 F( 1, 729) = 1246.67 Linear regression Number of obs = 731 . reg t1ye ar L12.t1year, r
12
−
t t t t
2 2016 2 2016
M M
t t t
h t h t t
− −
h t h t h t t h t t
− − − −
t h t t
−
n n h n
+ |
n n h n
|
+
|
+ n h n
_cons .4042153 .1126674 3.59 0.000 .1830241 .6254065
t1year t3month Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = 1.5807 R-squared = 0.7333 Prob > F = 0.0000 F( 1, 729) = 954.87 Linear regression Number of obs = 731 . reg t3mo nth L12.t1year, r
t q t q t t t t t t
− − −
2 2 1 1 t q t q t t t
− − −
2 2 1 1 t q h t q h t h t t
− + − − − − 1 1 2 1
_cons .7096671 .1129813 6.28 0.000 .487848 .9314862
t1year t1year Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = 1.6013 R-squared = 0.7592 Prob > F = 0.0000 F( 12, 707) = 126.00 Linear regression Number of obs = 720 . reg t1ye ar L(12/23).t1year, r
_cons .5500138 .1118904 4.92 0.000 .3303365 .7696911
t1year t3month Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = 1.5601 R-squared = 0.7424 Prob > F = 0.0000 F( 12, 707) = 105.20 Linear regression Number of obs = 720 . reg t3month L(12/23).t1year, r
t t t q t q t t t
− − − − 1 2 2 1 1
t t t
−1
t q t q t p t p t t
− − − −
1 1 1 1
t q h t q h t p h t p h t t
− + − − − + − − 1 1 1 1
_cons .2940965 .1004515 2.93 0.004 .0968717 .4913213
t1year
t3month t3month Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust
t q t q t p t p t t
− − − −
1 1 1 1
t q t q t p t p t t
− − − −
1 1 1 1
t3month t3month Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = .35421 R-squared = 0.9870 Prob > F = 0.0000 F( 24, 706) = 1212.87 Linear regression Number of obs = 731 . reg t3mo nth L(1/12).t3month L(1/12).t1year, r
_cons .0143662 .0260201 0.55 0.581 -.0367197 .0654522
t1year
Prob > F = 0.0006 F( 12, 706) = 2.93 (12) L12.t1year = 0 (11) L11.t1year = 0 (10) L10.t1year = 0 ( 9) L9.t1year = 0 ( 8) L8.t1year = 0 ( 7) L7.t1year = 0 ( 6) L6.t1year = 0 ( 5) L5.t1year = 0 ( 4) L4.t1year = 0 ( 3) L3.t1year = 0 ( 2) L2.t1year = 0 ( 1) L.t1year = 0 . testparm L(1/12).t1year
t1year t1year Coef. Std. Err. t P>|t| [95% Conf. Interval] Robust Root MSE = .34921 R-squared = 0.9888 Prob > F = 0.0000 F( 24, 706) = 1393.44 Linear regression Number of obs = 731 . reg t1year L(1/12).t1year L(1/12).t3month, r
_cons .0419219 .0249594 1.68 0.093 -.0070817 .0909255
t3month
– If short rates help to predict long rates
Prob > F = 0.0586 F( 12, 706) = 1.72 (12) L12.t3month = 0 (11) L11.t3month = 0 (10) L10.t3month = 0 ( 9) L9.t3month = 0 ( 8) L8.t3month = 0 ( 7) L7.t3month = 0 ( 6) L6.t3month = 0 ( 5) L5.t3month = 0 ( 4) L4.t3month = 0 ( 3) L3.t3month = 0 ( 2) L2.t3month = 0 ( 1) L.t3month = 0 . testparm L(1/12).t3month
– Number of AR lags p = {0, 1, 6, 12} – Number of regressor lags q = { 0, 1, 6, 12}
estimate each model on the common restricted sample 1954m4- 1015m2
t q t q t p t p t t
− − − −
1 1 1 1
Note: N=Obs used in calculating BIC; see [R] BIC note model1212 731 -1853.957 -265.8519 25 581.7038 696.5641 model612 731 -1853.957 -282.3796 19 602.7592 690.0531 model112 731 -1853.957 -284.0617 14 596.1235 660.4453 model012 731 -1853.957 -481.0128 13 988.0256 1047.753 model126 731 -1853.957 -278.9141 19 595.8283 683.1221 model66 731 -1853.957 -315.5888 13 657.1776 716.905 model16 731 -1853.957 -318.2187 8 652.4373 689.1926 model06 731 -1853.957 -499.4415 7 1012.883 1045.044 model121 731 -1853.957 -305.9741 14 639.9482 704.27 model61 731 -1853.957 -340.6457 8 697.2915 734.0468 model11 731 -1853.957 -404.9925 3 815.9851 829.7683 model01 731 -1853.957 -549.0229 2 1102.046 1111.235 model120 731 -1853.957 -313.6541 13 653.3083 713.0357 model60 731 -1853.957 -349.299 7 712.5981 744.759 model10 731 -1853.957 -411.6311 2 827.2622 836.451 model00 731 -1853.957 -1853.957 1 3709.913 3714.508 Model Obs ll(null) ll(model) df AIC BIC
q=0 q=1 q=6 q=12 p=0 3709 1102 1012 988 p=1 827 815 652 596 p=6 712 697 657 602 p=12 653 639 595 581*
t q t q t p t p t t
− − − −
1 1 1 1
tmodel1212 731 -1898.419 -255.4629 25 560.9258 675.7861 tmodel612 731 -1898.419 -274.783 19 587.5661 674.8599 tmodel112 731 -1898.419 -281.4531 14 590.9061 655.2279 tmodel012 731 -1898.419 -281.4531 13 588.9061 648.6335 tmodel126 731 -1898.419 -271.1781 19 580.3561 667.65 tmodel66 731 -1898.419 -309.8674 13 645.7348 705.4622 tmodel16 731 -1898.419 -319.113 8 654.226 690.9813 tmodel06 731 -1898.419 -319.1276 7 652.2552 684.416 tmodel121 731 -1898.419 -319.2653 14 666.5307 730.8525 tmodel61 731 -1898.419 -354.9884 8 725.9769 762.7322 tmodel11 731 -1898.419 -398.3793 3 802.7587 816.5419 tmodel01 731 -1898.419 -398.6613 2 801.3226 810.5115 tmodel120 731 -1898.419 -563.3703 13 1152.741 1212.468 tmodel60 731 -1898.419 -590.4293 7 1194.859 1227.019 tmodel10 731 -1898.419 -621.9189 2 1247.838 1257.027 tmodel00 731 -1898.419 -1898.419 1 3798.839 3803.433 Model Obs ll(null) ll(model) df AIC BIC
q=0 q=1 q=6 q=12 p=0 3798 1247 1194 1152 p=1 801 802 725 666 p=6 652 654 645 580 p=12 588 590 587 560*