Your SlideShare is downloading. ×
0
The Kruskal-Wallis H Test• The Kruskal-Wallis H Test is a  nonparametric procedure that can be used to  compare more than ...
The Kruskal-Wallis H TestRank the total measurements in all k samplesRank the total measurements in all k samplesfrom 1 ...
The Kruskal-Wallis H TestH00:: the k distributions are identical versusH the k distributions are identical versusHaa:: at ...
ExampleFour groups of students were randomlyassigned to be taught with four differenttechniques, and their achievement tes...
Teaching Methods                      1         2        3        4                      65   (3) 75   (7) 59(1)     94 (1...
Teaching Methods       H00:the distributions of scores are the same       H : the distributions of scores are the same    ...
Key ConceptsI.   Nonparametric MethodsThese methods can be used when the data cannot be measured on a     quantitative sca...
Key ConceptsKruskal-Wallis H Test: Completely Randomized Design1. Jointly rank all the observations in the k samples (trea...
Upcoming SlideShare
Loading in...5
×

K wtest

174

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
174
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "K wtest"

  1. 1. The Kruskal-Wallis H Test• The Kruskal-Wallis H Test is a nonparametric procedure that can be used to compare more than two populations in a completely randomized design.• All n = n1+n2+…+nk measurements are jointly ranked (i.e.treat as one large sample).• We use the sums of the ranks of the k samples to compare the distributions.
  2. 2. The Kruskal-Wallis H TestRank the total measurements in all k samplesRank the total measurements in all k samplesfrom 1 to n. Tied observations are assigned average of from 1 to n. Tied observations are assigned average ofthe ranks they would have gotten if not tied. the ranks they would have gotten if not tied.Calculate Calculate T = rank sum for the ith sample ii = 1, 2,…,k Ti i = rank sum for the ith sample = 1, 2,…,kAnd the test statistic And the test statistic 12 Ti 2 H= ∑ − 3(n + 1) n(n + 1) ni
  3. 3. The Kruskal-Wallis H TestH00:: the k distributions are identical versusH the k distributions are identical versusHaa:: at least one distribution is differentH at least one distribution is differentTest statistic: Kruskal-Wallis HTest statistic: Kruskal-Wallis HWhen H00 is true, the test statistic H has anWhen H is true, the test statistic H has anapproximate chi-square distribution with dfapproximate chi-square distribution with df= k-1.= k-1.Use a right-tailed rejection region or p-Use a right-tailed rejection region or p-value based on the Chi-square distribution.value based on the Chi-square distribution.
  4. 4. ExampleFour groups of students were randomlyassigned to be taught with four differenttechniques, and their achievement test scoreswere recorded. Are the distributions of testscores the same, or do they differ in location? 1 2 3 4 65 75 59 94 87 69 78 89 73 83 67 80 79 81 62 88
  5. 5. Teaching Methods 1 2 3 4 65 (3) 75 (7) 59(1) 94 (16) 87 (13) 69 (5) 78 (8) 89 (15) 73 (6) 83 (12) 67 (4) 80 (10) 79 (9) 81 (11) 62 (2) 88 (14) Ti 31 35 15 55Rank the 16 Rank the 16 H00:the distributions of scores are the same H : the distributions of scores are the samemeasurements measurements Ha::the distributions differ in location Ha the distributions differ in locationfrom 1 to 16, from 1 to 16,and calculate 12 Ti 2 Test statistic: H = and calculate ∑ − 3(n + 1)the four rank the four rank n(n + 1) nisums. sums. 12  312 + 352 + 152 + 552  =    − 3(17) = 8.96  16(17)  4 
  6. 6. Teaching Methods H00:the distributions of scores are the same H : the distributions of scores are the same Ha::the distributions differ in location H the distributions differ in location a 12 Ti 2 Test statistic: H = ∑ − 3(n + 1) n(n + 1) ni 12  312 + 352 + 152 + 552  =    − 3(17) = 8.96  16(17)  4  Reject H00.There is sufficient Reject H . There is sufficientRejection region: For aaright- Rejection region: For right-tailed chi-square test with α = .. evidence to indicate that there evidence to indicate that there tailed chi-square test with α =05 and df = 4-1 =3, reject H00if H is aadifference in test scores for is difference in test scores for 05 and df = 4-1 =3, reject H if H the four teaching techniques. the four teaching techniques. ≥ 7.81. ≥ 7.81.
  7. 7. Key ConceptsI. Nonparametric MethodsThese methods can be used when the data cannot be measured on a quantitative scale, or when• The numerical scale of measurement is arbitrarily set by the researcher, or when• The parametric assumptions such as normality or constant variance are seriously violated.
  8. 8. Key ConceptsKruskal-Wallis H Test: Completely Randomized Design1. Jointly rank all the observations in the k samples (treat as one large sample of size n say). Calculate the rank sums, Ti = rank sum of sample i, and the test statistic 12 Ti 2 H= ∑ − 3(n + 1) n(n + 1) ni2. If the null hypothesis of equality of distributions is false, H will be unusually large, resulting in a one-tailed test.3. For sample sizes of five or greater, the rejection region for H is based on the chi-square distribution with (k − 1) degrees of freedom.
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×