Non-Parametric Tests Flashcards
Problems with parametric tests
Strong assumptions e.g. Normality e.g. N large enough to invoke CLT.
What are non-parametric tests?
Tests valid over a wide range of distributions and can be carried out making far fewer assumptions about the random variable.
What is the most simple non parametric test called?
Wilcoxon Sign test
What type of data does the sign test analyse?
Matched pairs
Briefly describe the process of setting up sign test
Assign + if 1st value > 2nd
- if 1st value < 2nd
Construct a Bernoulli trial for each individual
Under H0, p=0.5. Repeated Bernoulli = binomial
W ~ B(n, 0.5). P (W is what we observe)
For sign test how do we calculate the p value if the test is two sided?
We work out probability using binomial e.g. 9C0 (0.5)^9 + 9C1 (0.5)^9 = 0.02
P value for 2 sided test = 2 x 0.02 = 0.04
0.04 < 0.05 (alpha) therefore we reject H0
For a sign test if n>25, how do we work out the probability?
Invoke CLT so W bar is approx normal with M=0.5 and sigma^2 = 0.5^2 / n.
Z = (W/n - 0.5) / (sqrt 0.5^2 / n)
Problem with sign test
Ignores magnitude - treats a large negative difference the same as a small negative difference. Collapse everything to 0 or 1 = lots of information thrown away = low powered test when n is small. More likely to make a type 2 error of accepting H0 when it’s false. So we often find an insignificant test statistic.
What do we do with zero differences in the sign test?
We discard them and then reduced n by 1.
The sign test & sign rank test are only applicable for…
Matched pairs
How does the sign rank test differ from sign test?
It accounts for magnitude of the difference as well as sign
Describe sign rank test
Rank absolute differences in ascending order of magnitude
If two values have the same magnitude, assign the average rank
Sum up R+ and R- separately
What is our test statistic for the sign rank test?
T = MIN {R+, R-}
Under H0 for the sign rank test, what is E(T) and V(T)
E(T) = n(n+1)/4 V(T) = n(n+1)(2n+1)/24
What n<25, how do we work out our CVs for the sign rank test?
Use the tables given in the formula sheet. Correct value of alpha dependent on 1/2/ sided test.