Non Parametric Tests (Sarah)
Non Parametric Tests (Sarah)
2. They are rather quick and easy to use i.e., they do not require
laborious computations since in many cases the observations are
replaced by their rank order and in many others we simply use signs.
(iv) Test of a hypothesis concerning variation in the given data i.e., test
analogous to ANOVA
(v) Tests of randomness of a sample based on the theory of runs viz.,
one sample runs test
(vi)Test of hypothesis to determine if categorical data shows
dependency or if two classifications are independent viz., the chi-square
test
• Tests used in practice are listed as follows:
1. Sign tests:
• The sign test is one of the easiest parametric tests. Its name comes
from the fact that it is based on the direction of the plus or minus signs
of observations in a sample and not on their numerical magnitudes
• After doing this, we test the null hypothesis that these + and – signs
are values of a random variable, having a binomial distribution with p
= 1/2*
• For performing one sample sign test when the sample is small, we can
use tables of binomial probabilities, but when sample happens to be
large, we use normal approximation to binomial distribution
(b) Two sample sign test:
• The sign test has important applications in problems where we deal
with paired data. In such problems, each pair of values can be replaced
with a plus (+) sign if the first value of the first sample (say X) is
greater than the first value of the second sample (say Y) and we take
minus (–) sign if the first value of X is less than the first value of Y
• In case the two values are equal, the concerning pair is discarded. (In
case the two samples are not of equal size, then some of the values of
the larger sample left over after the random pairing will have to be
discarded.)
• The actual signs of each difference are then put to corresponding ranks
and the test statistic T is calculated which happens to be the smaller of
the two sums viz., the sum of the negative ranks and the sum of the
positive ranks
• While using this test, we may come across two types of tie situations
• One situation arises when the two values of some matched pair(s) are
equal i.e., the difference between values is zero in which case we drop
out the pair(s) from our calculations
• The other situation arises when two or more pairs have the same
difference value in which case we assign ranks to such pairs by
averaging their rank positions. For instance, if two pairs have rank
score of 5, we assign the rank of 5.5 i.e., (5 + 6)/2 = 5.5 to each pair
and rank the next largest difference as 7
• For this test, the calculated value of T must be equal to or smaller than
the table value in order to reject the null hypothesis. In case the
number exceeds 25, the sampling distribution of T is taken as
approximately normal with mean UT = n(n + 1)/4 and standard
deviation
• Formula
Mann- whitney U test:
• This is a very popular test amongst the rank sum tests
• This test applies under very general conditions and requires only that
the populations sampled are continuous
• Under the alternative hypothesis, the means of the two populations are
not equal and if this is so, then most of the smaller ranks will go to the
values of one sample while most of the higher ranks will go to those of
the other sample
Kruskal-Wallis test (or H test)
• This test is conducted in a way similar to the U test described above
• This test is used to test the null hypothesis that ‘k’ independent
random samples come from identical universes against the alternative
hypothesis that the means of these universes are not equal
• If two or more values happen to be equal, then the average of the ranks
which should have been assigned to such values had they been all
different, is taken and the same rank (equal to the said average) is
given to concerning values
• The second step is to record the difference between ranks (or ‘d’) for
each pair of observations, then square these differences to obtain a
total of such differences which can symbolically be stated as ∑di 2
• Formula
• For instance, in case of, say, four interviewers interviewing, say, six
job applicants and assigning rank order on suitability for employment,
if there is observed perfect agreement amongst the interviewers, then
one applicant would be assigned rank 1 by all the four and sum of his
ranks would be 1 + 1 + 1 + 1 = 4
• Another applicant would be assigned a rank 2 by all four and the sum
of his ranks will be 2 + 2 + 2 + 2 = 8
• The sum of ranks for the six applicants would be 4, 8, 12, 16, 20 and
24 (not necessarily in this very order)
• It may be noted that W does not take negative values because of the
fact that with more than two judges complete disagreement cannot
take place
• (b) For each object determine the sum of ranks (Rj ) assigned by all
the k judges