|
FREQUENCY TESTName:
The frequency test is defined as follows.
For the frequency within a block test, we partition the input values into N=[n/m] non-overlapping blocks with n denoting the number of observations and m the number of observations within a block. Any unused observations are discarded. The frequency within a block test is then defined as follows.
where <y> is the response variable being tested; and where the <SUBSET/EXCEPT/FOR qualification> is optional.
<SUBSET/EXCEPT/FOR qualification> where <y> is the response variable being tested; and where the <SUBSET/EXCEPT/FOR qualification> is optional. The length of the block is set by entering the command
before entering the FREQUENCY BLOCK TEST command.
LET M = 20
LET P = 0.5 LET Y = BINOMIAL RANDOM NUMBERS FOR I = 1 1 1000 FREQUENCY TEST Y
For the frequency within a block test, it is additionally recommended that the block size should be at least 20 and it should also be greater than or equal to 0.01 times the sample size. It is recommended that the number of samples within a block be less than 100.
LET N = 1
LET P = 0.5
LET Y = BINOMIAL RANDOM NUMBERS FOR I = 1 1 200
.
FREQUENCY TEST Y
.
LET M = 10
FREQUENCY BLOCK TEST Y
The following output is generated:
************************
** FREQUENCY TEST Y **
************************
FREQUENCY TEST FOR RANDOMNESS
1. HYPOTHESIS:
H0: THE DATA ARE RANDOM
HA: THE DATA ARE NOT RANDOM
2. STATISTICS:
NUMBER OF OBSERVATIONS = 200
SUM OF +1 AND -1 VALUES = -6.000000
FREQUENCY TEST STATISTIC = 0.4242641
3. P-VALUE OF STATISTIC = 0.6713735
(REJECT HYPOTHESIS OF RANDOMNESS IF P-VALUE IS LESS THAN ALPHA)
4. CONCLUSION (AT THE 5% LEVEL):
THE DATA ARE RANDOM.
******************************
** FREQUENCY BLOCK TEST Y **
******************************
FREQUENCY WITHIN A BLOCK TEST FOR RANDOMNESS
1. HYPOTHESIS:
H0: THE DATA ARE RANDOM
HA: THE DATA ARE NOT RANDOM
2. STATISTICS:
NUMBER OF OBSERVATIONS = 200
BLOCK SIZE = 20
NUMBER OF OBSERVATIONS WITHIN A BLOCK = 10
FREQUENCY WITHIN A BLOCK TEST STATISTIC = 8.600000
3. P-VALUE OF STATISTIC = 0.5704381
(REJECT HYPOTHESIS OF RANDOMNESS IF P-VALUE IS LESS THAN ALPHA)
4. CONCLUSION (AT THE 5% LEVEL):
THE DATA ARE RANDOM.
Date created: 2/3/2004 |