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

1.) find the median of the two sample is combine 2.) conduct a median test to de

ID: 2908482 • Letter: 1

Question

1.) find the median of the two sample is combine

2.) conduct a median test to determine if there is a significance difference between these groups

3.) is there a significant difference between the two groups and level of aggression? if so, what is the level of significance?

4.) using the same data, conduct a Mann-Whitney U test of significance.

A standardized test is used to measure the aggression (ranging from o-300) of individuals from two groups. The following results were found: Group 1 104, 109, 127, 143, 187, 204, 209, 266, 277 Group 2 62, 82, 89, 90, 101, 106, 109, 109, 205

Explanation / Answer

1.) We solve this problem using R

the median of when two sample is combine

g1=c( 104, 109, 127, 143, 187, 204, 209, 266, 277)
g2=c(62, 82, 89, 90, 101, 106, 109, 109, 205)
g=c(g1,g2)
median(g)

[1] 109

2.) Kruskal-Wallis test to conduct a median test.

g1=c( 104, 109, 127, 143, 187, 204, 209, 266, 277)
g2=c(62, 82, 89, 90, 101, 106, 109, 109, 205)
g=c(g1,g2)
gv=c(rep("g1", length(g1)), rep("g2", length(g2)))

xx=data.frame(g, gv)
kruskal.test(g~gv, data=xx)

    Kruskal-Wallis rank sum test

data: g by gv
Kruskal-Wallis chi-squared = 7.2835, df = 1, p-value = 0.006959

there is a significance difference between these groups

3.) Yes, there is a significant difference between the two groups and level of aggression. The evel of significance is 0.01

4.) We can use Mann-Whitney U test OR Wilcoxon rank-sum test to compare medians.

wilcox.test(g1, g2)

        Wilcoxon rank sum test with continuity correction

data: g1 and g2
W = 71, p-value = 0.007941
alternative hypothesis: true location shift is not equal to 0
Yes, there is a significance difference between these groups.