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

Kolmogorov–Smirnov one-sample test

/StatsMadeFun/sta503/vol-8/ks-one
SENSEI RANK
Then the usual table is too conservative. Use Lilliefors' table instead.
Kolmogorov–Smirnov one-sample test
MIKEY
MIKEY
Chi-square paksa aku group continuous data into classes. Boundary mana? Jawapan pun berubah, weh.
SENSEI RANK
SENSEI RANK
Kolmogorov–Smirnov does not group. Plot the sample cumulative distribution S(x), a staircase that jumps 1/n at each observation. Plot the hypothesised F₀(x) on top.
FARAH
FARAH
Dan D tu gap menegak paling besar antara dua-dua.
SENSEI RANK
SENSEI RANK
Check both sides of each step: |S(xᵢ) − F₀(xᵢ)| and |S(xᵢ₋₁) − F₀(xᵢ)|. The gap can be largest just before a jump.
NORMY
NORMY
Kalau aku estimate μ dan σ dari sample?
ゴゴゴ
GOGOGO
SENSEI RANK
SENSEI RANK
Then the usual table is too conservative. Use Lilliefors' table instead.
READ THE NOTES

Use it when

Testing whether a sample comes from a completely specified continuous distribution, without grouping the data. Works well for small samples.

Assumptions

  • A random sample X₁ … Xₙ from an unknown distribution F(x).
  • F₀(x) is continuous and completely specified (parameters known).

Hypotheses

A. H₀: F(x) = F₀(x) for all x vs H₁: F(x) ≠ F₀(x) for some x B. H₀: F(x) ≥ F₀(x) vs H₁: F(x) < F₀(x) (statistic D⁺ = sup[F₀(x) − S(x)]) C. H₀: F(x) ≤ F₀(x) vs H₁: F(x) > F₀(x) (statistic D⁻ = sup[S(x) − F₀(x)])

Test statistic

S(x) = (number of observations ≤ x) / n D = sup |S(x) − F₀(x)| (Equation 8.6) In practice: D = max over i of max{ |S(xᵢ) − F₀(xᵢ)|, |S(xᵢ₋₁) − F₀(xᵢ)| }

Decision rule

Reject H₀ if D exceeds the 1 − α quantile in Table A.18. For n > 40, the two-sided 5% value is about 1.36/√n.

Lilliefors test

Testing normality with μ and σ estimated by x̄ and s: compute zᵢ = (xᵢ − x̄)/s, F₀ = Φ(z), and D exactly as above, but compare it with the Lilliefors table (smaller critical values, e.g. about 0.886/√n at α = 0.05 for large n).

START THE MISSIONS
MISSION 1 OF 2

Largest vertical gap

+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