Exercise

Wilcoxon rank-sum test

In a previous exercise, you compared the sex ratio of European countries (Europe_Sex_ratio) with the sex ratio of Asian countries (Asia_Sex_ratio). These data are shown below.

Density plot of sex ratio per country for European vs Asian countries

You used a t-test to compare these two samples and found a significant difference (t_result). However, given that these samples are not normally distributed, a Wilcoxon rank-sum test would be more appropriate. Does the sex ratio differ between continents?

Instructions

100 XP
  • Print the result of the t-test comparing Asian and European sex ratios, which is saved as t_result.
  • Perform a Wilcoxon rank-sum test to compare Asian and European sex ratios and print the result.