Professional Documents
Culture Documents
Class 4 Slides
Class 4 Slides
Problem Set 4
1
Question 1
Suppose that
yi = xi β1 + zi β2 + εi .
2
Frisch-Waugh-Lovell Theorem
P = X (X ′ X )−1 X ′
M = I − P = I − X (X ′ X )−1 X ′
3
Frisch-Waugh-Lovell Theorem
FWL states
y = X1 βˆ1 + X2 βˆ2 + ε̂
and
4
Frisch-Waugh-Lovell Theorem
Proof:
y = X1 βˆ1 + X2 βˆ2 + ε̂
M1 y = M1 X1 βˆ1 + M1 X2 βˆ2 + M1 ε̂
| {z } |{z}
=0 =ε̂
5
Frisch-Waugh-Lovell Theorem
Proof:
y = X1 βˆ1 + X2 βˆ2 + ε̂
M1 y = M1 X1 βˆ1 + M1 X2 βˆ2 + M1 ε̂
| {z } |{z}
=0 =ε̂
where
M1 X1 = X1 − X1 (X1′ X1 )−1 X1′ X1 = 0
= ε̂
5
Question 1 - Solution
and so
∑i zi (yi − xi b1 ) 7
b2 = .
∑ z2
Question 1 - Solution
The solution is
∑ xi ûi ∑ v̂i ûi
βˆ1 = i = i 2 .
x v̂
∑i i i ∑i v̂i
8
Question 1 - Solution
∑ xi ûi = ∑(zi γ̂2 + v̂i ) ûi = γ̂2 ∑ zi ûi + ∑ v̂i ûi = ∑ v̂i ûi .
i i i i i
H0 : θ = 0 vs H1 : θ > 0.
10
Hypothesis Testing
Denition (Statistic)
A statistic is a measurable function of the sample. When a statistic is used
for estimation, it is called an estimator. When a statistic is used for
hypothesis testing, it is called a test statistic.
e.g. if we are testing the hypothesis that the population mean is θ , we might
dene the rejection region as
Rn = {x1 , x2 , . . . , xn : x̄n ≤ cn }
12
Hypothesis Testing
β (θ ) = Pθ (Xn ∈ Rn ).
13
Hypothesis Testing
β (θ ) = Pθ (Xn ∈ Rn ).
13
Hypothesis Testing
A good test has power function near 1 for θ ∈ θ0c and near 0 for θ ∈ Θ0 .
Denition (Size)
The size is the maximum probability of error of type I among distributions in
the null hypothesis:
14
Hypothesis Testing
sup β (θ ) = α.
θ ∈Θ0
sup β (θ ) ≤ α.
θ ∈Θ0
16
Hypothesis Testing
β (θ ) ≥ β ′ (θ )
16
Task 2 - Solution
= 1 − 0.95 = 0.05
17
Task 2 - Solution
= 1 − 0.95 = 0.05
Pθ (x ≤ v ) = v − θ .
17
Task 2 - Solution
= 1 − 0.95 = 0.05
Pθ (x ≤ v ) = v − θ .
0 if θ ≤ −.05
β (θ ) := Pθ (x > .95) = 1 − Pθ (x ≤ .95) = θ + .05 if θ ∈ (−.05, .95]) ,
1
if θ > .95
17
Task 2 - Solution
= 1 − 0.95 = 0.05
Pθ (x ≤ v ) = v − θ .
0 if θ ≤ −.05
β (θ ) := Pθ (x > .95) = 1 − Pθ (x ≤ .95) = θ + .05 if θ ∈ (−.05, .95]) ,
1
if θ > .95
Note that β (0) = 0.05 < β (0 + ε) = 0.05 + ε . This is an unbiased test!
17
Illustration - one-sided test
20
Question 3 - Solution
21
Question 3 - Solution
(e.g. Use norminv from Matlab or look it up from a table). This yields n ≈ 332.
21
Question 4
fθ (x) = θ e −xθ ,
22
Delta Method
23
Delta Method
Proof - Univariate :
By the mean value theorem (1st order Taylor expansion around θ )
24
Question 4 - Solution
(i)
log fθ (x) = log θ − xθ
and so
∂ log fθ (x) 1
= −x
∂θ θ
The MLE is 1/x .
√ 1 1 d 1 2
n − → N(0,
− θ 2 ) = N(0, 1/θ 2 ).
θ̂ θ θ
25