Академический Документы
Профессиональный Документы
Культура Документы
Eric Zivot
| | ⇒ reject 0
| | ≤ ⇒ do not reject 0
Decision Making and Hypothesis Tests
Reality
Decision 0 is true 0 is false
Reject 0 Type I error No error
Do not reject 0 No error Type II error
level = 5% or level = 1%
Power of Test
1 − Pr(Type II error)
= Pr(Reject 0|0 is false)
Goal: Construct test to have high power
= + = 1 · · · ; = 1 · · ·
∼ iid (0 2)
cov( ) = cor( ) =
cov( ) = 0 6= for all
• Test for specific value
0 : = 0 vs. 1 : 6= 0
0 : = 0 vs. 1 : 6= 0
0 : = 0 vs. 1 : 6= 0
0 : = corr( − ) = 0, 1
1 : = corr( − ) 6= 0 for some
= 12 + · · · + 2
Then
∼ 2()
= degrees of freedom (d.f.)
Properties of 2() distribution
0
[] =
2() → normal as → ∞
R functions
[ ] = 0
skew( ) = 0
3 − 6
kurt( ) = 4
−4
→ (0 1) as → ∞ ( ≥ 60)
R functions
c
• If | =0 | 2, say, then ̂ is more than 2 values of SE(̂
) away from
This is very unlikely if = 0 so 0 : = 0 should be rejected.
0
Distribution of t-statistic under 0
̂ − 0
=0 = ∼ −1
c
SE(̂
)
where
v
u
u
1 X c ̂ u 1 X
̂ = SE(̂) = √ ̂ = t ( − ̂)2
=1 − 1 =1
−1 = Student’s t distribution with
− 1 degrees of freedom (d.f.)
Remarks:
• −1 is bell-shaped and symmetric about zero (like normal) but with fatter
tails than normal
̂ − 0
=0 = ' (0 1)
c
SE(̂
)
2. Set significance level and determine critical value
Pr(Type I error) = 5%
Test has two-sided alternative so critical value, 025 is determined using
−1 −1
Pr(| −1| 025) = 005 ⇒ 025 = −025 = 975
−1
where 975 = 975% quantile of Student-t distribution with − 1 degrees of
freedom.
3. Decision rule:
Let ̂ denote an estimator for . In many cases the CLT justifies the asymptotic
normal distribution
̂ ∼ ( se(̂)2)
Consider testing
0 : = 0 vs. 1 : 6= 0
Result: Under 0
̂ − 0
=0 = ∼ (0 1)
sce(̂)
for large sample sizes.
Example: In the CER model, for large enough the CLT gives
0 : = 0 vs. 1 : 6= 0
at 5% level if
¯ ¯
¯ ̂ − 0 ¯
¯ ¯
|=0 | = ¯ ¯2
¯ sc e(̂) ¯
Relationship Between Hypothesis Tests and Confidence Intervals
0 : = 0 vs. 1 : 6= 0
level = 5%
−1
975 = 975 ≈ 2 for 60
̂ − 0
=0 =
c
SE(̂
)
Reject at 5% level if | =0 | 2
Decision: Reject 0 : = 0 at 5% level if 0 does not lie in 95% confidence
interval.
Test for Sign
0 : = 0 vs. 1 : 0
1. Test statistic
̂
=0 =
c
SE(̂)
Intuition:
Pr(Type I error) = 5%
One-sided critical value is determined using
3. Decision rule:
−1 = 1645 and the decision rule is
If ≥ 60 then 95 ≈ 95
4. P-Value of test
d
[ ) 6= 0 and/or kurt(
• If is not normally distributed then skew( ) 6= 3
so that JB 0
Distribution of JB under 0
JB ∼ 2(2)
where 2(2) denotes a chi-square distribution with 2 degrees of freedom (d.f.).
2. Set significance level and determine critical value
Pr(Type I error) = 5%
Critical value is determined using
3. Decision rule:
= cor( − )
cov( − )
=
var()
Hypotheses to be tested
0 : = 0, for all = 1
1 : 6= 0 for some
1. Estimate using sample autocorrelation
1 P
=+1( − ̂)(− − ̂)
̂ = 1 P ( − ̂)2
=1
Result: Under 0 : = 0 for all = 1 if is large then
µ ¶
1
̂ ∼ 0 for all ≥ 1
1
SE(̂ ) = √
2. Test Statistic
̂ √
=0 = = ̂
SE(̂ )
and 95% confidence interval
1
̂ ± 2 · √
3. Decision rule
Reject 0 : ¯ = 0 at ¯ 5% level
¯√ ¯
if |=0 | = ¯ ̂ ¯ 2
That is, reject if
2 −2
̂ √ or ̂ √
Diagnostics for Constant Parameters
1 −1
X
̂() = −
=0
1
= ( + −1 + · · · + −+1)
R function (package zoo)
rollapply
If 0 : is constant is true, then ̂() should stay fairly constant over
different windows.
2 () = 1 −1
X
̂ (− − ̂())2
− 1 =0
q
̂() = 2 ()
̂
If 0 : is constant is true, then ̂() should stay fairly constant over
different windows.
Idea: Compute estimates of and over rolling windows of length
1 −1X
̂() = (− − ̂ ())(− − ̂ ())
− 1 =0
̂()
̂() =
̂()̂()
If 0 : is constant is true, then ̂() should stay fairly constant over
different windows.