Professional Documents
Culture Documents
1/15
Hypothesis Testing
Goodness of t tests
2/15
Hypothesis Testing
Goodness of t tests
Outline
Goodness of t tests
3/15
Hypothesis Testing
Goodness of t tests
Goodness-of-t
3/15
Hypothesis Testing
Goodness of t tests
1 n
i − 0.5 2
(discrete sample).
X
CM = + Fn (x(i) ) − ,
12n
d
n
i=1
0.7981
0.5
0.3297
Exp(1) c.d.f.
e.c.d.f.
0
0 0.4 1.6 3
5/15
Hypothesis Testing
Goodness of t tests
Knowledge of F (x)
6/15
Hypothesis Testing
Goodness of t tests
Kolmogorov-Smirno/Kuiper test
The KS test statistic is based on the maximum dierence between
the sample CDF and the hypothesized CDF,
H0 : X ∼ FX (x) v.s. H1 : X ≁ FX (x).
Test statistics:
i
D + =max − F (x(i) )
i n
i −1
D− =max F (x(i) ) −
i n
+ −
D
|{z} = max D , D V
|{z} = D+ + D−
KS-statistic Kuiper-statistic
8/15
Hypothesis Testing
Goodness of t tests
D + = 0.072
D − = 0.117
Exp(1/3.7) c.d.f.
e.c.d.f.
9/15
Hypothesis Testing
Goodness of t tests
Comparison
1. Plot ecdf and cdf in a graph, is it a good t?
2. Compare the characteristics of the distributions (mean,
variance, skewness, kurtosis).
3. Plot QQ-plot ⇒ is it a good t.
1-3 Graphical methods give an idea of the t (good/bad,
tail/around median etc), interpret it in your setting!
▶ Chi-squared test: easy to adjust for estimated number of
parameters, approximate test.
▶ KS/Kuiper test: good power, hard to work with; more
sensitive near center of the distribution;
▶ AD/CM test: good power, hard to work with. CM/AD test
places higher weight on the tails.
11/15
Hypothesis Testing
Example: Goodness-of-t Tests
Outline
Goodness of t tests
12/15
Hypothesis Testing
Example: Goodness-of-t Tests
0.7981
0.5
0.3297
Exp(1) c.d.f.
e.c.d.f.
0
0 0.4 1.6 3
12/15
Hypothesis Testing
Example: Goodness-of-t Tests
Exercise: CM
Consider the sample from slide 12 with only two observations. Do
the following tests at a level of signicance of 5%.
Question: Perform the CM test if the the parameter was not
estimated.
Solution: Statistic
CM = 1/24 + (0.3297 − 0.25)2 + (0.7981 − 0.75)2 = 0.050,
critical value: 0.461, Thus do not reject H0 .
Question: Perform the CM test if the the parameter was
estimated.
Solution:
d = 1/24 + (0.3297 − 0.25)2 + (0.7981 − 0.75)2 = 0.050;
CM
statistic (1 + 0.08) · 0.050 = 0.054 critical value: 0.224, Thus
do not reject H0 .
13/15
Hypothesis Testing
Example: Goodness-of-t Tests
Exercise: AD
Consider the sample from slide 12 with only two observations. Do
the following tests at a level of signicance of 5%.
Question: Perform the AD test if the the parameter was not
estimated.
Solution: AD = −1/2 · (log(0.3297) + log(1 − 0.7981)) +
−3/2 · (log(0.7981) + log(1 − 0.3297)) − 2 = 0.293, critical
value: 2.492, Thus do not reject H0 .
Question: Perform the AD test if the the parameter was
estimated.
Solution: ADd = −1/2 · (log(0.3297) + log(1 − 0.7981)) +
−3/2 · (log(0.7981) + log(1 − 0.3297)) − 2 = 0.293; statistic
(1 + 0.3) · 0.293 = 0.381 critical value: 1.341, Thus do not
reject H0 .
14/15
Hypothesis Testing
Example: Goodness-of-t Tests
Exercise: KS/Kuiper
Consider the sample from slide 12 with only two observations.
Perform the KS and Kuiper tests at a level of signicance of 5%.
We have:
i i−1 i i−1
i F (x(i) ) n n n − F (x(i) ) F (x(i) ) − n
1 0.3297 1/2 0/2 0.1703 0.3297
2 0.7981 2/2 1/2 0.2019 0.2981
D + = 0.2019 D − = 0.3297