A restaurant wondered if there was a difference in the number of refills of soda ordered by those aged 18-24 (age = 0) and those aged 13-17 (age = 1). Use the Mann-Whitney U-test to determine if the distribution of soda refills is significantly different for the two groups.
ID | Age Group | Sex | Number of Refills |
1 | 1 | 0 | 0 |
2 | 1 | 0 | 0 |
3 | 0 | 0 | 2 |
4 | 0 | 0 | 2 |
5 | 0 | 0 | 0 |
6 | 1 | 1 | 0 |
7 | 1 | 0 | 2 |
8 | 1 | 0 | 2 |
9 | 0 | 0 | 1 |
10 | 0 | 0 | 1 |
11 | 0 | 1 | 3 |
12 | 1 | 1 | 2 |
13 | 1 | 1 | 1 |
14 | 1 | 1 | 3 |
15 | 1 | 1 | 0 |
16 | 1 | 1 | 0 |
17 | 0 | 1 | 0 |
18 | 0 | 0 | 2 |
The null and alternative hypothesis is
H0: The distribution of soda refills is not significantly different for the two groups
H1: The distribution of soda refills is not significantly different for the two groups.
The value of Mann-Whitney U-test statistic is 32.000
The p-value is 0.454
Conclusion: The p-value of Mann-Whitney U-test is 0.454. This p-value is greater than 0.05. Hence we accept null hypothesis at 5% level of significance and conclude that the distribution of soda refills is not significantly different for the two groups.
Get Answers For Free
Most questions answered within 1 hours.