cwave.eu5.org
Also see: http://www.angelfire.com/dragon/letstry
cwave04 at yahoo dot com
Free Guestbook
My Guestbook

Last updated on Fri May 21 11:52:17 IST 2010.

Two sample inference

Two sample KS test

We have same set up as before. We want to test
H0: F = G Vs H1: F ≠ G
or
H0: F = G Vs H1: F G
or
H0: F = G Vs H1: F G
Let Fm and Gn denote the empirical distributions of the X's and the Y's , respectively. Define
D = supx | Fm(x)-Gn(x) |
D+ = supx (Fm(x)-Gn(x))
D = supx (Gn(x)-Fm(x))

Exercise 8.1: Show that
D+ = max{0, maxi(i/m - Gn(X(i)))}
Here X(i) is the i-th order statistic of the X's.

Exercise 8.2: State and prove a similar result for D-

Exercise 8.3: Show that
D = max{ D-, D+}

Exercise 8.4: We want want to reject H0 for large values of the test statistic. Which test statistic should we use for which H1?

The actual distributions of D, D-and D+ are complicated. Here are the asymptotic distributions under H0.

Theorem As min(m,n) → ∞,
P(sqrt(mn/(m+n)) D ≤ x) → H(x), under H0,
where
H(x) = 1- 2 ∑ j (-1)j-1 exp(-2j2 x2) if x ≥ 0
0 else

Theorem As min(m,n) → ∞,
P(sqrt(mn/(m+n)) D+ ≤ x) → H(x), under H0,
where
H(x) = 1- exp(-2x2) if x ≥ 0
0 else
The very same limit works for D- as well.

PrevNext
© Arnab Chakraborty (2010)