Professional Documents
Culture Documents
Chapter4 Statistical Hypothesis Testing
Chapter4 Statistical Hypothesis Testing
Chapter4 Statistical Hypothesis Testing
Christophe Hurlin
Christophe Hurlin () Advanced Econometrics - Master ESA November 20, 2015 1 / 225
Section 1
Introduction
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 2 / 225
1. Introduction
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 3 / 225
1. Introduction
References
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 4 / 225
1. Introduction
Notations: In this chapter, I will (try to...) follow some conventions of
notation.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 5 / 225
Section 2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 6 / 225
2. Statistical hypothesis testing
Objectives
The objective of this section is to de…ne the following concepts:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 7 / 225
2. Statistical hypothesis testing
Introduction
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 8 / 225
2. Statistical hypothesis testing
Introduction (cont’d)
In general we distinguish two types of tests:
1 The parametric tests assume that the data have come from a type
of probability distribution and makes inferences about the parameters
of the distribution
2 The non-parametric tests refer to tests that do not assume the data
or population have any characteristic structure or parameters.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 9 / 225
2. Statistical hypothesis testing
Introduction (cont’d)
A statistical test is based on three elements:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 10 / 225
2. Statistical hypothesis testing
Introduction (cont’d)
A statistical test is based on three elements:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 11 / 225
2. Statistical hypothesis testing
De…nition (Hypothesis)
A hypothesis is a statement about a population parameter. The formal
testing procedure involves a statement of the hypothesis, usually in terms
of a “null” or maintained hypothesis and an “alternative,” conventionally
denoted H0 and H1 , respectively.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 12 / 225
2. Statistical hypothesis testing
Introduction
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 13 / 225
2. Statistical hypothesis testing
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 14 / 225
2. Statistical hypothesis testing
H0 : θ = θ 0 or H0 : θ = θ 0
H1 : θ < θ 0 H1 : θ > θ 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 15 / 225
2. Statistical hypothesis testing
H0 : θ = θ 0
H1 : θ 6 = θ 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 16 / 225
2. Statistical hypothesis testing
Introduction (cont’d)
A statistical test is based on three elements:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 17 / 225
2. Statistical hypothesis testing
W = fx : T (x ) > c g
or equivalently
W = fx1 , .., xN : T (x1 , .., xN ) > c g
where x denotes a sample fx1 , .., xN g , T (x ) the realisation of a test
statistic and c the critical value.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 18 / 225
2. Statistical hypothesis testing
Remarks
1 For which sample values the decision is made to ”fail to reject H0” as
true;
2 For which sample values the decision is made to ”reject H0”.
3 Never say "Accept H1", "fail to reject H1" etc..
2 The complement of the rejection region is the non-rejection region.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 19 / 225
2. Statistical hypothesis testing
Remark
The rejection region is de…ned as to be:
W = fx : T (x ) 7 c g
|{z}
| {z }
test statistic critical value
T (X ) = T (X1 , .., XN )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 20 / 225
2. Statistical hypothesis testing
Introduction (cont’d)
A statistical test is based on three elements:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 21 / 225
2. Statistical hypothesis testing
Decision
Fail to reject H0 Reject H0
Truth H0 Correct decision Type I error
H1 Type II error Correct decision
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 22 / 225
2. Statistical hypothesis testing
De…nition (Size)
The probability of a type I error is the (nominal) size of the test. This is
conventionally denoted α and is also called the signi…cance level.
α = Pr ( Wj H0 )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 23 / 225
2. Statistical hypothesis testing
Remark
For a simple null hypothesis:
α = Pr ( Wj H0 )
α = sup Pr ( Wj H0 )
θ 0 2H 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 24 / 225
2. Statistical hypothesis testing
De…nition (Power)
The power of a test is the probability that it will correctly lead to
rejection of a false null hypothesis:
power = Pr ( Wj H1 ) = 1 β
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 25 / 225
2. Statistical hypothesis testing
H0 : m = m 0
H1 : m = m 1
W = fx : x N < c g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 26 / 225
2. Statistical hypothesis testing
Solution
The rejection region is W= fx : x N < c g . Under the null H0 : m = m0 :
σ2
XN N m0 ,
H0 N
α = Pr ( Wj H0 )
= Pr X N < c H0
XN m0 c m
= Pr p < p 0 H0
σ/ N σ/ N
c m
= Φ p0
σ/ N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 27 / 225
2. Statistical hypothesis testing
Solution (cont’d)
The rejection region is W= fx : x N < c g . Under the alternative
H1 : m = m 1 :
σ2
XN N m1 ,
H1 N
So, the power of the test is equal to:
power = Pr ( Wj H1 )
XN m1 c m
= Pr p < p 1 H1
σ/ N σ/ N
c m
= Φ p1
σ/ N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 28 / 225
2. Statistical hypothesis testing
Solution (cont’d)
In conclusion:
c m
α=Φ p0
σ/ N
m c
β=1 p1
power = 1 Φ
σ/ N
We have a system of two equations with three parameters: α, β (or power)
and the critical value c.
1 There is a trade-o¤ between the probabilities of the errors of type I
and II, i.e. α and β : if c decreases, α decreases but β increases.
2 A solution is to impose a size α and determine the critical value and
the power.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 29 / 225
2. Statistical hypothesis testing
Solution (cont’d)
In order to illustrate the tradeo¤ between α and β given the critical value
c, take an example with σ2 = 1 and N = 100:
H0 : m = m0 = 1.2 H1 : m = m1 = 1
σ2 σ2
XN N m0 , XN N m1 ,
H0 N H1 N
We have
W = fx : x N < c g
c m
α = Pr ( Wj H0 ) = Φ p0 = Φ (10 (c 1.2))
σ/ N
c m
β = Pr W H1 = 1 Φ p1 =1 Φ (10 (c 1))
σ/ N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 30 / 225
2. Statistical hypothesis testing
4.5
Density under H0
4 Density under H1
3.5
α=Pr(W[H0)=5% β=1-Pr(W|H1)=36.12%
2.5
1.5
0.5
0
0.7 0.8 0.9 1 1.1 1.2 1.3 1.4 1.5 1.6
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 31 / 225
2. Statistical hypothesis testing
Click me!
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 32 / 225
2. Statistical hypothesis testing
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 33 / 225
2. Statistical hypothesis testing
H0 : m = 1.2 H1 : m = 1
W = fx : x N < c g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 34 / 225
2. Statistical hypothesis testing
Solution
We know that:
m c
p0
α = Pr ( Wj H0 ) = Φ
σ/ N
So, the critical value that corresponds to a signi…cance level of α is:
σ
c = m0 + p Φ 1
(α)
N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 35 / 225
2. Statistical hypothesis testing
Solution (cont’d)
σ
W= x : x N < m0 + p Φ 1
(α)
N
The power of the test is:
c m
power = Pr ( Wj H1 ) = Φ p1
σ/ N
Given the critical value, we have:
m0 m
power = Φ p 1 +Φ 1
(α)
σ/ N
NA: if m0 = 1.2, m1 = 1, N = 100, σ2 = 1 and α = 5%:
1.2 1
power = Φ p +Φ 1
(0.05) = 0.6388
1/ 100
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 36 / 225
2. Statistical hypothesis testing
H0 : m = 1.2 H1 : m = 1
W = fx : x N < 1.0355g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 37 / 225
2. Statistical hypothesis testing
Solution (cont’d)
For a nominal size α = 5%, the rejection region is:
W = fx : x N < 1.0355g
If we observe
x N = 1.13
This realisation does not belong to the rejection region:
xN 2
/W
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 38 / 225
2. Statistical hypothesis testing
power = P (θ ) 8 θ 2 H1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 39 / 225
2. Statistical hypothesis testing
H0 : m = m 0
H1 : m < m 0
σ
W= x : x N < m0 + p Φ 1
(α)
N
Questions: What is the power function of the test?
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 40 / 225
2. Statistical hypothesis testing
Solution
As in the previous case, we have:
m0 m
power = P (m ) = Φ p +Φ 1
(α) with m < m0
σ/ N
1.2 m
P (m ) = Φ 1.6449 with m < m0
1/10
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 41 / 225
2. Statistical hypothesis testing
Power function P (m )
1.2
0.8
0.6
0.4
0.2
0
0.7 0.8 0.9 1 1.1 1.2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 42 / 225
2. Statistical hypothesis testing
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 43 / 225
2. Statistical hypothesis testing
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 44 / 225
2. Statistical hypothesis testing
UMP tests
How to derive the rejection region of the UMP test of size α ?
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 45 / 225
2. Statistical hypothesis testing
LN (θ 0 ; X )
Pr < K H0 =α
LN (θ 1 ; X )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 46 / 225
2. Statistical hypothesis testing
H0 : m = m 0
H1 : m = m 1
with m1 > m0 . Question: What is the rejection region of the UMP test of
size α?
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 47 / 225
2. Statistical hypothesis testing
Solution
Since X1 , .., XN are N .i.d. m , σ2 , the likelihood of the sample
fx1 , .., xN g is de…ned as to be (cf. chapter 2):
!
1 1 N
2σ2 i∑
2
LN (θ; x ) = exp (xi m)
σN (2π )N /2 =1
Given the Neyman Pearson lemma the rejection region of the UMP test of
size α is given by:
LN (θ 0 ; x )
<K
LN (θ 1 ; x )
where K is a constant determined by the size α.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 48 / 225
2. Statistical hypothesis testing
Solution (cont’d)
1
exp 1
2σ2 ∑N
i =1 (xi m0 ) 2
σN (2π )N /2
<K
1
exp 1
2σ2 ∑N
i =1 (xi m1 ) 2
σN (2π )N /2
1
exp ∑N
i =1 (xi m1 ) 2 ∑N
i =1 (xi m0 ) 2 <K
2σ2
() ∑Ni=1 (xi m1 ) 2 ∑N
i =1 (xi m0 ) 2 < K 1
where K1 = 2σ2 ln (K ) is a constant.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 49 / 225
2. Statistical hypothesis testing
Solution (cont’d)
∑N
i =1 (xi m1 ) 2 ∑N
i =1 (xi m 0 ) 2 < K1
() 2 (m0 m1 ) ∑ N 2
i =1 xi + N m1 m02 < K1
() (m0 m1 ) ∑ N
i =1 xi < K2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 50 / 225
2. Statistical hypothesis testing
Solution (cont’d)
( m0 m1 ) ∑ N
i =1 xi < K2
W = fx : x N > Ag
where A is a constant.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 51 / 225
2. Statistical hypothesis testing
Solution (cont’d)
W = fx : x N > Ag
Determine the critical value A from the nominal size:
α = Pr ( Wj H0 )
= Pr ( x N > Aj H0 )
X N m0 A m0
= 1 Pr p < p H0
σ/ N σ/ N
A m0
= 1 Φ p
σ/ N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 52 / 225
2. Statistical hypothesis testing
Solution (cont’d)
A m
α=1 Φ p 0
σ/ N
So, we have
σ
A = m0 + p Φ 1
(1 α)
N
The rejection region of the UMP test of size α for H0 : m = m0 against
H0 : m = m1 with m1 > m0 is:
σ
W= x : x N > m0 + p Φ 1
(1 α)
N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 53 / 225
2. Statistical hypothesis testing
H0 : θ = θ 0 against H1 : θ = θ 1
with for θ 1 > θ 0 (or θ 1 < θ 0 ) if this region does not depend on the value
of θ 1 .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 54 / 225
2. Statistical hypothesis testing
H0 : m = m 0
H1 : m > m 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 55 / 225
2. Statistical hypothesis testing
Solution
Consider the test:
H0 : m = m 0
H1 : m = m 1
with m1 > m0 . The rejection region of the UMP test of size α is:
σ
W= x : x N > m0 + p Φ 1
(1 α)
N
W does not depend on m1 . It is also the rejection region of the UMP
one-sided test for
H0 : m = m 0
H1 : m > m 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 56 / 225
2. Statistical hypothesis testing
H0 : θ = θ 0 against H1 : θ 6= θ 0
the non rejection region W of the test of size α is the intersection of the
non rejection regions of the corresponding one-sided UMP tests of size
α/2
Test A: H0 : θ = θ 0 against H1 : θ > θ 0
Test B: H0 : θ = θ 0 against H1 : θ < θ 0
So, we have:
W = WA \WB
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 57 / 225
2. Statistical hypothesis testing
H0 : m = m0
H1 : m 6 = m0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 58 / 225
2. Statistical hypothesis testing
Solution
Consider the one-sided tests:
σ
WA = x : x N < m0 + p Φ 1
(α/2)
N
σ
WB = x : x N > m0 + p Φ 1
(1 α/2)
N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 59 / 225
2. Statistical hypothesis testing
Solution (cont’d)
The non-rejection regions of the UMP test of size α/2 are:
σ
WA = x : xN m0 + p Φ 1
(α/2)
N
σ
WB = x : xN m0 + p Φ 1
(1 α/2)
N
The non rejection region of the two-sided test corresponds to the
intersection of these two regions:
W = WA \WB
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 60 / 225
2. Statistical hypothesis testing
Solution (cont’d)
σ
W= p Φ 1 (1 α/2)
x : jx N m0 j
N
Finally, the rejection region of the two-sided test of size α is:
σ
W= x : jx N m0 j > p Φ 1
(1 α/2)
N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 62 / 225
2. Statistical hypothesis testing
Solution (cont’d)
σ
W= x : jx N m0 j > p Φ 1
(1 α/2)
N
1
W= x : jx N 1.2j > Φ 1
(0.975)
10
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 63 / 225
2. Statistical hypothesis testing
P (θ ) α 8 θ 2 H1
By construction, we have P (θ 0 ) = Pr ( Wj H j0 ) = α.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 64 / 225
2. Statistical hypothesis testing
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 65 / 225
2. Statistical hypothesis testing
H0 : m = m 0
H1 : m < m 0
σ
W= x : x N < m0 + p Φ 1
(α)
N
Question: show that this test is (1) unbiased and (2) consistent.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 66 / 225
2. Statistical hypothesis testing
Solution
σ
W= x : x N < m0 + p Φ 1
(α)
N
The power function of the test is de…ned as to be:
P (m ) = Pr ( Wj H1 )
σ
= Pr X N < m0 + p Φ 1
( α ) m < m0
N
m0 m
= Φ p + Φ 1 (α)
σ/ N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 67 / 225
2. Statistical hypothesis testing
Solution
m0 m
P (m ) = Φ p +Φ 1
(α) 8 m < m0
σ/ N
The test is consistent since:
lim P (m ) = 1
N !∞
P (m ) α 8 m < m0
lim P (m ) = Φ Φ 1
(α) = α
m !m 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 68 / 225
2. Statistical hypothesis testing
Solution
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 69 / 225
2. Statistical hypothesis testing
De…nition (p-value)
Suppose that for every α 2 [0, 1], one has a size α test with rejection
region Wα . Then, the p-value is de…ned to be:
p-value = inf fα : T (y ) 2 Wα g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 70 / 225
2. Statistical hypothesis testing
p-value evidence
< 0.01 Very strong evidence against H0
0.01 0.05 Strong evidence against H0
0.05 0.10 Weak evidence against H0
> 0.10 Little or no evidence against H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 71 / 225
2. Statistical hypothesis testing
Remarks
1 H0 is true;
2 H0 is false but the test has low power.
3 The p-value is not the probability that the null hypothesis is true!
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 72 / 225
2. Statistical hypothesis testing
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 73 / 225
2. Statistical hypothesis testing
Summary
Hypothesis testing is de…ned by the following general procedure
Step 1: State the relevant null and alternative hypotheses (misstating the
hypotheses muddies the rest of the procedure!);
Step 2: Consider the statistical assumptions being made about the sample
in doing the test (independence, distributions, etc.)— incorrect
assumptions mean that the test is invalid!
Step 3: Choose the appropriate test (exact or asymptotic tests) and thus
state the relevant test statistic (say, T).
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 74 / 225
2. Statistical hypothesis testing
Summary (cont’d)
Step 4: Derive the distribution of the test statistic under the null
hypothesis (sometimes it is well-known, sometimes it is more tedious!)— for
example, the Student t-distribution or the Fisher distribution.
Step 5: Determine the critical value (and thus the critical region).
Step 6: Compute (using the observations!) the observed value of the test
statistic T , say tobs .
Step 7: Decide to either fail to reject the null hypothesis or reject in favor
of the alternative assumption— the decision rule is to reject the null
hypothesis H0 if the observed value of the test statistic, tobs is in the
critical region, and to ”fail to reject” the null hypothesis otherwise
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 75 / 225
2. Statistical hypothesis testing
Key concepts
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 76 / 225
Section 3
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 77 / 225
3. Tests in the multiple linear regression model
Objectives
In the context of the multiple linear regression model (cf. chapter 3), the
objective of this section is to present :
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 78 / 225
3. Tests in the multiple linear regression model
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 79 / 225
3. Tests in the multiple linear regression model
Model
Consider the (population) multiple linear regression model:
y = Xβ + ε
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 80 / 225
3. Tests in the multiple linear regression model
Assumptions
Fact (Assumptions)
We assume that the multiple linear regression model satisfy the
assumptions A1-A5 (cf. chapter 3)
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 81 / 225
3. Tests in the multiple linear regression model
Parametric tests
The βk are unknown features of the population, but:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 82 / 225
3. Tests in the multiple linear regression model
H0 : β k = a k or H0 : β k = a k
H1 : β k < a k H1 : β k > a k
H0 : β k = a k
H1 : β k 6 = a k
H0 : Rβ = q
H1 : Rβ 6= q
where ak = 0 or ak 6= 0.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 83 / 225
3. Tests in the multiple linear regression model
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 84 / 225
Subsection 3.1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 85 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 86 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 87 / 225
3.1. The Student test
Reminder (cf. chapter 3)
b2
σ
(N K) χ2 (N K)
σ2
Moreover, βb and σb2 are independent. This result holds whether or not the
b is
matrix X is considered as random. In this last case, the distribution of β
conditional to X.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 88 / 225
3.1. The Student test
Remarks
b
βk N βk , σ2 mkk
1
where mkk is k th diagonal element of X> X .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 89 / 225
3.1. The Student test
Reminder
If X and Y are two independent random variables such that
X N (0, 1)
Y χ2 ( θ )
then the variable Z de…ned as to be
X
Z = p
Y /θ
has a Student’s t-distribution with θ degrees of freedom
Z t( θ )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 90 / 225
3.1. The Student test
H0 : β k = a k
b2
σ
(N K) χ2 (N K)
σ2 H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 91 / 225
3.1. The Student test
b
β k ak
p N (0, 1)
σ mkk H0
b2
σ
(N K) χ2 (N K)
σ2 H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 92 / 225
3.1. The Student test
1
with mkk is k th diagonal element of X> X .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 93 / 225
3.1. The Student test
Remarks
1
V b =σ
b β b 2 X> X
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 94 / 225
3.1. The Student test
H0 : β k = a k
H1 : β k < a k
W = f y : Tk ( y ) < A g
α = Pr ( Wj H0 ) = Pr Tk ( y ) < A j Tk t(N K)
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 95 / 225
3.1. The Student test
A = FN 1 K ( α ) = c α
W = f y : Tk ( y ) < c α g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 96 / 225
3.1. The Student test
W = f y : Tk ( y ) < c α g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 97 / 225
3.1. The Student test
Example (One-sided test)
Consider the CAPM model (cf. chapter 1) and the following results
(Eviews). We want to test the beta of MSFT as
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 98 / 225
3.1. The Student test
Solution
Step 1: compute the t-statistic
b
βMSFT 1 1.9898 1
TMSFT (y ) = = = 3.1501
b b
se βMSFT 0.3142
TMSFT t(20 2)
H0
W = f y : Tk ( y ) < 1.7341g
Conclusion: for a signi…cance level of 5%, we fail to reject the null
H0 : βMSFT = 1 against H1 : βMSFT < 1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 99 / 225
3.1. The Student test
Solution (cont’d)
0.5
0.4
0.35
0.3
0.25
0.2 α=5%
0.15
DF = 18
0.1
Critical value = -1.7341
0.05
0
-4 -3 -2 -1 0 1 2 3 4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 100 / 225
3.1. The Student test
H0 : β k = a k
H1 : β k > a k
W = f y : Tk ( y ) > A g
α = Pr ( Wj H0 ) = Pr Tk ( y ) > A j Tk t(N K)
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 101 / 225
3.1. The Student test
or equivalently
1 α = FN K (A)
where FN K (.) denotes the cdf of the Student’s t-distribution with N K
degrees of freedom. Denote c1 α the 1 α quantile of this distribution:
A = FN 1 K ( 1 α ) = c1 α
W = f y : Tk ( y ) > c1 αg
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 102 / 225
3.1. The Student test
W = f y : Tk ( y ) > c1 αg
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 103 / 225
3.1. The Student test
Example (One-sided test)
Consider the CAPM model (cf. chapter 1) and the following results
(Eviews). We want to test the beta of MSFT as
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 104 / 225
3.1. The Student test
Solution
Step 1: compute the t-statistic
b
βMSFT 1 1.9898 1
TMSFT (y ) = = = 3.1501
b b
se βMSFT 0.3142
TMSFT t(20 2)
H0
W = fy : Tk (y ) > 1.7341g
Conclusion: for a signi…cance level of 5%, we reject the null
H0 : βMSFT = 1 against H1 : βMSFT > 1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 105 / 225
3.1. The Student test
Solution (cont’d)
0.5
0.45
Density of Ts under H0
0.4
0.35
0.3
0.25
0.2
0.15
DF = 18 α=5%
0.1
Critical value = 1.7341
0.05
0
-4 -3 -2 -1 0 1 2 3 4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 106 / 225
3.1. The Student test
H0 : β k = a k
H1 : β k 6 = a k
W = W A \ WB
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 107 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 108 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 109 / 225
3.1. The Student test
Example (One-sided test)
Consider the CAPM model (cf. chapter 1) and the following results
(Eviews). We want to test the beta of MSFT as
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 110 / 225
3.1. The Student test
Solution
Step 1: compute the t-statistic
b
βMSFT 1 1.9898 1
TMSFT (y ) = = = 3.1501
b b
se βMSFT 0.3142
TMSFT t(20 2)
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 111 / 225
3.1. The Student test
0.5
Density of Ts under H0
0.45
0.4
0.35
0.3
0.25
0.2
0.15
α=2.5% DF = 18 α=2.5%
0.1
|Critical value| = 2.1009
0.05
0
-4 -3 -2 -1 0 1 2 3 4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 112 / 225
3.1. The Student test
Rejection regions
H0 H1 Rejection region
β k = ak β k > ak W = f y : Tk ( y ) > c1 αg
β k = ak β k < ak W = f y : Tk ( y ) < c α g
β k = ak β k 6 = ak W = fy : jTk (y )j > c1 α/2 g
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 113 / 225
3.1. The Student test
De…nition (P-values)
The p-values of Student tests are equal to:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 114 / 225
3.1. The Student test
Example (One-sided test)
Consider the previous CAPM model. We want to test:
H0 : c = 0 against H1 : c 6= 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 115 / 225
3.1. The Student test
Solution
Since we consider two-sided tests with N = 20 and K = 2:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 116 / 225
3.1. The Student test
Tk t(N K) N (0, 1)
H0
W = y : jTk (y )j > Φ 1
(1 α/2)
where Φ (.) denotes the cdf of the standard normal distribution. For
α = 5%, Φ 1 (0.975) = 1.96, so we have:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 117 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 118 / 225
3.1. The Student test
E ( εj X) = 0N 1
V ( ε j X ) = σ 2 IN
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 119 / 225
3.1. The Student test
Problem
where
1 >
Q = p lim X X = EX xi xi>
N
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 120 / 225
3.1. The Student test
De…nition (Z-statistic)
Under the null H0 : βk = ak , if the assumptions A1-A5 hold (cf. chapter
3), the z-statistic de…ned by
b
βk ak d
Zk = ! N (0, 1)
b asy b
se βk H0
p
b asy b
where se βk =σb mkk denotes the estimator of the asymptotic
standard error of the estimator b
βk and mkk is k th diagonal element of
1
X> X .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 121 / 225
3.1. The Student test
Rejection regions
The rejection regions have the same form as for the t-test (except for the
distribution)
H0 H1 Rejection region
β k = ak β k > ak W = y : Zk (y ) > Φ 1
(1 α)
β k = ak β k < ak W = y : Zk (y ) < Φ 1
(α)
β k = ak β k 6 = ak W = y : jZk (y )j > Φ 1
(1 α/2)
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 122 / 225
3.1. The Student test
De…nition (P-values)
The p-values of the Z-tests are equal to:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 123 / 225
3.1. The Student test
Summary
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 124 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 125 / 225
Subsection 3.2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 126 / 225
3.2. The Fisher test
H0 : Rβ = q
H1 : Rβ 6= q
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 127 / 225
3.2. The Fisher test
R β = q
(2 4 ) (4,1 ) (2 1 )
0 1
β1
1 1 0 0 B β C 0
B 2 C=
0 1 3 0 @ β A 4
3
β4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 128 / 225
3.2. The Fisher test
R β = q
(3 4 ) (4,1 ) (3 1 )
1 0
0 β1 0 11
0 1 0 0 B β C 0
@ 0 0 1 0 AB 2 C = @ 0 A
@ β A
0 0 0 1 3 0
β4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 129 / 225
3.1. The Student test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 130 / 225
3.2. The Fisher test
F F(p,N K)
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 131 / 225
3.2. The Fisher test
Reminder
If X and Y are two independent random variables such that
X χ2 ( θ 1 )
Y χ2 ( θ 2 )
then the variable Z de…ned by
X /θ 1
Z =
Y /θ 2
has a Fisher distribution with θ 1 and θ 2 degrees of freedom
Z F(θ 1 ,θ 2 )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 132 / 225
3.2. The Fisher test
Proof
Under assumption A6, we have the following (conditional to X)
distribution
1
b N β,σ2 X> X
β
b2
σ
(N K) χ2 (N K)
σ2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 133 / 225
3.2. The Fisher test
Proof (cont’d)
b
Consider the vector m = R β q. Under the null
H0 : Rβ = q
We have
b
E (m) = RE β q = Rβ q=0
>
V (m) = E b
Rβ q b
Rβ q
b R>
= RV β
1
= σ 2 R X> X R>
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 134 / 225
3.2. The Fisher test
Proof (cont’d)
We can base the test of H0 on the Wald criterion:
1
W = m> (V (m)) m
(1 1 ) (1 p ) p p p 1
> 1 1
= b
Rβ q 2
σ R X X >
R > b
Rβ q
W χ2 (p )
H0
b2
σ
(N K) χ2 (N K)
σ2
Proof (cont’d)
W χ2 (p )
H0
b2
σ
(N K ) χ2 (N K )
σ2
So, the ratio of these two variables has a Fisher distribution
W
p
F= F(p,N K)
b 2 (N K ) H 0
σ
σ 2 (N K )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 136 / 225
3.2. The Fisher test
Proof (cont’d)
> 1 1
b
Rβ q σ 2 R X> X R> b
Rβ q /p
F=
b2
σ
σ2
(N K ) / (N K)
After simpli…cation, the F-statistic is de…ned by:
> 1
1 b 2 >
1
> b
F= Rβ q b R X X
σ R Rβ q
p
F F(p,N K)
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 137 / 225
3.2. The Fisher test
SSR0 SSR1 N K
F=
SSR1 p
where SSR0 denotes the sum of squared residuals of the constrained model
estimated under H0 and SSR1 denotes the sum of squared residuals of the
unconstrained model estimated under H1 .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 138 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 139 / 225
3.2. The Fisher test
1 1 1
b =β
β b X> X R> R X> X R> b
Rβ q
C UC UC
b
where β UC is the unconstrained OLS estimator.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 140 / 225
3.2. The Fisher test
where rMSFT ,t is the excess return for Microsoft, rSP 500,t for the SP500,
rFord ,t for Ford and rGE ,t for general electric. We want to test the
following linear constraints:
H0 : β2 = 1 and β3 = β4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 141 / 225
3.2. The Fisher test
Solution
In this problem, the null H0 : β2 = 1 and β3 = β4 can be written as:
R β = q
(2 4 ) (4,1 ) (2 1 )
0 1
β1
0 1 0 0 B β C 1
B 2 C=
0 0 1 1 @ β A 0
3
β4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 142 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 143 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 144 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 145 / 225
3.2. The Fisher test
H0 : Rβ = q
H1 : Rβ 6= q
α = Pr ( Wj H0 ) = Pr F (y ) > Aj F F(p,N K)
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 146 / 225
3.2. The Fisher test
α = Pr ( Wj H0 ) = Pr F (y ) > Aj F F(p,N K)
H0
or equivalently
W = fy : F (y ) > d1 αg
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 147 / 225
3.2. The Fisher test
W = fy : F (y ) > d1 αg
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 148 / 225
3.2. The Fisher test
where rMSFT ,t is the excess return for Microsoft, rSP 500,t for the SP500,
rFord ,t for Ford and rGE ,t for general electric. We want to test the
following linear constraints:
H0 : β2 = 1 and β3 = β4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 149 / 225
3.2. The Fisher test
Solution
Step 1: compute the F-statistic (cf. Matlab code)
F (y ) = 4.3406
W = fy : F (y ) > 3.4928g
Conclusion: for a signi…cance level of 5%, we reject the null H0 : Rβ = q
against H1 : Rβ 6= q
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 150 / 225
3.2. The Fisher test
1.2
Density of F under H0
1
0.8 DF1 = 2
DF2 = 20
Critical value = 3.4928
0.6
0.4
α=5%
0.2
0
0 1 2 3 4 5 6
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 151 / 225
3.2. The Fisher test
H0 : β k = a k versus H1 : βk 6= ak
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 152 / 225
3.2. The Fisher test
Proof
Consider the test H0 : βk = ak against H1 : βk 6= ak , then we have:
R= 0 0 .. 1 0 0
k th position
q = ak
As a consequence :
b
Rβ q=b
βk ak
1
b 2 R X> X
σ b b
R> = V βk
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 153 / 225
3.2. The Fisher test
Proof (cont’d)
So, for a test H0 : βk = ak against H1 : βk 6= ak , the Fisher test-statistic
becomes
> 1 1
b
F = Rβ q b 2 R X> X
σ R> b
Rβ q
So, we have:
2
b
βk ak
F=
b b
V βk
F = T2k
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 154 / 225
3.2. The Fisher test
De…nition (P-values)
The p-value of the F-test is equal to:
p-value = 1 Fp,N K (F (y ))
where F(y ) is the realisation of the F-statistic and Fp,N K (.) the cdf of
the Fisher distribution with p and N K degrees of freedom.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 155 / 225
3.2. The Fisher test
yi = β1 + ∑K
k =2 βk xik + εi
F F(K 1,N K )
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 156 / 225
3.2. The Fisher test
Remarks
R β = q
(K 1 K ) (K ,1 ) (K 1 1 )
0 1
0 1 0 0 .. 0 0 1 0 1
B C β 1 0
B 0 0 1 0 .. 0 C B .. C B .. C
B CB C B C
B .. .. 0 1 .. .. C @ .. A = @ .. A
@ .. .. .. .. .. .. A
βK 0
0 .. 0 0 .. 1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 157 / 225
3.2. The Fisher test
yi = β1 + ∑K
k =2 βk xik + εi
R2 N K
F=
1 R2 K 1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 158 / 225
3.2. The Fisher test
Example (Global F-test and CAPM model)
Consider the extended CAPM model (…le: Chapter4_data.xls):
Question: write a Matlab code to compute the global F-test, the critical
value for α = 5% and the p-value. Compare your results with Eviews.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 159 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 160 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 161 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 162 / 225
3.2. The Fisher test
E ( εj X) = 0N 1
V ( ε j X ) = σ 2 IN
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 163 / 225
3.2. The Fisher test
Problem
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 164 / 225
3.2. The Fisher test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 165 / 225
3. Tests in the multiple linear regression model
1 Student test
2 Fisher test
3 t-statistic and z-statistic
4 Global F-test
5 Exact (…nite sample) distribution under the normality assumption
6 Asymptotic distribution
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 166 / 225
Section 4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 167 / 225
4. MLE and inference
Introduction
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 168 / 225
4. MLE and inference
H0 : c (θ) = 0p 1
| {z }
p 1
c: RK ! Rp
θ 7! c (θ)
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 169 / 225
4. MLE and inference
Notations
cp (θ)
H0 : c (θ) = Rθ q=0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 170 / 225
4. MLE and inference
θ1 θ2 θ3 0
H0 : c (θ) = =
(2,1 )
θ2 + θ4 1 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 171 / 225
4. MLE and inference
θ1 θ2 = 0 θ 21 θ3 = 0
θ1 θ2 0
H0 : c (θ) = =
(2,1 ) θ 21 θ3 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 172 / 225
4. MLE and inference
Assumptions
∂c (θ)
(row) rank = p 8θ 2 Θ
∂θ>
with 0 1
∂c1 (θ) ∂c1 (θ) ∂c1 (θ)
∂θ 1 ∂θ 2 .. ∂θ K
B C
∂c (θ) B ∂c2 (θ) ∂c2 (θ)
..
∂c2 (θ) C
B ∂θ 1 ∂θ 2 ∂θ K C
=B C
∂θ> B .. .. .. .. C
(p,K ) @ A
∂cp (θ) ∂cp (θ) ∂cp (θ)
∂θ 1 ∂θ 2 .. ∂θ K
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 173 / 225
4. MLE and inference
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 174 / 225
4. MLE and inference
1 the test-statistic
2 its asymptotic distribution under the null
3 the (asymptotic) rejection region
4 the (asymptotic) p-value
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 175 / 225
Subsection 4.1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 176 / 225
4.1. The Likelihood Ratio (LR) test
LR = 2 `N b
θH 0 ; y j x `N b
θH 1 ; y j x
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 177 / 225
4.1. The Likelihood Ratio (LR) test
Comments
Consider the ratio of likelihoods under H1 (no constraint) and under H0
(with c (θ) = 0).
LN bθH 0 ; y j x
λ=
LN bθH 1 ; y j x
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 178 / 225
4.1. The Likelihood Ratio (LR) test
W = y : LR (y ) > χ21 α (p )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 179 / 225
4.1. The Likelihood Ratio (LR) test
p-value = 1 Gp (LR (y ))
where LR(y ) is the realisation of the LR test-statistic and Gp (.) is the cdf
of the chi-squared distribution with p degrees of freedom.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 180 / 225
4.1. The Likelihood Ratio (LR) test
exp ( θ ) θ xi
Pr (Xi = xi ) =
xi !
where θ is an unknown parameter to estimate. We have a sample
(realisation) of size N = 10 given by f5, 0, 1, 1, 0, 3, 2, 3, 4, 1g . Question:
use a LR test to test the null H0 : θ = 1.8 against H1 : θ 6= 1.8 and give a
conclusion for signi…cance level of 5%.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 181 / 225
4.1. The Likelihood Ratio (LR) test
Solution
The log-likelihood function is de…ned as to be:
N N
`N (θ; x ) = θN + ln (θ ) ∑ xi ln ∏ xi !
i =1 i =1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 182 / 225
4.1. The Likelihood Ratio (LR) test
Solution (cont’d)
Under the null H0 : θ = 1.8, we don’t need to estimate θ and the
log-likelihood is equal to:
N N
`N ( θ H 0 ; x ) = 1.8N + ln (1.8) ∑ xi ln ∏ xi ! = ln (0.0936)
i =1 i =1
0.0936
LR (y ) = 2 ln = 0.21072
0.104
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 183 / 225
4.1. The Likelihood Ratio (LR) test
Solution (cont’d)
LR (y ) = 0.21072
For N = 10, p = 1 (one restriction) and α = 0.05, the critical region is:
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 184 / 225
Subsection 4.2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 185 / 225
4.2. The Wald test
where b
θH 1 is the maximum likelihood estimator of θ under the alternative
hypothesis (unconstrained model) and V b asy b
θH 1 is an estimator of its
asymptotic variance covariance matrix.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 186 / 225
4.2. The Wald test
Remark
0 1 1
>B
B ∂c b ∂c b >CC
Wald = c b
θH 1 b asy b
B > θH 1 V θH 1 >
θ H 1 C c b
θH 1
@
| {z } | {z }|
∂θ {z }|
∂θ A | {z }
{z }
1 p p K K K K p p 1
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 187 / 225
4.2. The Wald test
θ1 θ2 = 0 θ 21 θ3 = 0
θ1 θ2 0
H0 : c (θ) = =
(2,1 ) θ 21 θ3 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 188 / 225
4.2. The Wald test
Solution
Here we have K = 3 and p = 2
!
b
θ1 b
θ2
c b
θH 1 = 2
b
θ1 b
θ3
∂c b 1 1 0
θH 1 =
∂θ > 2b
θ1 0 1
> > 1
∂c ∂c
Wald = c b
θH 1 b b asy b
θH 1 V θH 1 b
θH 1 c b
θH 1
∂θ> ∂θ>
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 189 / 225
4.2. The Wald test
Remark
In the case of linear constraints
H0 : Rθ q=0
we have
H0 : c (θ) = 0
with
c (θ) = Rθ q
∂c
(θ) = R
∂θ>
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 190 / 225
4.2. The Wald test
where b
θH 1 is the maximum likelihood estimator of θ under the alternative
hypothesis (unconstrained model) and V b asy b
θH 1 is an estimator of its
asymptotic variance covariance matrix.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 191 / 225
4.2. The Wald test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 192 / 225
4.2. The Wald test
Proof
Under some regularity conditions, we have
p d
N b
θH 1 θ0 ! N 0, I 1
(θ0 )
We use the delta method for the function c (.) . The function c (.) is a
continuous and continuously di¤erentiable function not involving N, then
p d ∂c ∂c
N c b
θH 1 c (θ0 ) ! N 0, >
(θ0 ) I 1
(θ0 ) >
(θ0 )>
∂θ ∂θ
Under the null H0 : c (θ0 ) = 0, we have
1/2 p
∂c ∂c d
>
(θ0 ) I 1
(θ0 ) >
(θ0 )> Nc b
θH 1 ! N (0, Ip )
∂θ ∂θ
where Ip is the identity matrix of size p.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 193 / 225
4.2. The Wald test
Proof (cont’d)
The Wald criteria is de…ned as to be:
Wald criteria
!>
> 1/2
∂c ∂c >
= N c b
θH 1 (θ0 ) I 1
(θ0 ) (θ0 )
∂θ> ∂θ>
1/2
∂c ∂c >
(θ0 ) I 1
(θ0 ) (θ0 ) c b
θH 1
∂θ> ∂θ>
> 1
∂c ∂c
= N c b
θH 1 (θ0 ) I 1
(θ0 ) (θ0 )> c b
θH 1
∂θ> ∂θ>
So, under the null H0 : c (θ0 ) = 0,, we have
d
Wald criteria ! χ2 (p )
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 194 / 225
4.2. The Wald test
Proof (cont’d)
>
Wald Criteria = N c b
θH 1
1
∂c ∂c
(θ0 ) I 1
(θ0 ) (θ0 )> c b
θH 1
∂θ> ∂θ>
A feasible Wald test-statistic is given by
>
Wald = N c b
θH 1
> 1
∂c 1 ∂c
θH 1 bI
b b
θH 1 b
θH 1 c b
θH 1
∂θ> ∂θ>
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 195 / 225
4.2. The Wald test
Proof (cont’d)
Since
b asy b 1b 1 b
V θH 1 =N I θH 1
We have …nally
> > 1
∂c ∂c
Wald = c b
θH 1 b b asy b
θH 1 V θH 1 b
θH 1 c b
θH 1
∂θ> ∂θ>
and
d
Wald ! χ2 (p )
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 196 / 225
4.2. The Wald test
p-value = 1 Gp (Wald (y ))
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 197 / 225
4.2. The Wald test
De…nition (z-statistic)
Consider the test H0 : θ k = ak versus H1 : θ k 6= ak . The z-statistic
corresponds to the square root of the Wald test-statistic and satis…es
b
θk ak d
Zk = r ! N (0, 1)
H0
b asy b
V θk
where b
θ k is the ML estimator of θ k obtained under H1 (unconstrained
model). The critical region for a signi…cance level of α is:
n α o
W = y : jZk (y )j > Φ 1 1
2
where Φ (.) denotes the cdf of the standard normal distribution.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 198 / 225
4.2. The Wald test
Computational issues
The Wald test-statistic depends on the estimator of the asymptotic
variance covariance matrix:
> > 1
∂c ∂c
Wald = c b
θH 1 b b asy b
θH 1 V θH 1 b
θH 1 c b
θH 1
∂θ> ∂θ>
b asy b 1b 1 b
V θH 1 =N I θH 1
where I b
θH 1 denotes the average Fisher information matrix.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 199 / 225
4.2. The Wald test
> !
N
1 ∂`i (θ; yi j xi ) ∂`i (θ; yi j xi )
BHHH estimator: bI B b
θ =
N ∑ ∂θ b ∂θ b
i =1 θ θ
N
1 ∂2 `i (θ; yi j xi )
Hessian based estimator: bI c b
θ =
N ∑ ∂θ∂θ> b
i =1 θ
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 200 / 225
4.2. The Wald test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 201 / 225
4.2. The Wald test
Computational issues (cont’d)
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 202 / 225
Subsection 4.3
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 203 / 225
4.3. The Lagrange Multiplier (LM) test
Introduction
Consider the set of constraints c (θ) = 0. Let λ be a vector of Lagrange
multipliers and de…ne the Lagrangian function
`N (θ ; y j x ) = `N (θ; y j x ) + λc (θ)
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 204 / 225
4.3. The Lagrange Multiplier (LM) test
Introduction (cont’d)
>
∂ `N ( θ ; y j x ) ∂` (θ; y j x ) ∂c (θ)
= N + λ
∂θ ∂θ ∂θ>
1 If the restrictions are valid, then imposing them will not lead to a
signi…cant di¤erence in the maximized value of the likelihood function.
In the …rst-order conditions, the meaning is that the second term in
the derivative vector will be small. In particular, λ will be small.
2 We could test this directly, that is, test
H0 : λ = 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 205 / 225
4.3. The Lagrange Multiplier (LM) test
Introduction (cont’d)
There is an equivalent simpler formulation, however. If the restrictions
c (θ) = 0 are valid, the derivatives of the log-likelihood of the
unconstrained model evaluated at the restricted parameter vector will
be approximately zero.
∂`N (θ; y j x )
=0
∂θ b
θH 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 206 / 225
4.3. The Lagrange Multiplier (LM) test
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 207 / 225
4.3. The Lagrange Multiplier (LM) test
Guess
Let us assume that θ is scalar, i.e. K = 1, then the LM statistic is simply
de…ned as:
2
sN bθH 0 ; Y j x
LM =
V sN b θH 0 ; Y j x
Since bI N b
θH 0 = V sN b
θH 0 ; Y j x , we have:
2
sN b
θH 0 ; Y j x
LM =
bI N b
θH 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 208 / 225
4.3. The Lagrange Multiplier (LM) test
where b
θH 0 is the maximum likelihood estimator of θ under the null
hypothesis (constrained model), sN (θ; Y j x ) is the score vector of the
unconstrained model and bI N b θH 0 is an estimator of the Fisher
information matrix of the sample evaluated at b
θH 0 .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 209 / 225
4.3. The Lagrange Multiplier (LM) test
Remark
Since:
1
b asy b
V θH 0 = bI N b
θH 0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 210 / 225
4.3. The Lagrange Multiplier (LM) test
where b
θH 0 is the maximum likelihood estimator of θ under the null
hypothesis (constrained model), sN (θ; Y j x ) is the score vector of the
unconstrained model and V b asy b θH 0 is an estimator of the asymptotic
variance covariance matrix of b
θH 0 .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 211 / 225
4.3. The Lagrange Multiplier (LM) test
Remark
The LM test-statistic can also be de…ned by:
>
∂c b b asy b ∂c b
LM = λ> θH 0 V θH 0 θH 0 λ
∂θ> ∂θ>
where λ denotes the Lagrange Multiplier associated to the constraints
c (θ) = 0.
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 212 / 225
4.3. The Lagrange Multiplier (LM) test
The LM test-statistic can be obtained from the following auxiliary
procedure:
Step 1: Estimate the constrained model and obtain b
θH 0 .
Step 2: Form the gradients for each observation of the unrestricted
model evaluated at b
θH 0
gi b
θH 0 ; yi j xi 8i = 1, ..N
LM = N R2
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 213 / 225
4.3. The Lagrange Multiplier (LM) test
Computational issues
b asy b 1b 1 b
V θH 0 =N I θH 0
where I b
θH 0 denotes the average Fisher information matrix.
2 Thus, we can obtain three di¤erent values for the LM statistic
given the choice of the estimator for Vasy b
θH 0 (cf. exercises).
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 214 / 225
4.3. The Lagrange Multiplier (LM) test
W = y : LM (y ) > χ21 α (p )
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 215 / 225
4.3. The Lagrange Multiplier (LM) test
p-value = 1 Gp (LM (y ))
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 216 / 225
Subsection 4.4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 217 / 225
4.4. A comparison of the three tests
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 218 / 225
4.4. A comparison of the three tests
Summary
Test Requires estimation under
LRT H0 and H1
Wald H1
LM H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 219 / 225
4.4. A comparison of the three tests
Computational problems
If the constraints c (θ) = 0 are not valid in the data, the (numerical)
convergence of the optimisation algorithm may be very problematic
under the null H0 .
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 220 / 225
4.4. A comparison of the three tests
Asymptotic comparison
The three tests have the same asymptotic distribution under the null
H0 : c (θ) = 0:
d
LRT ! χ2 (p )
H0
d
Wald ! χ2 (p )
H0
d
LM ! χ2 (p )
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 221 / 225
4.4. A comparison of the three tests
p
LRT Wald ! 0
H0
p
LM Wald ! 0
H0
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 222 / 225
4.4. A comparison of the three tests
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 223 / 225
4. MLE and inference
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 224 / 225
End of Chapter 4
Christophe Hurlin (University of Orléans) Advanced Econometrics - Master ESA November 20, 2015 225 / 225