200 likes | 211 Views
Learn about the Kruskal-Wallis test, a nonparametric test used to determine if independent samples come from populations with equal medians. This test is suitable for samples with at least 5 observations.
E N D
Lecture Slides Elementary StatisticsEleventh Edition and the Triola Statistics Series by Mario F. Triola
13-1 Review and Preview 13-2 Sign Test 13-3 Wilcoxon Signed-Ranks Test for Matched Pairs 13-4 Wilcoxon Rank-Sum Test for Two Independent Samples 13-5 Kruskal-Wallis Test 13-6 Rank Correction 13-7 Runs Test for Randomness Chapter 13Nonparametric Statistics
Section 13-5 Kruskal-Wallis Test
Key Concept This section introduces the Kruskal-Wallis test, which uses ranks of data from three or more independent samples to test the null hypothesis that the samples come from populations with equal medians.
We compute the test statistic , which has a distribution that can be approximated by the chi-square distribution as long as each sample has at least 5 observations. When we use the chi-square distribution in this context, the number of degrees of freedom is , where is the number of samples. Kruskal-Wallis Test
The Kruskal-Wallis test (also called the H test) is a nonparametric test that uses ranks of simple random samples from three or more independent populations. It is used to test the null hypothesis that the independent samples come from populations with the equal medians. Definition : The samples come from populations with equal medians. : The samples come from populations with medians that are not all equal.
= total number of observations in all observations combined = number of samples = sum of ranks for Sample 1 = number of observations in Sample 1 For Sample 2, the sum of ranks is and the number of observations is , and similar notation is used for the other samples. Kruskal-Wallis TestNotation
1. We have at least three independent random samples. 2. Each sample has at least 5 observations. Note: There is no requirement that the populations have a normal distribution or any other particular distribution. Kruskal-Wallis Test Requirements
Test Statistic Critical Values 1. Test is right-tailed. 2. (Because the test statisticH can be approximated by the distribution, use Table A-4). Kruskal-Wallis Test
Procedure for Finding the Value of the Test Statistic H 1 Temporarily combine all samples into one big sample and assign a rank to each sample value. 2. For each sample, find the sum of the ranks and find the sample size. 3. Calculate H by using the results of Step 2 and the notation and test statistic.
Procedure for Finding the Value of the Test Statistic H The test statistic H is basically a measure of the variance of the rank sums If the ranks are distributed evenly among the sample groups, then H should be a relatively small number. If the samples are very different, then the ranks will be excessively low in some groups and high in others, with the net effect that H will be large.
Example: The chest deceleration measurements resulting from car crash tests are listed in Table 13-6. The data are from the Chapter Problem in Chapter 12. Test the claim that the three samples come from populations with medians that are all equal. Use a 0.05 significance level.
Example: Are requirements met? Each of the three samples is a simple random independent and sample. Each sample size at least 5. : The populations of chest deceleration measurements from the three categories have the same median. : The populations of chest deceleration measurements from the three categories have medians that are not all the same.
Example: The following statistics come from Table 13-6:
Example: Evaluate the test statistic.
Example: Find the critical value. . Because each sample has at least five observations, the distribution of H is approximately a chi-square distribution. (right-tail) From Table A-4 the critical value = 5.991.
Example: The test statistic 5.774 is NOT in the critical region bounded by 5.991, so we fail to reject the null hypothesis of equal medians. There is not sufficient evidence to reject the claim that chest deceleration measurements from small cars, medium cars, and large cars all have equal medians. The medians do not appear to be different.
Recap In this section we have discussed: The Kruskal-Wallis Test is the non-parametric equivalent of ANOVA. It tests the hypothesis that three or more populations have equal means. The populations do not have to be normally distributed.