• 検索結果がありません。

Econometrics II

N/A
N/A
Protected

Academic year: 2021

シェア "Econometrics II"

Copied!
389
0
0

読み込み中.... (全文を見る)

全文

(1)

Econometrics II

(Wed., 8:50-10:20)

Room # 509 ( 法経大学院総合研究棟 )

The prerequisite of this class is knowledge about Econometrics I (last semester)

and Econometrics (undergraduate level).

(2)

TA Session (by Mr. Kinoshita):

From Oct. 9, 2013 Wed., 13:00 - 14:30

Room # 505 (

法経大学院総合研究棟

)

Content: Matrix Algebra

(3)

Econometrics (Undergraduate Course) Mon., 8:50-10:20 ( 基礎工 B401) Fri., 8:50-10:20 ( 基礎工 B401)

• If you have not taken Econometrics in undergraduate level, attend the above class.

• Textbook:

『計量経済学』

(

山本 拓 著,新世社

)

(4)

1 Regression Analysis ( 回帰分析 )

1.1 Setup of the Model

When (x 1 , y 1 ), (x 2 , y 2 ), · · · , (x n , y n ) are available, suppose that there is a linear rela- tionship between y and x, i.e.,

y i = β 1 + β 2 x i + u i , (1) for i = 1 , 2 , · · · , n. x i and y i denote the ith observations.

−→ Single (or simple) regression model (

単回帰モデル

)

(5)

y i is called the dependent variable (

従属変数

) or the explained variable (

被説明変

), while x i is known as the independent variable (

独立変数

) or the explanatory (or explaining) variable (

説明変数

).

β 1 = Intercept (

切片

), β 2 = Slope (

傾き

)

β 1 and β 2 are unknown parameters (

パラメータ,母数

) to be estimated.

β 1 and β 2 are called the regression coecients (

回帰係数

).

(6)

u i is the unobserved error term (

誤差項

) assumed to be a random variable with mean zero and variance σ 2 .

σ 2 is also a parameter to be estimated.

x i is assumed to be nonstochastic (

非確率的

), but y i is stochastic (

確率的

) because y i depends on the error u i .

The error terms u 1 , u 2 , · · · , u n are assumed to be mutually independently and iden- tically distributed, which is called iid.

It is assumed that u i has a distribution with mean zero, i.e., E(u i ) = 0 is assumed.

(7)

Taking the expectation on both sides of (1), the expectation of y i is represented as:

E(y i ) = E( β 1 + β 2 x i + u i ) = β 1 + β 2 x i + E(u i )

= β 1 + β 2 x i , (2)

for i = 1 , 2 , · · · , n.

Using E(y i ) we can rewrite (1) as y i = E(y i ) + u i .

(2) represents the true regression line.

(8)

Let ˆ β 1 and ˆ β 2 be estimates of β 1 and β 2 .

Replacing β 1 and β 2 by ˆ β 1 and ˆ β 2 , (1) turns out to be:

y i = β ˆ 1 + β ˆ 2 x i + e i , (3) for i = 1 , 2 , · · · , n, where e i is called the residual (

残差

).

The residual e i is taken as the experimental value (or realization) of u i .

(9)

We define ˆy i as follows:

ˆy i = β ˆ 1 + β ˆ 2 x i , (4)

for i = 1 , 2 , · · · , n, which is interpreted as the predicted value (

予測値

) of y i .

(4) indicates the estimated regression line, which is di ff erent from (2).

Moreover, using ˆy i we can rewrite (3) as y i = ˆy i + e i .

(2) and (4) are displayed in Figure 1.

(10)

Figure 1. True and Estimated Regression Lines (

回帰直線

)

y

XXXXX XX z Distributions

of the Errors

×

...

...

×

............

...

...

...

× 

 

 

 



Error u

i

Residual

e

i

(x

i

, y

i

)

×

×

×

@ @ I

ˆy

i

= β ˆ

1

+ β ˆ

2

x

i

(Estimated Regression Line)

@ @ I

E(y

i

) = β

1

+ β

2

x

i

(True Regression Line)

(11)

Consider the case of n = 6 for simplicity.

× indicates the observed data series.

The true regression line (2) is represented by the solid line, while the estimated regression line (4) is drawn with the dotted line.

Based on the observed data, β 1 and β 2 are estimated as: ˆ β 1 and ˆ β 2 .

In the next section, we consider how to obtain the estimates of β 1 and β 2 , i.e., ˆ β 1

and ˆ β 2 .

(12)

1.2 Ordinary Least Squares Estimation

Suppose that (x 1 , y 1 ), (x 2 , y 2 ), · · · , (x n , y n ) are available.

For the regression model (1), we consider estimating β 1 and β 2 .

Replacing β 1 and β 2 by their estimates ˆ β 1 and ˆ β 2 , remember that the residual e i is given by:

e i = y iˆy i = y i − β ˆ 1 − β ˆ 2 x i . The sum of squared residuals is defined as follows:

S ( ˆ β 1 , β ˆ 2 ) =

n

i = 1

e 2 i =

n

i = 1

(y i − β ˆ 1 − β ˆ 2 x i ) 2 .

(13)

It might be plausible to choose the ˆ β 1 and ˆ β 2 which minimize the sum of squared residuals, i.e., S ( ˆ β 1 , β ˆ 2 ).

This method is called the ordinary least squares estimation (

最小二乗法,

OLS).

To minimize S ( ˆ β 1 , β ˆ 2 ) with respect to ˆ β 1 and ˆ β 2 , we set the partial derivatives equal to zero:

S ( ˆ β 1 , β ˆ 2 )

∂ β ˆ 1

= − 2

n

i = 1

(y i − β ˆ 1 − β ˆ 2 x i ) = 0 ,

S ( ˆ β 1 , β ˆ 2 )

∂ β ˆ 2

= − 2

n

i = 1

x i (y i − β ˆ 1 − β ˆ 2 x i ) = 0 .

(14)

The second order condition for minimization is:

( ∂

2

S ( ˆ β

1

, β ˆ

2

)

∂ β ˆ

21

2

S ( ˆ β

1

, β ˆ

2

)

∂ β ˆ

1

∂ β ˆ

2

2

S ( ˆ β

1

, β ˆ

2

)

∂ β ˆ

2

∂ β ˆ

1

2

S ( ˆ β

1

, β ˆ

2

)

∂ β ˆ

22

)

=

( 2n 2 ∑ n

i=1 x i 2 ∑ n

i = 1 x i 2 ∑ n

i = 1 x 2 i )

should be a positive definite matrix.

The diagonal elements 2n and 2n

i = 1 x 2 i are positive.

The determinant:

2n 2 ∑ n

i = 1 x i 2 ∑ n

i = 1 x i 2 ∑ n

i = 1 x 2 i

= 4n

n

i=1

x 2 i − 4(

n

i=1

x i ) 2 = 4n

n

i=1

(x ix) 2

is positive. = ⇒ The second-order condition is satisfied.

(15)

The first two equations yield the following two equations:

y = β ˆ 1 + β ˆ 2 x , (5)

n

i = 1

x i y i = nx ˆ β 1 + β ˆ 2

n

i = 1

x 2 i , (6)

where y = 1 n

n

i = 1

y i and x = 1 n

n

i = 1

x i .

Multiplying (5) by nx and subtracting (6), we can derive ˆ β 2 as follows:

β ˆ 2 =

n

i = 1 x i y inxy

n

i = 1 x 2 inx 2 =

n

i = 1 (x ix)(y iy)

n

i = 1 (x ix) 2 . (7)

(16)

From (5), ˆ β 1 is directly obtained as follows:

β ˆ 1 = y − β ˆ 2 x . (8)

When the observed values are taken for y i and x i for i = 1 , 2 , · · · , n, we say that ˆ β 1

and ˆ β 2 are called the ordinary least squares estimates (or simply the least squares estimates,

最小二乗推定値

) of β 1 and β 2 .

When y i for i = 1 , 2 , · · · , n are regarded as the random sample, we say that ˆ β 1 and ˆ β 2

are called the ordinary least squares estimators (or the least squares estimators,

最小二乗推定量

) of β 1 and β 2 .

(17)

1.3 Properties of Least Squares Estimator

Equation (7) is rewritten as:

β ˆ 2 =

n

i = 1 (x ix)(y iy)

n

i = 1 (x ix) 2 =

n

i = 1 (x ix)y i

n

i = 1 (x ix) 2yn

i = 1 (x ix)

n

i = 1 (x ix) 2

=

n

i = 1

x ix

n

i = 1 (x ix) 2 y i =

n

i = 1

ω i y i . (9)

In the third equality,

n

i = 1

(x ix) = 0 is utilized because of x = 1 n

n

i = 1

x i . In the fourth equality, ω i is defined as: ω i = x ix

n

i = 1 (x ix) 2 .

ω i is nonstochastic because x i is assumed to be nonstochastic.

(18)

ω i has the following properties:

n

i=1

ω i =

n

i=1

x ix

n

i = 1 (x ix) 2 =

n

i = 1 (x ix)

n

i = 1 (x ix) 2 = 0 , (10)

n

i = 1

ω i x i =

n

i = 1

ω i (x ix) =

n

i = 1 (x ix) 2

n

i = 1 (x ix) 2 = 1 , (11)

n

i = 1

ω 2 i =

n

i = 1

( x ix

n

i=1 (x ix) 2 ) 2

=

n

i=1 (x ix) 2 (∑ n

i = 1 (x ix) 2 ) 2 = 1

n

i=1 (x ix) 2 . (12)

The first equality of (11) comes from (10).

(19)

From now on, we focus only on ˆ β 2 , because usually β 2 is more important than β 1 in the regression model (1).

In order to obtain the properties of the least squares estimator ˆ β 2 , we rewrite (9) as:

β ˆ 2 =

n

i=1

ω i y i =

n

i=1

ω i ( β 1 + β 2 x i + u i )

= β 1

n

i=1

ω i + β 2

n

i=1

ω i x i +

n

i=1

ω i u i = β 2 +

n

i=1

ω i u i . (13)

In the fourth equality of (13), (10) and (11) are utilized.

(20)

Mean and Variance of ˆ β 2 : u 1 , u 2 , · · · , u n are assumed to be mutually indepen- dently and identically distributed with mean zero and variance σ 2 , but they are not necessarily normal.

Remember that we do not need normality assumption to obtain mean and variance but the normality assumption is required to test a hypothesis.

From (13), the expectation of ˆ β 2 is derived as follows:

E( ˆ β 2 ) = E( β 2 +

n

i = 1

ω i u i ) = β 2 + E(

n

i = 1

ω i u i )

= β 2 +

n

i = 1

ω i E(u i ) = β 2 . (14)

(21)

It is shown from (14) that the ordinary least squares estimator ˆ β 2 is an unbiased estimator of β 2 .

From (13), the variance of ˆ β 2 is computed as:

V( ˆ β 2 ) = V( β 2 +

n

i = 1

ω i u i ) = V(

n

i = 1

ω i u i ) =

n

i = 1

V( ω i u i ) =

n

i = 1

ω 2 i V(u i )

= σ 2

n

i = 1

ω 2 i = ∑ n σ 2

i = 1 (x ix) 2 . (15)

The third equality holds because u 1 , u 2 , · · · , u n are mutually independent.

The last equality comes from (12).

Thus, E( ˆ β 2 ) and V( ˆ β 2 ) are given by (14) and (15).

(22)

Gauss-Markov Theorem (

ガウス・マルコフ定理

): It has been discussed above that ˆ β 2 is represented as (9), which implies that ˆ β 2 is a linear estimator, i.e., linear in y i .

In addition, (14) indicates that ˆ β 2 is an unbiased estimator.

Therefore, summarizing these two facts, it is shown that ˆ β 2 is a linear unbiased

estimator (

線形不偏推定量

).

(23)

Furthermore, here we show that ˆ β 2 has minimum variance within a class of the linear unbiased estimators.

Consider the alternative linear unbiased estimator ˜ β 2 as follows:

β ˜ 2 =

n

i = 1

c i y i =

n

i = 1

( ω i + d i )y i ,

where c i = ω i + d i is defined and d i is nonstochastic.

(24)

Then, ˜ β 2 is transformed into:

β ˜ 2 =

n

i = 1

c i y i =

n

i = 1

( ω i + d i )( β 1 + β 2 x i + u i )

= β 1

n

i = 1

ω i + β 2

n

i = 1

ω i x i +

n

i = 1

ω i u i + β 1

n

i = 1

d i + β 2

n

i = 1

d i x i +

n

i = 1

d i u i

= β 2 + β 1

n

i = 1

d i + β 2

n

i = 1

d i x i +

n

i = 1

ω i u i +

n

i = 1

d i u i .

Equations (10) and (11) are used in the forth equality.

(25)

Taking the expectation on both sides of the above equation, we obtain:

E( ˜ β 2 ) = β 2 + β 1

n

i = 1

d i + β 2

n

i = 1

d i x i +

n

i = 1

ω i E(u i ) +

n

i = 1

d i E(u i )

= β 2 + β 1

n

i = 1

d i + β 2

n

i = 1

d i x i .

Note that d i is not a random variable and that E(u i ) = 0.

Since ˜ β 2 is assumed to be unbiased, we need the following conditions:

n

i=1

d i = 0 ,

n

i=1

d i x i = 0 .

(26)

When these conditions hold, we can rewrite ˜ β 2 as:

β ˜ 2 = β 2 +

n

i = 1

( ω i + d i )u i . The variance of ˜ β 2 is derived as:

V( ˜ β 2 ) = V ( β 2 +

n

i = 1

( ω i + d i )u i

) = V ( ∑ n

i = 1

( ω i + d i )u i

) =

n

i = 1

V (

( ω i + d i )u i

)

=

n

i = 1

( ω i + d i ) 2 V(u i ) = σ 2 (

n

i = 1

ω 2 i + 2

n

i = 1

ω i d i +

n

i = 1

d i 2 )

= σ 2 (

n

i = 1

ω 2 i +

n

i = 1

d i 2 ) .

(27)

From unbiasedness of ˜ β 2 , using ∑ n

i=1 d i = 0 and ∑ n

i=1 d i x i = 0, we obtain:

n

i = 1

ω i d i =

n

i = 1 (x ix)d i

n

i = 1 (x ix) 2 =

n

i = 1 x i d ixn

i = 1 d i

n

i = 1 (x ix) 2 = 0 ,

which is utilized to obtain the variance of ˜ β 2 in the third line of the above equation.

From (15), the variance of ˆ β 2 is given by: V( ˆ β 2 ) = σ 2n i = 1 ω 2 i . Therefore, we have:

V( ˜ β 2 ) ≥ V( ˆ β 2 ) , because of ∑ n

i=1 d 2 i ≥ 0.

(28)

When ∑ n

i=1 d 2 i = 0, i.e., when d 1 = d 2 = · · · = d n = 0, we have the equality: V( ˜ β 2 )

= V( ˆ β 2 ).

Thus, in the case of d 1 = d 2 = · · · = d n = 0, ˆ β 2 is equivalent to ˜ β 2 .

As shown above, the least squares estimator ˆ β 2 gives us the minimum variance

linear unbiased estimator (

最小分散線形不偏推定量

), or equivalently the best

linear unbiased estimator (

最良線形不偏推定量,

BLUE), which is called the

Gauss-Markov theorem (

ガウス・マルコフ定理

).

(29)

Asymptotic Properties (

漸近的性質

) of ˆ β 2 : We assume that as n goes to infinity we have the following:

1 n

n

i = 1

(x ix) 2 −→ m < ∞,

where m is a constant value. From (12), we obtain:

n

n

i = 1

ω 2 i = 1

(1 / n)n

i = 1 (x ix) −→ 1

m .

Note that f (x n ) −→ f (m) when x n −→ m, called Slutsky’s theorem (スルツキー

定理

), where m is a constant value and f ( · ) is a function.

(30)

We show both consistency (

一致性

) of ˆ β 2 and asymptotic normality (

漸近正規

) of

n( ˆ β 2 − β 2 ).

First, we prove that ˆ β 2 is a consistent estimator of β 2 .

[Review] Chebyshev’s inequality (

チェビシェフの不等式

) is given by:

P( | X − µ| > ) ≤ σ 2

2 , where µ = E(X) and σ 2 = V(X).

[End of Review]

Replace X, E(X) and V(X) by:

β ˆ 2 , E( ˆ β 2 ) = β 2 , and V( ˆ β 2 ) = σ 2

n

i=1

ω 2 i = σ 2

n

i = 1 (x ix) .

(31)

Then, when n −→ ∞ , we obtain the following result:

P( | β ˆ 2 − β 2 | > ) ≤ σ 2n i=1 ω 2 i

2 = σ 2 nn i=1 ω 2 i

n 2 −→ 0 , where ∑ n

i = 1 ω 2 i −→ 0 because nn

i = 1 ω 2 i −→ 1

m from the assumption.

Thus, we obtain the result that ˆ β 2 −→ β 2 as n −→ ∞ .

Therefore, we can conclude that ˆ β 2 is a consistent estimator (

一致推定量

) of β 2 .

(32)

Next, we want to show that √

n( ˆ β 2 − β 2 ) is asymptotically normal.

[Review] The Central Limit Theorem (

中心極限定理

, CLT) is: for random variables X 1 , X 2 , · · · , X n ,

XE(X)

V(X)

=

n

i = 1 X i − E( ∑ n i = 1 X i )

√ V( ∑ n

i=1 X i ) −→ N(0 , 1) , as n −→ ∞, where X = 1

n

n

i = 1

X i .

X 1 , X 2 , · · · , X n are not necesarily iid, if V(X) is finite as n goes to infinity.

[End of Review]

(33)

Note that ˆ β 2 = β 2 + ∑ n

i=1 ω i u i as in (13), and X i is replaced by ω i u i . From the central limit theorem, asymptotic normality is shown as follows:

n

i = 1 ω i u i − E( ∑ n

i = 1 ω i u i )

√ V( ∑ n

i=1 ω i u i ) =

n

i = 1 ω i u i

σ √∑ n

i = 1 ω 2 i = β ˆ 2 − β 2

σ/ √∑ n

i=1 (x ix) 2 −→ N(0 , 1) , where

• E( ∑ n

i=1 ω i u i ) = 0,

• V( ∑ n

i = 1 ω i u i ) = σ 2n

i = 1 ω 2 i , and

• ∑ n

i=1 ω i u i = β ˆ 2 − β 2

are substituted in the first and second equalities.

(34)

Moreover, we can rewrite as follows:

β ˆ 2 − β 2

σ/ √∑ n

i = 1 (x ix) 2 =

n( ˆ β 2 − β 2 ) σ/ √

(1 / n)n

i = 1 (x ix) 2 −→

n( ˆ β 2 − β 2 ) σ/ √

m −→ N(0 , 1) . Or equivalently,

n( ˆ β 2 − β 2 ) −→ N(0 , σ 2 m ) . Thus, the asymptotic normality of √

n( ˆ β 2 − β 2 ) is shown.

(35)

Finally, replacing σ 2 by its consistent estimator s 2 , it is known as follows:

β ˆ 2 − β 2

s / √∑ n

i = 1 (x ix) 2 −→ N(0 , 1) , (16)

where s 2 is defined as:

s 2 = 1 n − 2

n

i = 1

e 2 i = 1 n − 2

n

i = 1

(y i − β ˆ 1 − β ˆ 2 x i ) 2 , (17) which is a consistent and unbiased estimator of σ 2 . −→ Proved later.

Thus, using (16), in large sample we can construct the confidence interval and test

the hypothesis.

(36)

Exact Distribution of ˆ β 2 : We have shown asymptotic normality of √

n( ˆ β 2 − β 2 ), which is one of the large sample properties.

Now, we discuss the small sample properties of ˆ β 2 .

In order to obtain the distribution of ˆ β 2 in small sample, the distribution of the error term has to be assumed.

Therefore, the extra assumption is that u iN(0 , σ 2 ).

Writing (13), again, ˆ β 2 is represented as:

β ˆ 2 = β 2 +

n

i = 1

ω i u i .

First, we obtain the distribution of the second term in the above equation.

(37)

[Review] Note that the moment-generating function (

積率母関数

, MGF) is given by M( θ ) ≡ E(exp( θ X)) = exp( µθ + 1 2 σ 2 θ 2 ) when XN( µ, σ 2 ).

X 1 , X 2 , · · · , X n are mutually independently distributed as X iN( µ i , σ 2 i ) for i = 1 , 2 , · · · , n.

MGF of X i is M i ( θ ) ≡ E(exp( θ X i )) = exp( µ i θ + 1 2 σ 2 i θ 2 ).

Consider the distribution of Y = ∑ n

i = 1 (a i + b i X i ), where a i and b i are constant.

M y ( θ ) ≡ E(exp( θ Y)) = E(exp( θ ∑ n

i=1 (a i + b i X i )))

= ∏ n

i = 1 exp( θ a i )E(exp( θ b i X i )) = ∏ n

i = 1 exp( θ a i )M i ( θ b i )

= ∏ n

i=1 exp( θ a i ) exp( µ i θ b i + 1 2 σ 2 i ( θ b i ) 2 ) = exp( θ ∑ n

i=1 (a i + b i µ i ) + 1 2 θ 2n

i=1 b 2 i σ 2 i ),

(38)

which implies that YN(n

i=1 (a i + b i µ i ) , ∑ n

i=1 b 2 i σ 2 i ).

[End of Review]

Substitute a i = 0, µ i = 0, b i = ω i and σ 2 i = σ 2 . Then, using the moment-generating function, ∑ n

i = 1 ω i u i is distributed as:

n

i = 1

ω i u iN(0 , σ 2

n

i = 1

ω 2 i ) . Therefore, ˆ β 2 is distributed as:

β ˆ 2 = β 2 +

n

i = 1

ω i u iN( β 2 , σ 2

n

i = 1

ω 2 i ) ,

(39)

or equivalently,

β ˆ 2 − β 2

σ √∑ n

i = 1 ω 2 i = β ˆ 2 − β 2

σ/ √∑ n

i = 1 (x ix) 2N(0 , 1) , for any n.

Moreover, replacing σ 2 by its estimator s 2 defined in (17), it is known that we have:

β ˆ 2 − β 2

s / √∑ n

i = 1 (x ix) 2t(n − 2) ,

where t(n2) denotes t distribution with n − 2 degrees of freedom.

(40)

Thus, under normality assumption on the error term u i , the t(n − 2) distribution is used for the confidence interval and the testing hypothesis in small sample.

Or, taking the square on both sides,

( β ˆ 2 − β 2

s / √∑ n

i = 1 (x ix) 2 ) 2

F(1 , n − 2) ,

which will be proved later.

(41)

Before going to multiple regression model (

重回帰モデル

),

2 Some Formulas of Matrix Algebra

1. Let A =

 







a 11 a 12 · · · a 1k a 21 a 22 · · · a 2k

... ... ... ...

a l1 a l2 · · · a lk

 





 = [a i j ],

which is a l × k matrix, where a i j denotes ith row and jth column of A.

(42)

The transposed matrix (

転置行列

) of A, denoted by A 0 , is defined as:

A 0 =

 







a 11 a 21 · · · a l1 a 12 a 22 · · · a l2

... ... ... ...

a 1k a 2k · · · a lk

 





 = [a ji ],

where the ith row of A 0 is the ith column of A.

2. (Ax) 0 = x 0 A 0 ,

where A and x are a l × k matrix and a k × 1 vector, respectively.

(43)

3. a 0 = a,

where a denotes a scalar.

4. ∂ a 0 x

x = a,

where a and x are k × 1 vectors.

5. ∂ x 0 Ax

x = (A + A 0 )x,

where A and x are a k × k matrix and a k × 1 vector, respectively.

(44)

Especially, when A is symmetric,

x 0 Ax

x = 2Ax.

6. Let A and B be k × k matrices, and I k be a k × k identity matrix (

単位行列

) (one in the diagonal elements and zero in the other elements).

When AB = I k , B is called the inverse matrix (

逆行列

) of A, denoted by B = A 1 .

That is, AA 1 = A 1 A = I k .

(45)

7. Let A be a k × k matrix and x be a k × 1 vector.

If A is a positive definite matrix (

正値定符号行列

), for any x except for x = 0 we have:

x 0 Ax > 0 .

If A is a positive semidefinite matrix (

非負値定符号行列

), for any x except for x = 0 we have:

x 0 Ax ≥ 0 .

(46)

If A is a negative definite matrix (

負値定符号行列

), for any x except for x = 0 we have:

x 0 Ax < 0 .

If A is a negative semidefinite matrix (

非正値定符号行列

), for any x except for x = 0 we have:

x 0 Ax ≤ 0 .

(47)

Trace, Rank and etc.: A : k × k, B : n × k, C : k × n.

1. The trace (

トレース

) of A is: tr(A) =

k

i = 1

a ii , where A = [a i j ] .

2. The rank (

ランク,階数

) of A is the maximum number of linearly indepen- dent column (or row) vectors of A, which is denoted by rank(A).

3. If A is an idempotent matrix (

べき等行列

), A = A 2 .

(48)

4. If A is an idempotent and symmetric matrix, A = A 2 = A 0 A .

5. A is idempotent if and only if the eigen values of A consist of 1 and 0.

6. If A is idempotent, rank(A) = tr(A) .

7. tr(BC) = tr(CB)

(49)

Distributions in Matrix Form:

1. Let X, µ and Σ be k × 1, k × 1 and k × k matrices.

When XN( µ, Σ ), the density function of X is given by:

f (x) = 1

(2 π ) k / 2 |Σ| exp (

− 1

2 (x − µ ) 0 Σ −1 (x − µ ) )

.

E(X) = µ and V(X) = E (

(X − µ )(X − µ ) 0 )

= Σ The moment-generating function: φ ( θ ) = E (

exp( θ 0 X) )

= exp( θ 0 µ + 1 2 θ 0 Σθ )

(50)

2. If XN( µ, Σ ), then (X − µ ) 0 Σ −1 (X − µ ) ∼ χ 2 (k).

Note that X 0 X ∼ χ 2 (k) when XN(0 , I k ).

3. X: n × 1, Y: m × 1, XN( µ x , Σ x ), YN( µ y , Σ y ) X is independent of Y, i.e., E (

(X − µ x )(Y − µ y ) 0 )

= 0 in the case of normal random variables.

(X − µ x ) 0 Σ x 1 (X − µ x ) / n

(Y − µ y ) 0 Σ y 1 (Y − µ y ) / mF(n , m)

(51)

4. If XN(0 , σ 2 I n ) and A is a symmetric idempotent n × n matrix of rank G, then X 0 AX2 ∼ χ 2 (G).

Note that X 0 AX = (AX) 0 (AX) and rank(A) = tr(A) because A is idempotent.

5. If XN(0 , σ 2 I n ), A and B are symmetric idempotent n × n matrices of rank G and K, and AB = 0, then

X 0 AX G σ 2

/ X 0 BX

K σ 2 = X 0 AX / G

X 0 BX / KF(G , K) .

(52)

3 Multiple Regression Model ( 重回帰モデル )

Up to now, only one independent variable, i.e., x i , is taken into the regression model.

In this section, we extend it to more independent variables, which is called the

multiple regression model (

重回帰モデル

).

(53)

We consider the following regression model:

y i = β 1 x i , 1 + β 2 x i , 2 + · · · + β k x i , k + u i

= (x i,1 , x i,2 , · · · , x i,k )

 







β 1

β 2

...

β k

 





 + u i

= x i β + u i , for i = 1 , 2 , · · · , n,

where x i and β denote a 1 × k vector of the independent variables and a k × 1 vector

(54)

of the unknown parameters to be estimated, which are represented as:

x i = (x i , 1 , x i , 2 , · · · , x i , k ) , β =

 







β 1

β 2

...

β k

 





 .

x i, j denotes the ith observation of the jth independent variable.

The case of k = 2 and x i , 1 = 1 for all i is exactly equivalent to (1).

Therefore, the matrix form above is a generalization of (1).

(55)

Writing all the equations for i = 1 , 2 , · · · , n, we have:

y 1 = β 1 x 1 , 1 + β 2 x 1 , 2 + · · · + β k x 1 , k + u 1 = x 1 β + u 1 , y 2 = β 1 x 2 , 1 + β 2 x 2 , 2 + · · · + β k x 2 , k + u 2 = x 2 β + u 2 ,

...

y n = β 1 x n , 1 + β 2 x n , 2 + · · · + β k x n , k + u n = x n β + u n ,

(56)

which is rewritten as:

 







y 1 y 2 ...

y n

 





 =

 







x 1,1 x 1,2 · · · x 1,k x 2 , 1 x 2 , 2 · · · x 2 , k ... ... ... ...

x n , 1 x n , 2 · · · x n , k

 







 







β 1

β 2

...

β k

 





 +

 







u 1 u 2 ...

u n

 







=

 







x 1 x 2 ...

x n

 





 β +

 







u 1 u 2 ...

u n

 





 .

(57)

Again, the above equation is compactly rewritten as:

y = X β + u , (18)

where y, X and u are denoted by:

y =

 







y 1 y 2 ...

y n

 





 , X =

 







x 1,1 x 1,2 · · · x 1,k x 2 , 1 x 2 , 2 · · · x 2 , k ... ... ... ...

x n , 1 x n , 2 · · · x n , k

 





 =

 







x 1 x 2 ...

x n

 





 , u =

 







u 1 u 2 ...

u n

 





 .

Utilizing the matrix form (18), we derive the ordinary least squares estimator of β ,

denoted by ˆ β .

(58)

In (18), replacing β by ˆ β , we have the following equation:

y = X ˆ β + e , where e denotes a n × 1 vector of the residuals.

The ith element of e is given by e i .

The sum of squared residuals is written as follows:

S ( ˆ β ) =

n

i=1

e 2 i = e 0 e = (yX ˆ β ) 0 (yX ˆ β ) = (y 0 − β ˆ 0 X 0 )(yX ˆ β )

= y 0 yy 0 X ˆ β − β ˆ 0 X 0 y + β ˆ 0 X 0 X ˆ β = y 0 y2y 0 X ˆ β + β ˆ 0 X 0 X ˆ β.

In the last equality, note that ˆ β 0 X 0 y = y 0 X ˆ β because both are scalars.

(59)

To minimize S ( ˆ β ) with respect to ˆ β , we set the first derivative of S ( ˆ β ) equal to zero, i.e.,

S ( ˆ β )

∂ β ˆ = − 2X 0 y + 2X 0 X ˆ β = 0 .

Solving the equation above with respect to ˆ β , the ordinary least squares estimator (OLS,

最小自乗推定量

) of β is given by:

β ˆ = (X 0 X) 1 X 0 y . (19)

Thus, the ordinary least squares estimator is derived in the matrix form.

(60)

(*) Remark

The second order condition for minimization:

2 S ( ˆ β )

∂ β∂ ˆ β ˆ 0 = 2X 0 X is a positive definite matrix.

Set c = Xd.

For any d , 0, we have c 0 c = d 0 X 0 Xd > 0.

(61)

Now, in order to obtain the properties of ˆ β such as mean, variance, distribution and so on, (19) is rewritten as follows:

β ˆ = (X 0 X) 1 X 0 y = (X 0 X) 1 X 0 (X β + u) = (X 0 X) 1 X 0 X β + (X 0 X) 1 X 0 u

= β + (X 0 X) 1 X 0 u . (20)

Taking the expectation on both sides of (20), we have the following:

E( ˆ β ) = E( β + (X 0 X) 1 X 0 u) = β + (X 0 X) 1 X 0 E(u) = β, because of E(u) = 0 by the assumption of the error term u i .

Thus, unbiasedness of ˆ β is shown.

(62)

The variance of ˆ β is obtained as:

V( ˆ β ) = E(( ˆ β − β )( ˆ β − β ) 0 ) = E (

(X 0 X) 1 X 0 u((X 0 X) 1 X 0 u) 0 )

= E((X 0 X) 1 X 0 uu 0 X(X 0 X) 1 ) = (X 0 X) 1 X 0 E(uu 0 )X(X 0 X) 1

= σ 2 (X 0 X) 1 X 0 X(X 0 X) 1 = σ 2 (X 0 X) 1 .

The first equality is the definition of variance in the case of vector.

In the fifth equality, E(uu 0 ) = σ 2 I n is used, which implies that E(u 2 i ) = σ 2 for all i and E(u i u j ) = 0 for i , j.

Remember that u 1 , u 2 , · · · , u n are assumed to be mutually independently and identi-

cally distributed with mean zero and variance σ 2 .

(63)

Under normality assumption on the error term u, it is known that the distribution of β ˆ is given by:

β ˆ ∼ N( β, σ 2 (X 0 X) 1 ) . Proof:

First, when XN( µ, Σ ), the moment-generating function, i.e., φ ( θ ), is given by:

φ ( θ ) ≡ E (

exp( θ 0 X) )

= exp (

θ 0 µ + 1

2 θ 0 Σθ )

(64)

θ u : n × 1, u: n × 1, θ β : k × 1, β ˆ : k × 1 The moment-generating function of u, i.e., φ u ( θ u ), is:

φ u ( θ u ) ≡ E (

exp( θ 0 u u) )

= exp ( σ 2 2 θ u 0 θ u

) ,

which is N(0 , σ 2 I n ).

(65)

The moment-generating function of ˆ β , i.e., φ β ( θ β ), is:

φ β ( θ β ) ≡ E (

exp( θ β 0 β ˆ ) )

= E (

exp( θ 0 β β + θ 0 β (X 0 X) 1 X 0 u) )

= exp( θ 0 β β )E (

exp( θ 0 β (X 0 X) 1 X 0 u) )

= exp( θ β 0 β ) φ u

( θ 0 β (X 0 X) 1 X 0 )

= exp( θ 0 β β ) exp ( σ 2

2 θ β 0 (X 0 X) 1 θ β

) = exp (

θ 0 β β + σ 2

2 θ 0 β (X 0 X) 1 θ β

) ,

which is equivalent to the normal distribution with mean β and variance σ 2 (X 0 X) −1 .

Note that θ u = X(X 0 X) 1 θ β . QED

(66)

Taking the jth element of ˆ β , its distribution is given by:

β ˆ jN( β j , σ 2 a j j ) , i.e.,

β ˆ j − β j

σ √

a j jN(0 , 1) , where a j j denotes the jth diagonal element of (X 0 X) −1 .

Replacing σ 2 by its estimator s 2 , we have the following t distribution:

β ˆ j − β j

sa j jt(nk) ,

where t(nk) denotes the t distribution with nk degrees of freedom.

(67)

s 2 is taken as follows:

s 2 = 1 nk

n

i = 1

e 2 i = 1

nk e 0 e = 1

nk (yX ˆ β ) 0 (yX ˆ β ) , which leads to an unbiased estimator of σ 2 .

Proof:

Substitute y = X β + u and ˆ β = β + (X 0 X) 1 X 0 u into e = yX ˆ β . e = yX ˆ β = X β + uX( β + (X 0 X) 1 X 0 u)

= uX(X 0 X) 1 X 0 u = (I nX(X 0 X) 1 X 0 )u

(68)

I nX(X 0 X) −1 X 0 is idempotent and symmetric, because we have:

(I nX(X 0 X) 1 X 0 )(I nX(X 0 X) 1 X 0 ) = I nX(X 0 X) 1 X , 0 (I nX(X 0 X) 1 X 0 ) 0 = I nX(X 0 X) 1 X 0 .

s 2 is rewritten as follows:

s 2 = 1

nk e 0 e = 1

nk ((I nX(X 0 X) −1 X 0 )u) 0 (I nX(X 0 X) −1 X 0 )u

= 1

nk u 0 (I nX(X 0 X) 1 X 0 ) 0 (I nX(X 0 X) 1 X 0 )u

= 1

nk u 0 (I nX(X 0 X) 1 X 0 )u

(69)

Take the expectation of u 0 (I nX(X 0 X) −1 X 0 )u and note that tr(a) = a for a scalar a.

E(s 2 ) = 1 nk E (

tr (

u 0 (I nX(X 0 X) −1 X 0 )u ))

= 1 nk E (

tr (

(I nX(X 0 X) −1 X 0 )uu 0 ))

= 1 nk tr (

(I nX(X 0 X) 1 X 0 )E(uu 0 ) )

= 1

nk σ 2 tr (

(I nX(X 0 X) 1 X 0 )I n

)

= 1

nk σ 2 tr(I nX(X 0 X) 1 X 0 ) = 1

nk σ 2 (tr(I n ) − tr(X(X 0 X) 1 X 0 ))

= 1

nk σ 2 (tr(I n ) − tr((X 0 X) 1 X 0 X)) = 1

nk σ 2 (tr(I n ) − tr(I k ))

= 1

nk σ 2 (nk) = σ 2

−→ s 2 is an unbiased estimator of σ 2 .

Note that we do not need normality assumption for unbiasedness of s 2 .

(70)

Trace (

トレース

):

1. A: n × n, tr(A) = ∑ n

i = 1 a ii , where a i j denotes an element in the ith row and the jth column of a matrix A.

2. a: scalar (1 × 1), tr(a) = a

3. A: n × k, B: k × n, tr(AB) = tr(BA)

4. tr(X(X 0 X) 1 X 0 ) = tr((X 0 X) 1 X 0 X) = tr(I k ) = k

5. When X is a vector of random variables, E(tr(X)) = tr(E(X))

(71)

Under normality assumption for u, the distribution of s 2 is:

(nk)s 2

σ 2 = u 0 (I nX(X 0 X) 1 X 0 )u

σ 2 ∼ χ 2 (tr(I nX(X 0 X) 1 X 0 ))

Note that tr(I nX(X 0 X) 1 X 0 ) = nk, because tr(I n ) = n

tr(X(X 0 X) 1 X 0 ) = tr((X 0 X) 1 X 0 X) = tr(I k ) = k

Figure 1. True and Estimated Regression Lines ( 回帰直線 ) y        XXXXX XXzDistributionsof the Errors× ...

参照

関連したドキュメント

Now we are going to construct the Leech lattice and one of the Niemeier lattices by using a higher power residue code of length 8 over Z 4 [ω].. We are going to use the same action

“Breuil-M´ezard conjecture and modularity lifting for potentially semistable deformations after

Using the batch Markovian arrival process, the formulas for the average number of losses in a finite time interval and the stationary loss ratio are shown.. In addition,

[Mag3] , Painlev´ e-type differential equations for the recurrence coefficients of semi- classical orthogonal polynomials, J. Zaslavsky , Asymptotic expansions of ratios of

(Recent result: Yes, but consistent quantum gravity is delicate.) Early universe cosmology: Observations of cosmic microwave background, maybe even earlier stages with

Wro ´nski’s construction replaced by phase semantic completion. ASubL3, Crakow 06/11/06

It is known that if Γ is a (torsion free) discrete group whose classifying space B Γ is a finite CW-complex, the coarse Baum–Connes conjecture for the underlying metric space of

Keywords: Artin’s conjecture, Galois representations, L -functions, Turing’s method, Riemann hypothesis.. We present a group-theoretic criterion under which one may verify the