Session 2 Non-Para Tests
Session 2 Non-Para Tests
Session 2 Non-Para Tests
Methods of analysis that do not assume a particular family of distributions for the
data.
Usually only perform one analysis of a data set choosing between parametric
and non-parametric methods.
It is important to realise that if we apply different tests to the same data then
we do not expect them to give the same answer, but in general two valid
methods will give similar answers.
Non-parametric tests are less powerful than the equivalent parametric test
(especially in small samples) and will tend to give a less significant (larger) p-
value
data: 7 9 10 12 12 9 12 11 -13
X1 X2 X3 X4 X5 X6 X7 X8 X9
ordered:
ranks:
Wilcoxon Signed Rank Test
Assumptions
Question 1:
1. Calculate the difference between week 4 and baseline
2. Rank the differences (If there is tied ranks (=0) ignore this and start from
the first number).
3. Calculate the sum of ranks for ve and +differences.
4. Open the data file: Paired Wilcoxon
5. Use a Wilcoxon test the hypothesis that there been a change in severity
scores from baseline to week 4?
6. Undertake a the appropriate t-test and compare the findings.
Question 2:
Therefore, we have a non-parametric equivalent of the two way ANOVA that can
be used for data sets which do not fulfill the assumptions of the parametric
method. The method, which is sometimes known as Friedmans two way
analysis of variance, is purely a hypothesis test.
Example 3
Acne severity scores compared at baseline and 4 weeks following a course
of erythromycin 500mg twice daily.
Question 3:
1. Open data file: Friedman
2. Is there any variation in acne severity scores over the
12 week period?
3. If the Friedman test shows significance, then undertake
paired tests to see where the differences are.
The Mann-Whitney test is used to compare two sets of data from independent
groups. It is the most commonly used alternative to the independent samples t-
test. The values from both samples are combined and then the data is ranked
from smallest to largest. The rank of 1 is assigned to the smallest value, 2 to the
next smallest and so on. If the ranks are tied, then the average rank is used.
Assumptions
1. There are two independent random variables (X and Y), of size n and m.
2. The variable of interest is a continuous random variable.
3. The two populations differ only with respect to location.
Example 4
Patients receiving chemotherapy as outpatients were randomized to receive
either an active antiemetic treatment or placebo (Williams et al., 1989). The
following table shows measurements (in mm) on a 100mm linear analogue self
assessment scale for nausea.
Question 4:
Assumptions
1. There are three or more independent random variables (X 1 , X2, X3.Xn, ), of
size n1 ,n2, n3.nn
2. The variable of interest is ordinal or a continuous random variable which is
non-normal.
3. The populations differ only with respect to location.
Question 5:
1. Rank the data, irrespective of group.
2. Calculate the sum of ranks for each group. What does this indicate?
3. Is there variation in the reduction of headache activity between the 3
groups using a KW test? Draw a graph to show the differences.
4. Compare the findings with ANOVA.
Choice of Test
Additional exercises
Using the data from exercises 1-3 from Week 2, compare the findings
using the appropriate non-parametric and parametric tests.