Professional Documents
Culture Documents
Non Parametric Methods
Non Parametric Methods
students gain weight during the freshman year. Below are the "Before" and "After" weights for a random sample of 30 students. Test to see whether there is a significant "gain" in weights after the freshman year in college.
Before After Before After
133 152 169 156 178 220 145 138 218 140 148 98 142 170 108
135 160 180 154 185 226 150 140 225 140 143 102 138 182 112
121 144 106 182 122 110 130 165 158 106 160 122 146 112 145
125 140 108 175 120 114 134 165 160 105 166 125 155 115 144
H0: p=0.5 : There is no difference between the two types of before and after weights
H1: ab : There is difference between the two types of before and after weights There are 20 persons who increased in weight (positive changes) out of 28 persons who actually changed weight (changes). If there were "no difference" then p=.5.
But for calculations we ignore 0s. For =.05 K={ (n-1)/2} {(.98)n} ={ (28-1)/2} {(.98)28} =8.31 S=8, K=8.31 As K>S, so Null hypothesis is rejected. So there is tendency to gain weight.
20 08 02 30
But for calculations we ignore 0s Std Error= npq= 28*.5*.5 = 2.645 Z=( bar X- )/ Std Error = 2.268 For =.05, z=1.96 As calculated Z > Tabulated Z therefore we reject null hypothesis. So there is tendency to gain weight.
The value of U reported in this analysis is the one based on sample A, calculated as na(na+1) UA = nanb + 2 where TA = the observed sum of ranks for sample A, and and na and nb are the sizes of the first and second samples respectively. We next compare the value of calculated U with the value given in the Tables of Critical Values for the Mann-Whitney U-test, where the critical values are provided for given na and nb , and accordingly accept or reject the null hypothesis. TA
As na and nb increase, the sampling distribution of TA becomes a reasonably close approximation of the unit normal distribution. If na and nb are both equal to or greater than 5, this page will also calculate the value of z, along with the corresponding one-tailed and two-tailed probabilities. Note, however, that the approximation to the normal distribution is best when na and nb are both equal to or greater than 10. In such a case, z value is calculated as follows: Z={ UA [Na*Nb]/2} (Na)(Nb)(Na+Nb+1)]/12
AN EXAMPLE
Consider the following samples.
Sample A Observation Rank Sample B Observation Rank 18 6.5 14 2 13 1 15 3.5 17 5 19 9.5 18 6.5 20 12 19 9.5 25 15.5 25 15.5 19 9.5 21 13 22 14 19 9.5 15 3.5
We next compare the value of calculated U with the value given in the Tables of Critical Values for the Mann-Whitney U-test, where the critical values are provided for given na and nb , and accordingly accept or reject the null hypothesis. Even though the distribution of U is known, the normal distribution provides a good approximation in case of large samples.
17 18 19 20 21
8 7 10 9 14 15.5 15.5 58 42
H0: a=b=c : There are no differences among the three populations, so they have the same mean H1: abc : There are differences among the three populations, in particular they have different means
12 N(N+1) 12 H = 21(21+1) = 9.84
H =
( (
(Tg)2 ng
)
+
3(N+1) (42)2 + 6
(131)2 8
(58)2 7
3(21+1)
Now we use chi square table =.05 and 3-1=2 degrees of freedom = 5.991, so we reject H0