Wald–Wolfowitz-Run-Test
Lecture 54
The
Wald–Wolfowitz runs test was developed by Abraham Wald and Jacob Wolfowitz. It is
a non-parametric test used to determine whether the sample(s) selected from a
population(s) is a random process or the observation in a sample from a random
sequence or not. The runs test is used to analyse whether the observations in a sample
are random and also used to detect the autocorrelation.
For example, the sequences: HHTTTHHHHTT
|
Sequence |
No.
of Runs |
|
AAAA,
BB, AAA, BBB |
4 |
|
++++,
- - - - -, +++, - - -, ++++ |
5 |
A data set with a high number of runs may indicate randomness, but a data set with a low number of runs may suggest a pattern that is not random.
To perform a one-sample runs test:
i. Arrange the observations in ascending order of magnitude and find the median.
ii. Replace each observation with a plus sign if the observation is above the median and with a minus if the observation is below the median.
iii. Ignore the observation that is equal to the median.
iv. The total number of runs is denoted by nr, and one kind of symbols or letters is denoted by n1, and the other kind of symbols or letters is denoted by n2 .
v. Reject the null hypothesis if nr is less than the smaller table value or greater than the larger table value.
Normal approximation:
If n1 and n2 are greater than 10, then nr follows approximately normal with mean
Two Sample Runs Test
The two-sample run test is also called the Wald-Wolfowitz runs
test. To carry out the test, write down the observations of both samples in one
sequence according to their magnitude. Write down the letter A for each
observation of sample 1 and the letter B for each observation of sample 2, thus
getting a sequence of A’s and B’s. The remaining procedure is the same as the one for the sample runs test.
Example 13.7: A research student invites 15 persons for interview in the following sequence:
M F F M F M F M M F F M F F F
Where M and F represent male and female, respectively. Does this
sequence indicate a sequence from randomness in the arrangement of M and F
answers?
Solution:
i. State the null and alternative hypotheses:
H0: The sequence is random vs. H1: The sequence is non-random.
ii. The significance level:
iv. Reject H0 if nr
Does this sequence
indicate a sequence arrangement of T and F answers, a systematic fashion?
i. State the null and alternative hypotheses:
H0: The sequence of true and false is random vs. H1: The sequence of true and false is non-random.
ii. The significance level:
|
3.6 |
3.9 |
4.1 |
3.6 |
3.8 |
3.7 |
3.4 |
4.0 |
3.8 |
4.1 |
3.9 |
4.0 |
3.8 |
4.2 |
4.1 |
i. State the null and alternative hypotheses:
H0: The sequence is random vs. H1: The sequence is non-random.
ii. The significance level:
iv. Computation: Compute median and then construct in pluses and minuses
|
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
|
3.4 |
3.6 |
3.6 |
3.7 |
3.8 |
3.8 |
3.8 |
3.9 |
3.9 |
4.0 |
4.0 |
4.1 |
4.1 |
4.1 |
4.2 |
Example 13.10: Apply the run test and test the hypothesis that the following two samples are random.
|
Sample 1 |
26 |
25 |
38 |
33 |
42 |
40 |
44 |
26 |
25 |
43 |
35 |
48 |
37 |
|
|
|
|
Sample 2 |
44 |
30 |
34 |
47 |
35 |
46 |
35 |
47 |
48 |
34 |
32 |
42 |
43 |
49 |
46 |
47 |
i. State the null and alternative hypotheses:
H0: The sequence is random vs. H1: The sequence is non-random.
ii. The significance level:
|
25 |
25 |
26 |
26 |
30 |
32 |
33 |
34 |
34 |
35 |
35 |
35 |
37 |
38 |
40 |
42 |
42 |
43 |
44 |
44 |
||||
|
A |
B |
A |
B |
A |
B |
A |
B |
A |
B |
A |
|||||||||||||
|
46 |
46 |
47 |
47 |
47 |
48 |
48 |
49 |
|
|
|
|
|
|
|
|
|
|||||||
|
B |
A |
B |
|
|
|
|
|
|
|
|
|
||||||||||||
- Read More: Kruskal Wallis H Test

%20-%20Copy.png)

%20-%20Copy.png)
%20-%20Copy.png)
%20(1)%20(1).png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
%20-%20Copy.png)
No comments:
Post a Comment