Professional Documents
Culture Documents
(assigning ‘+’ to all even tickets and ‘– ‘to all odd tickets)
FOR DAY 1
- - + + + -
+ + + - + -
- + - - - +
- - - + + -
+ - + - - -
+ + + - + -
● m = number of +ve signs =17
● n = number of -ve signs =19
● N= m+n = 36
● r = number of runs = 21
Since m ≤ 20 and n ≤ 20, this is the case of a small sample.
From table G the critical values of r corresponding to α=0.05 are:
rl= 12 and ru= 26
Since, rl ≤ r ≤ ru
Therefore, we may accept Ho at 5% level of significance. Hence, the lottery ticket numbers in the
sample for day 1 are random.
FOR DAY 2
+ + + - + -
+ + - - - -
+ - + - - +
+ - - + - -
- - + - - -
- - + + + -
● m = number of +ve signs =15
● n = number of -ve signs =21
● N= m+n = 36
● r = number of runs = 18
Since m ≤ 20 but n > 20, this is the case of a large sample.
Therefore, we will use a large sample approximation for the test.
Mean = (2mn/N) +1 = 18.5
2mn(2 mn−N )
Variance = 2 = 8.25
( N−1) N
FOR DAY 3
- + + - - -
+ + + - - +
+ + + - - -
- + + + - -
+ + - - + -
Since, rl ≤ r ≤ ru
Therefore, we may accept Ho at 5% level of significance. Hence, the lottery ticket numbers in the
sample for day 3 are random.
FOR ALL DAYS TOGETHER
- - + + + -
+ + + - + -
- + - - - +
- - - + + -
+ - + - - -
+ + + - + -
+ + + - + -
+ + - - - -
+ - + - - +
+ - - + - -
- - + - - -
- - + + + -
- + + - - -
+ + + - - +
+ + + - - -
- + + + - -
+ + - - + -
● m = number of +ve signs =47
● n = number of -ve signs =55
● N= m+n = 102
● r = number of runs = 51
Since m> 20 and n >20, this is the case of large sample.
Therefore, we will use large sample approximation for the test.
Mean = (2mn/N) +1 = 51.68627
2mn(2 mn−N )
Variance = = 24.93477
( N−1) N 2
⇨ r ~ N (51.68627, 24.93477)
for r = 51
Now, Z =(r-mean)/standard deviation
Z = -0.13743
Since |Z| < 1.96, therefore we accept Ho at 5% level of significance. Hence, the lottery ticket
numbers in the sample for all the days taken together are random.
RESULT:
Testing whether there is randomness in the data for the 3 days separately
● FOR DAY 1
rl= 12 and ru= 26
Since, rl ≤ r ≤ ru
Therefore, we may accept Ho at 5% level of significance. Hence, the lottery ticket numbers in the
sample for day 1 are random.
● FOR DAY 1
Since m ≤ 20 but n > 20, this is the case of large sample.
r ~ N (18.5, 8.25)
for r = 18
Z = -0.17408
Since |Z| < 1.96, therefore we accept Ho at 5% level of significance. Hence, the lottery ticket numbers
in the sample for day 2 are random.
● FOR DAY 3
rl= 10 and ru= 22
Since, rl ≤ r ≤ ru
Therefore, we may accept Ho at 5% level of significance. Hence, the lottery ticket numbers in the
sample for day 3 are random.
FOR ALL DAYS TOGETHER
Since m > 20 and n > 20, this is the case of large sample.
r ~ N (51.68627, 24.93477)
for r = 51
Z = -0.13743
Since |Z| < 1.96, therefore we accept Ho at 5% level of significance. Hence, the lottery ticket
numbers in the sample for all the days taken together are random.