0
1.7kviews
Write down the steps for K-S test.

Write down the steps for K-S test. The sequence of numbers 0.54, 0.75, 0.98, 0.12, and 0.68 has been generated. Use K-S test with ɑ=0.05 to learn whether the hypothesis that the numbers are uniformly distributed on the interval [0, 1] can be rejected. (Critical value Dɑ=0.565).

1 Answer
0
18views

Step 1) H0: Ri~ Uniformly (0, 1)

H1: Ri~ is not Uniformly (0, 1)

Step 2) Number of random numbers= N= 5

Step 3) Arrange all random numbers in ascending order

0.12, 0.54, 0.68, 0.75, 0.98

Step 4)

I i/N Ri i/N-Ri i-1 (i-1)/N Ri-((i-1)/N)
1 0.2 0.12 0.08 0 0 0.12
2 0.4 0.54 -0.14 1 0.2 0.34
3 0.6 0.68 -0.08 2 0.4 0.28
4 0.8 0.75 0.05 3 0.6 0.15
5 1 0.98 0.02 4 0.8 0.18

$D^+ =Max (i/N-R_i)$

$D- = Max(R_i-((i-1)/N)$

$D_0 = Max (D^+, D-)$

$D+= 0.08$

$D-= 0.34$

$D_0=0.34$

Step 5) $D_{0.05}=0.565$

Step 6) $D_0\lt=D_{0.05}$

So we accepts $H_0$

It means that the given samples have property of uniformity.

Please log in to add an answer.