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: 3317928 • Letter: Q

Question

Q2: We are given two independent samples of sample sizes ni = 7, n2 = 10. The data is sumnnarized in the table below. Suppose is the population median of sample i. Perform a two-sided rank sum test using hypotheses Ho : 1-42 = 0 against Ha : 1-420, Use significance level = 0.05. Use the normal approximation method only. Verify your answer using the wilcox.test function. Do not use the continuity correction in either case. What method does wilcox.test() use when there are ties? V810 i 30.2 2. 7 Sample 1 31.7 20.9 23.2 30.2 34.4 31.0 26.9 Sample 2 35.0 40.8 39.8 30.2 40.9 32.7 38.9 35.3 35.238.9 37.1

Explanation / Answer

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
>