◀ CONTENTSSTA503 · VOL.8EP.3 · Kolmogorov–Smirnov two-sample testMISSIONS 0/2LV 10 XP
VOL.8 · EP.3 · §8.3

Kolmogorov–Smirnov two-sample test

/StatsMadeFun/sta503/vol-8/ks-two
SENSEI RANK
Draw S₁(x) for sample 1 and S₂(x) for sample 2. D is the biggest vertical gap between them.
Kolmogorov–Smirnov two-sample test
Sprint times: five non-athletes and six athletes.
FARAH
FARAH
Sama macam one-sample test, tapi sekarang dua-dua curve jadi tangga.
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Draw S₁(x) for sample 1 and S₂(x) for sample 2. D is the biggest vertical gap between them.
MIKEY
MIKEY
The book also uses a pair chart, a lattice path that moves right for an X and up for a Y.
READ THE NOTES

Use it when

Testing whether two independent samples come from identical continuous distributions. Sensitive to differences in location, spread or shape.

Assumptions

  • Two independent random samples of sizes m and n.
  • Continuous variable, at least ordinal measurement.

Hypotheses

H₀: F₁(x) = F₂(x) for all x H₁: F₁(x) ≠ F₂(x) for some x (one-sided versions also exist)

Test statistic

S₁(x) = (number of X ≤ x)/m, S₂(x) = (number of Y ≤ x)/n D = max |S₁(x) − S₂(x)| evaluated at every observed value

Decision rule

Reject H₀ if D is at least the critical value from the two-sample Kolmogorov–Smirnov table. When m = n, the table is often given for the count mD.

Large-sample approximation

Two-sided α = 0.05: D_crit ≈ 1.36 √[(m + n)/(mn)]
START THE MISSIONS
MISSION 1 OF 2

Athletes vs non-athletes

+30 XP
HOW TO PLAY

Work the procedure by hand on the data shown. Fill every box, then press CHECK. NEW DATA deals a fresh problem; SHOW SOLUTION gives the full working.

CLEARS WHENEvery box correct on one set of data.
Loading mission engine...

ALL MISSIONS IN THIS EPISODE