Lecture6-Standard Error, Confidence Interval and Simple Hypothesis Testing - Slides - Annotated
Lecture6-Standard Error, Confidence Interval and Simple Hypothesis Testing - Slides - Annotated
Xiaoxia Shi
11/12/2018
E [Y |X ] = X 0 β.
where
U = Y − X 0β
E [Y |X ] = X 0 β.
where
U = Y − X 0β
E [Y |X ] = X 0 β.
where
U = Y − X 0β
Confidence Interval
Confidence Interval
Recall that √
n ( β̂ − β) →d N 0, Vβ ,
where Vβ = (E [XX 0 ])−1 E [U 2 XX 0 ](E [XX 0 ])−1
Ubi = Yi − Xi0 β.
b
! −1 ! ! −1
n n n
Vbβ = n −1
∑ Xi Xi0 n −1
∑U b2 Xi Xi0 n −1
∑ Xi Xi0 .
i =1 i =1 i =1
√
Since Vβ is the asymptotic variance-covariance matrix of n ( βb − β),
we can use Vbβ approximates the variance-covariance matrix of
√ b
n ( β − β ).
Vbβ
That means that we can use n to approximate the variance of β.
b
Combined with the asymptotic normality of β̂, the standard errors can
be used to assess the accuracy of the estimator.
Suppose that you (the analyst or policy maker) can tolerate an error
as large as 3 points. The estimator β̂ 0 is quite OK.
Confidence Interval
What is zα/2 ?
...
...
Thus, zα/2 is the 1 − α/2 quantile of N (0, 1). E.g. z2.5% = 1.96,
z5% = 1.645.
Confidence Interval
H0 : θ = c,
H1 : θ 6= c.
H1 : θ > c,
θ̂ − θ
→d N (0, 1).
s.e.(θ̂ )
( )
|θ̂ − c |
φn = 1 > threshold
s.e.(θ̂ )
θ̂ −c
We use the fact that s.e.(θ̂ )
→d N (0, 1) under H0 (i.e. θ = c).
Controlling type-I error rate requires:
When you are not exactly sure which significance level is appropriate,
it is convenient to report the p-value.
We define this for the two-sided t-test. The one-sided t-test verison is
analogous.
Let τ denote the realized value of the Student-t statistic given your
data set. The p-value is
The p-value is the probability that a random draw of the test statistic
approx
(i.e. t ∼ N (0, 1)) is at least as averse to the H0 as the realized
draw (i.e. τ), assuming that H0 is true.
If it is unlikely to see stronger evidence against H0 (i.e., p-value is
small), the current evidence must be a strong one.
The test of a significance level above the p-value rejects H0 , and the
test of a significance level below the p-value does not.
H0 : β j = 0 vs. H1 : β j 6= 0 (5)
Suppose that
√ β̂1 − β1
1ρ
n β̂ − β →d N 0, ρ 1 .
2 2
√
1 n (( β̂ 1 − β̂ 2 ) − ( β 1 − β 2 )) →d ?
2 Construct a test for the single hypothesis:
H0 : β 1 − β 2 = 0.