Run test
Run test
1. A sequence of Heads (H) and Tails (T) in tossing of a coin 16 times is given below:
HTTTHTHTHHTHTTHH
(i).Count the number of runs. (ii) Test whether the Heads and Tails occur in random order.
2. A machine produced a number of defective items per day. To check the randomness of the
defective items, a sample of defective items produced per day over a period of 20 days is taken
and found following results:
13 17 14 20 18 17 16 14 19 21
18 20 17 13 14 19 20 15 19 17
Test at 5% level of significance that the machine produced defective items in random order.
3. A sample of 36 tools produced by a machine shows the following sequence of good (G) and bad
(B) tools:
GGGBGGGGGBBBGGGGGGBBGGGGGGGGGBBGGGGG
Test the machine produced good (G) and bad (B) tools in random order at 5% level of
significance.
4. The following observations were taken from a table of random numbers from a distribution F(x)
with median 0:
0.464 0.137 2.455 – 0.323 – 0.068
0.907 –0.513 – 0.525 0.595 0.886
– 0.482 1.678 – 0.057 –1.229 – 0.486
–1.787 –0.261 1.237 1.046 0.962
Test whether the data are random at 5% level of significance?
5. The cars that enter in a parking are classified either Foreign-made (F) or Indian-made (I). To
check that the car entre in the parking are in random order, a sample of first 40 cars that entered
in the parking is taken and found the following sequence:
IIFFFIFIFFFFIIFIIIFFIFFIFFFFIIFFFIFFIIII
Test that the cars enter in the parking are in random order at 1% level of significance.
2. The following data were obtained from a table of random numbers of normal distribution with
mean 3 and standard deviation 1:
2.1, 1.9, 3.2, 2.8, 1.0, 5.1, 4.2, 3.6, 3.9, 2.7
Test by K-S test that the data have come from the same normal distribution at 5% level of
significance.
3. The following data were obtained from a table of random numbers of normal distribution with
mean 5.6 and standard deviation 1.2:
6.0 6.6 5.9 5.0 6.2 4.8
5.5 6.3 5.9 5.8 6.6 6.2 Test the hypothesis by K-S test that the data
have come from the same normal distribution at 5% level of significance.
KOLMOGOROV-SMIRNOV TWO-SAMPLE TEST
1. The following data represent lifetime (in hours) of batteries for two different brands A and B:
Brand 40 30 55 40 40 35 30 40 50 45 40 35
A
Brand 45 60 50 60 35 50 55 60 50 50 40 55
B
Examine by the Kolmogorov-Smirnov two-sample test, is the average life of two brands same at
5% level of significance?
2. The following are the marks in Statistics of B.Sc. students taken randomly from two colleges
A and B:
Marks 0-10 10-20 20-30 30-40 40-50 50-60 60-70 70-80 80-90 90-100
College (A) 2 2 4 6 3 3 4 8 7 5
College (B) 1 1 2 5 7 3 3 2 6 6
Apply Kolmogorov-Smirnov test to examine that the distribution of marks in college A and
college B is same at 1% level of significance
3. The following are the grades in Mathematics of High school students taken randomly from
two School I and School II:
Apply Kolmogorov -Smirnov test to examine that the performance in Mathematics of High
.