Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Q2: We are given two independent samples of sample sizes ni = 7, n2 = 10. The da

ID: 3323943 • Letter: Q

Question

Q2: We are given two independent samples of sample sizes ni = 7, n2 = 10. The data is su in the table below. Suppose ' s the population median of sample i Perforin a two-sided rank sun test using hypotheses Ho : 1-42 = 0 against Ha : 1-7420. Use significance level a = 0.05. Use the normal approximation method only. Verify your answer using the wilcox.test) function. Do not use the continuity correctionin either case. What ethod does wilcox.test mnarized use when there are ties? 1 23 45 6 7 89 10 X, 30.2 Sample 2 35.0 40.8 39.8 30.2 40.9 32.7 38.9 35.3 35.2 38.9 37.1 Sample 31.7 20.9 23.2 30.2 34.4 31.0 26.9

Explanation / Answer

Solution:-

yes wilcox .test() doesnot use when there is ties

> s1=c(31.7,20.9,23.2,30.2,34.4,31,26.9)
> s2=c(35.0,40.8,39.8,30.2,40.9,32.7,38.9,35.3,35.2,38.9)
> wilcox.test(s1,s2)

Wilcoxon rank sum test with continuity correction

data: s1 and s2
W = 4.5, p-value = 0.003376
alternative hypothesis: true location shift is not equal to 0

Warning message:
In wilcox.test.default(s1, s2) : cannot compute exact p-value with ties
>