You are on page 1of 1

SAMRIDH VIKHAS S | 20MIY0001 | MAT3011[ELA] | DA – 5

Objective:

To perform “Mann Whitney U Test” using R Programming

Null Hypothesis[H0]:

There is no significant difference between the samples

Alternative Hypothesis[H1]:

There is significant difference between the samples

Level of Significance = 5%

Code:
fb = c(25,28,32,30,27,29,26,31,24,28,
23,30,33,25,26,29,27,28,31,30)
insta = c(35,38,36,40,37,39,34,38,36,
35,37,39,38,40,36,35,38,37,39,34)
wilcox.test(fb,insta)

Output:
Wilcoxon rank sum test with continuity correction
data: fb and insta
W = 0, p-value = 6.412e-08
alternative hypothesis: true location shift is not equal to 0
Conclusion:

Since calculated p-value < 0.05, Do not Reject Null Hypothesis (H0). There is no significant difference
between the samples.

You might also like