AR(1) y t = φy t 1 + ɛ t, ɛ t N(0, σ 2 ) 1. Mean of y t given y t 1, y t 2, E(y t y t 1, y t 2, ) = φy t 1 2. Variance of y t given y t 1, y t

Similar documents
80 X 1, X 2,, X n ( λ ) λ P(X = x) = f (x; λ) = λx e λ, x = 0, 1, 2, x! l(λ) = n f (x i ; λ) = i=1 i=1 n λ x i e λ i=1 x i! = λ n i=1 x i e nλ n i=1 x

Stata 11 Stata ts (ARMA) ARCH/GARCH whitepaper mwp 3 mwp-083 arch ARCH 11 mwp-051 arch postestimation 27 mwp-056 arima ARMA 35 mwp-003 arima postestim

卒業論文

s = 1.15 (s = 1.07), R = 0.786, R = 0.679, DW =.03 5 Y = 0.3 (0.095) (.708) X, R = 0.786, R = 0.679, s = 1.07, DW =.03, t û Y = 0.3 (3.163) + 0

% 10%, 35%( 1029 ) p (a) 1 p 95% (b) 1 Std. Err. (c) p 40% 5% (d) p 1: STATA (1). prtesti One-sample test of pr

こんにちは由美子です

Stata11 whitepapers mwp-037 regress - regress regress. regress mpg weight foreign Source SS df MS Number of obs = 74 F(

こんにちは由美子です

1 Stata SEM LightStone 3 2 SEM. 2., 2,. Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press.

第11回:線形回帰モデルのOLS推定

こんにちは由美子です

ECCS. ECCS,. ( 2. Mac Do-file Editor. Mac Do-file Editor Windows Do-file Editor Top Do-file e

1 Stata SEM LightStone 4 SEM 4.. Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press 3.

28

.. est table TwoSLS1 TwoSLS2 GMM het,b(%9.5f) se Variable TwoSLS1 TwoSLS2 GMM_het hi_empunion totchr

10

最小2乗法

y i OLS [0, 1] OLS x i = (1, x 1,i,, x k,i ) β = (β 0, β 1,, β k ) G ( x i β) 1 G i 1 π i π i P {y i = 1 x i } = G (

4 OLS 4 OLS 4.1 nurseries dual c dual i = c + βnurseries i + ε i (1) 1. OLS Workfile Quick - Estimate Equation OK Equation specification dual c nurser

こんにちは由美子です

k2 ( :35 ) ( k2) (GLM) web web 1 :

untitled

BR001

Stata 11 Stata ROC whitepaper mwp anova/oneway 3 mwp-042 kwallis Kruskal Wallis 28 mwp-045 ranksum/median / 31 mwp-047 roctab/roccomp ROC 34 mwp-050 s

2 Tobin (1958) 2 limited dependent variables: LDV 2 corner solution 2 truncated censored x top coding censor from above censor from below 2 Heck

事例研究(ミクロ経済政策・問題分析III) -規制産業と料金・価格制度-


II (2011 ) ( ) α β û i R

Isogai, T., Building a dynamic correlation network for fat-tailed financial asset returns, Applied Network Science (7):-24, 206,

TS002

Stata 11 Stata VAR VEC whitepaper mwp 4 mwp-084 var VAR 14 mwp-004 varbasic VAR 25 mwp-005 svar VAR 31 mwp-007 vec intro VEC 47 mwp-008 vec VEC 75 mwp

Stata User Group Meeting in Kyoto / ( / ) Stata User Group Meeting in Kyoto / 21

Microsoft Word - 計量研修テキスト_第5版).doc

Vol. 42 No pp Headcount ratio p p A B pp.29

CVaR

σ t σ t σt nikkei HP nikkei4csv H R nikkei4<-readcsv("h:=y=ynikkei4csv",header=t) (1) nikkei header=t nikkei4csv 4 4 nikkei nikkei4<-dataframe(n

1 Stata SEM LightStone 1 5 SEM Stata Alan C. Acock, Discovering Structural Equation Modeling Using Stata, Revised Edition, Stata Press. Introduc

,, Poisson 3 3. t t y,, y n Nµ, σ 2 y i µ + ɛ i ɛ i N0, σ 2 E[y i ] µ * i y i x i y i α + βx i + ɛ i ɛ i N0, σ 2, α, β *3 y i E[y i ] α + βx i

kubostat2017b p.1 agenda I 2017 (b) probability distribution and maximum likelihood estimation :

1 y x y = α + x β+ε (1) x y (2) x y (1) (2) (1) y (2) x y (1) (2) y x y ε x 12 x y 3 3 β x β x 1 1 β 3 1

seminar0220a.dvi

I L01( Wed) : Time-stamp: Wed 07:38 JST hig e, ( ) L01 I(2017) 1 / 19

Microsoft Word - 計量研修テキスト_第5版).doc

7 ( 7 ( Workfile Excel hatuden 1000kWh kion_average kion_max kion_min date holiday *1 obon 7.1 Workfile 1. Workfile File - New -

untitled

Microsoft Word - 計量研修テキスト_第5版).doc

kubostat7f p GLM! logistic regression as usual? N? GLM GLM doesn t work! GLM!! probabilit distribution binomial distribution : : β + β x i link functi

プリント

GLM PROC GLM y = Xβ + ε y X β ε ε σ 2 E[ε] = 0 var[ε] = σ 2 I σ 2 0 σ 2 =... 0 σ 2 σ 2 I ε σ 2 y E[y] =Xβ var[y] =σ 2 I PROC GLM

分布

DVIOUT-ar

untitled

kubostat2017c p (c) Poisson regression, a generalized linear model (GLM) : :

k3 ( :07 ) 2 (A) k = 1 (B) k = 7 y x x 1 (k2)?? x y (A) GLM (k

Microsoft Word - 計量研修テキスト_第5版).doc

一般化線形 (混合) モデル (2) - ロジスティック回帰と GLMM

1 12 *1 *2 (1991) (1992) (2002) (1991) (1992) (2002) 13 (1991) (1992) (2002) *1 (2003) *2 (1997) 1

yamadaiR(cEFA).pdf

4.9 Hausman Test Time Fixed Effects Model vs Time Random Effects Model Two-way Fixed Effects Model

151021slide.dvi

201711grade1ouyou.pdf

講義のーと : データ解析のための統計モデリング. 第2回

自由集会時系列part2web.key

kubostat2015e p.2 how to specify Poisson regression model, a GLM GLM how to specify model, a GLM GLM logistic probability distribution Poisson distrib

日本統計学会誌, 第44巻, 第2号, 251頁-270頁

H22 BioS (i) I treat1 II treat2 data d1; input group patno treat1 treat2; cards; ; run; I

DAA12

tokei01.dvi

THE INSTITUTE OF ELECTRONICS, INFORMATION AND COMMUNICATION ENGINEERS TECHNICAL REPORT OF IEICE.

n 2 n (Dynamic Programming : DP) (Genetic Algorithm : GA) 2 i


オーストラリア研究紀要 36号(P)☆/3.橋本

Microsoft Word - 計量研修テキスト_第5版).doc

(pdf) (cdf) Matlab χ ( ) F t

Microsoft Word - StatsDirectMA Web ver. 2.0.doc

広報さがみはら第1242号

²¾ÁÛ¾õ¶·É¾²ÁË¡¤Î¤¿¤á¤Î¥Ñ¥Ã¥±¡¼¥¸DCchoice ¡Ê»ÃÄêÈÇ¡Ë

kubostat2018d p.2 :? bod size x and fertilization f change seed number? : a statistical model for this example? i response variable seed number : { i

¥¤¥ó¥¿¡¼¥Í¥Ã¥È·×¬¤È¥Ç¡¼¥¿²òÀÏ Âè2²ó

9 1 (1) (2) (3) (4) (5) (1)-(5) (i) (i + 1) 4 (1) (2) (3) (4) (5) (1)-(2) (1)-(5) (5) 1


II III II 1 III ( ) [2] [3] [1] 1 1:

橡表紙参照.PDF

H22 BioS t (i) treat1 treat2 data d1; input patno treat1 treat2; cards; ; run; 1 (i) treat = 1 treat =

α β *2 α α β β α = α 1 β = 1 β 2.2 α 0 β *3 2.3 * *2 *3 *4 (µ A ) (µ P ) (µ A > µ P ) 10 (µ A = µ P + 10) 15 (µ A = µ P +

A B P (A B) = P (A)P (B) (3) A B A B P (B A) A B A B P (A B) = P (B A)P (A) (4) P (B A) = P (A B) P (A) (5) P (A B) P (B A) P (A B) A B P

時系列解析

Dependent Variable: LOG(GDP00/(E*HOUR)) Date: 02/27/06 Time: 16:39 Sample (adjusted): 1994Q1 2005Q3 Included observations: 47 after adjustments C -1.5

Studies of Foot Form for Footwear Design (Part 9) : Characteristics of the Foot Form of Young and Elder Women Based on their Sizes of Ball Joint Girth

10:30 12:00 P.G. vs vs vs 2

2 2 1?? 2 1 1, 2 1, 2 1, 2, 3,... 1, 2 1, 3? , 2 2, 3? k, l m, n k, l m, n kn > ml...? 2 m, n n m

Rによる計量分析:データ解析と可視化 - 第3回 Rの基礎とデータ操作・管理

Part 1 GARCH () ( ) /24, p.2/93

2007-Kanai-paper.dvi

* n x 11,, x 1n N(µ 1, σ 2 ) x 21,, x 2n N(µ 2, σ 2 ) H 0 µ 1 = µ 2 (= µ ) H 1 µ 1 µ 2 H 0, H 1 *2 σ 2 σ 2 0, σ 2 1 *1 *2 H 0 H

12/1 ( ) GLM, R MCMC, WinBUGS 12/2 ( ) WinBUGS WinBUGS 12/2 ( ) : 12/3 ( ) :? ( :51 ) 2/ 71

²�ËÜËܤǻþ·ÏÎó²òÀÏÊÙ¶¯²ñ - Â裱¾Ï¤ÈÂ裲¾ÏÁ°È¾

読めば必ずわかる 分散分析の基礎 第2版

LA-VAR Toda- Yamamoto(1995) VAR (Lag Augmented vector autoregressive model LA-VAR ) 2 2 Nordhaus(1975) 3 1 (D2)

研究シリーズ第40号

Transcription:

87 6.1 AR(1) y t = φy t 1 + ɛ t, ɛ t N(0, σ 2 ) 1. Mean of y t given y t 1, y t 2, E(y t y t 1, y t 2, ) = φy t 1 2. Variance of y t given y t 1, y t 2, V(y t y t 1, y t 2, ) = σ 2 3. Thus, y t y t 1, y t 2, N(0, σ 2 ). = Conditional distribution of y t given y t 1, y t 2, 4. The stationarity condition is: the solution of φ(x) = 1 φx = 0, i.e., x = 1/φ, is greater than one in absolute value, or equivalently, φ < 1.

88 5. Rewriting the AR(1) model, y t = φy t 1 + ɛ t = φ 2 y t 2 + ɛ t + φɛ t 1 = φ 3 y t 3 + ɛ t + φɛ t 1 + φ 2 ɛ t 2. = φ s y t s + ɛ t + φɛ t 1 + + φ s 1 ɛ t s+1. As s is large, φ s approaches zero. = Stationarity condition 6. For stationarity, y t = φy t 1 + ɛ t is rewritten as: y t = ɛ t + φɛ t 1 + φ 2 ɛ t 2 + 7. Mean of y t E(y t ) = E(ɛ t + φɛ t 1 + φ 2 ɛ t 2 + )

89 = E(ɛ t ) + φe(ɛ t 1 ) + φ 2 E(ɛ t 2 ) + = 0 8. Variance of y t 9. Thus, y t N ( 0, 10. Estimation of AR(1) model: (a) Log-likelihood function V(y t ) = V(ɛ t + φɛ t 1 + φ 2 ɛ t 2 + ) = V(ɛ t ) + V(φɛ t 1 ) + V(φ 2 ɛ t 2 ) + = σ 2 (1 + φ 2 + φ 4 + ) = σ2 1 φ 2 σ 2 1 ρ 2 ). = Unconditional distribution of yt log f (y T,, y 1 ) = log f (y 1 ) + log f (y t y t 1,, y 1 ) t=1

90 = 1 2 log(2π) 1 ( ) 2 log σ 2 1 1 φ 2 σ 2 /(1 φ 2 ) y2 1 T 1 2 log(2π) T 1 2 log(σ 2 ) 1 σ 2 (y t φy t 1 ) 2 = T 2 log(2π) T 2 log(σ2 ) 1 ( ) 2 log 1 1 φ 2 1 2σ 2 /(1 φ 2 ) y2 1 1 (y 2σ 2 t φy t 1 ) 2 Note as follows: ) 1 f (y 1 ) = ( 2πσ2 /(1 φ 2 ) exp 1 2σ 2 /(1 φ 2 ) y2 1 ( 1 f (y t y t 1,, y 1 ) = exp 1 ) 2πσ 2 2σ (y 2 t φy t 1 ) 2

91 log f (y T,, y 1 ) = T 1 σ 2 2 σ + 1 2 2σ 4 /(1 φ 2 ) y2 1 + 1 2σ 4 (y t φy t 1 ) 2 = 0 log f (y T,, y 1 ) φ = φ 1 φ 2 + φ σ 2 y2 1 + 1 σ 2 (y t φy t 1 )y t 1 = 0 The MLE of φ and σ 2 satisfies the above two equation.

92 6.2 2 y t = X t β + u t, u t = ρu t 1 + ɛ, ɛ t N(0, σ 2 ) Log of distribution function of u t log f (u T,, u 1 ) = log f (u 1 ) + log f (u t u t 1,, y 1 ) t=1 = 1 2 log(2π) 1 ( ) 2 log σ 2 1 1 ρ 2 σ 2 /(1 ρ 2 ) u2 1 T 1 2 log(2π) T 1 2 log(σ 2 ) 1 σ 2 (u t ρu t 1 ) 2 = T 2 log(2π) T 2 log(σ2 ) 1 ( ) 2 log 1 1 ρ 2 1 2σ 2 /(1 ρ 2 ) u2 1 1 (u 2σ 2 t ρu t 1 ) 2

93 Log of distribution function of y t log f (y T,, y 1 ) = log f (y 1 ) + log f (y t y t 1,, y 1 ) t=1 = 1 2 log(2π) 1 ( ) 2 log σ 2 1 1 ρ 2 σ 2 /(1 ρ 2 ) (y 1 X 1 β) 2 T 1 2 log(2π) T 1 2 log(σ 2 ) 1 σ 2 = T 2 log(2π) T 2 log(σ2 ) 1 ( ) 2 log 1 1 ρ 2 ( (yt X t β) ρ(y t 1 X t 1 β) ) 2 1 2σ 2 (y t Xt β) 2, where 1 ρ2 y y t, for t = 1, t = y t ρy t 1, for t = 2, 3,, T, 1 ρ2 X Xt t, for t = 1, = X t ρx t 1, for t = 2, 3,, T,

94 log f (y T,, y 1 ) is maximized with respect to β, ρ and σ 2. OLS, AR(1), AR(1)+X StataSE Data Data Editor Excel 123,456 123456 var1, var2, var3,... command Y= + X+ Z reg Y X Z results Y, X, Z

95 gen t=_n tsset t t reg Y X Z dwstat scatter Y X X Y line Y X time time X Y Stata (2007 3 ) \2,940 (1995) t x y 1 10 6 2 12 9 3 14 10 4 16 10

96. gen t=_n. tsset t. reg y x Source SS df MS Number of obs = 4 -------------+------------------------------ F( 1, 2) = 7.35 Model 8.45 1 8.45 Prob > F = 0.1134 Residual 2.3 2 1.15 R-squared = 0.7860 -------------+------------------------------ Adj R-squared = 0.6791 Total 10.75 3 3.58333333 Root MSE = 1.0724 ------------------------------------------------------------------------------ y Coef. Std. Err. t P> t [95% Conf. Interval] -------------+---------------------------------------------------------------- x.65.2397916 2.71 0.113 -.3817399 1.68174 _cons.3 3.163068 0.09 0.933-13.30958 13.90958 ------------------------------------------------------------------------------. arima y, ar(1) nocons (setting optimization to BHHH) Iteration 0: log likelihood = -10.213007

97 Iteration 1: log likelihood = -9.8219683 Iteration 2: log likelihood = -9.7761938 Iteration 3: log likelihood = -9.6562972 Iteration 4: log likelihood = -9.5973095 (switching optimization to BFGS) Iteration 5: log likelihood = -9.5850964 Iteration 6: log likelihood = -9.5799049 Iteration 7: log likelihood = -9.5770119 Iteration 8: log likelihood = -9.5770099 Iteration 9: log likelihood = -9.5770099 ARIMA regression Sample: 1-4 Number of obs = 4 Wald chi2(1) = 101.94 Log likelihood = -9.57701 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ OPG y Coef. Std. Err. z P> z [95% Conf. Interval] -------------+---------------------------------------------------------------- ARMA ar L1..9759129.096657 10.10 0.000.7864686 1.165357 -------------+---------------------------------------------------------------- /sigma 1.812458.8837346 2.05 0.020.0803696 3.544545 ------------------------------------------------------------------------------ Note: The test of the variance against zero is one sided, and the two-sided confidence interval is truncated at zero.

98. arima y x,ar(1) (setting optimization to BHHH) Iteration 0: log likelihood = -4.3799561 Iteration 1: log likelihood = -4.3799068 (backed up) Iteration 2: log likelihood = -4.379678 (backed up) Iteration 3: log likelihood = -4.3796767 (backed up) Iteration 4: log likelihood = -4.3796761 (backed up) (switching optimization to BFGS) Iteration 5: log likelihood = -4.3796757 (backed up) Iteration 6: log likelihood = -4.3235592 Iteration 7: log likelihood = -4.2798453 Iteration 8: log likelihood = -4.2471467 Iteration 9: log likelihood = -4.239353 Iteration 10: log likelihood = -4.2384456 Iteration 11: log likelihood = -4.238435 Iteration 12: log likelihood = -4.238435 ARIMA regression Sample: 1-4 Number of obs = 4 Wald chi2(2) = 1001.98 Log likelihood = -4.238435 Prob > chi2 = 0.0000 ------------------------------------------------------------------------------ OPG y Coef. Std. Err. z P> z [95% Conf. Interval] -------------+----------------------------------------------------------------

y x.635658.0583723 10.89 0.000.5212505.7500656 _cons.6512199..... -------------+---------------------------------------------------------------- ARMA ar L1. -.5631492 2.177484-0.26 0.796-4.830939 3.704641 -------------+---------------------------------------------------------------- /sigma.6656358.7509811 0.89 0.188 0 2.137532 ------------------------------------------------------------------------------ Note: The test of the variance against zero is one sided, and the two-sided confidence interval is truncated at zero. 99