In: Math
The better-selling candies are often high in calories. Assume that the following data show the calorie content from samples of M&M's, Kit Kat, and Milky Way candies.
| M&M's | Kit Kat | Milky Way |
|---|---|---|
| 250 | 245 | 200 |
| 210 | 205 | 208 |
| 240 | 225 | 202 |
| 230 | 235 | 190 |
| 250 | 220 | 180 |
Test for significant differences among the calorie content of these three candies.
A) State the null and alternative hypotheses.
H0: MedianMM =
MedianKK = MedianMW
Ha: MedianMM ≠ MedianKK ≠
MedianMW
H0: All populations of calories are
identical.
Ha: Not all populations of calories are
identical.
H0: Not all populations of calories are
identical.
Ha: All populations of calories are
identical.
H0: MedianMM =
MedianKK = MedianMW
Ha: MedianMM >
MedianKK > MedianMW
H0: MedianMM ≠
MedianKK ≠ MedianMW
Ha: MedianMM = MedianKK =
MedianMW
B) Find the value of the test statistic. (Round your answer to two decimal places.)
C) Find the p-value. (Round your answer to three decimal places.)
D) At a 0.05 level of significance, what is your conclusion?
Reject H0. There is sufficient evidence to conclude that there is a significant difference among the calorie content of these three candies.
Do not reject H0. There is sufficient evidence to conclude that there is a significant difference among the calorie content of these three candies.
Reject H0. There is not sufficient evidence to conclude that there is a significant difference among the calorie content of these three candies.
Do not reject H0. There is not sufficient evidence to conclude that there is a significant difference among the calorie content of these three candies.
To solve this :
Open Excel<Mega stat<Non parametric test< Kruskal- Wallis test:
The output is as follows:
| Kruskal-Wallis Test | ||||||
| Median | n | Avg. Rank | ||||
| 240.00 | 5 | 11.60 | M&M's | |||
| 225.00 | 5 | 9.20 | Kit Kat | |||
| 200.00 | 5 | 3.20 | Milky Way | |||
| 220.00 | 15 | Total | ||||
| 9.377 | H (corrected for ties) | |||||
| 2 | d.f. | |||||
| .0092 | p-value | |||||
| multiple comparison values for avg. ranks | ||||||
| 6.77 | (.05) | 8.30 | (.01) | |||
A) State the null and alternative hypotheses.
Ho: All population of calories are identical
Ha: not all population of calories are identical
B) Find the value of the test statistic.
Answer: 9.38
C) Find the p-value.
Answer: 0.009
D) At a 0.05 level of significance, what is your conclusion?
Since p-value is less than 0.05
0.009<α=0.05,reject Ho
Reject H0. There is sufficient evidence to conclude that there is a significant difference among the calorie content of these three candies.