5. (14 points) Suppose we are comparing samples X = (1, 2, 4, 6) and Y = (3, 5, 7, 8, 9, 10). We wish to test the hypoth
Posted: Thu May 05, 2022 9:14 pm
5. (14 points) Suppose we are comparing samples X = (1, 2, 4, 6) and Y = (3, 5, 7, 8, 9, 10). We wish to test the hypothesis that they come from the same distribution. (a) Analytically find the p-value of a two-sided Wilcoxon or Mann-Whitney test of the hypothesis. (Note: You must show how to calculate the p-value by hand, in order to receive full credit. You could use the R function to conduct the test and check your answer. But presenting R results only will receive 0 point.) (b) Find, either analytically or by simulation, the p-value of a permutation test of the hypothesis (i.e., a test with statistic X - Y). iid