[R code]
a7 <- c(82, 74, 87, 86, 75)
b7 <- c(88, 77, 91, 88, 94, 93, 83, 94)
At a significant level of 0.05, is there a difference in the
distribution of the two groups? Use the Smirnov Test method to
test. Thank you :)
Solution: The hypothesis is to be tested as
H0: There is no difference in distribution of two groups V/s
H1: There is a difference in distribution of two groups
Here be the level of significance.
R-output:
> a7 <- c(82, 74, 87, 86, 75)
> b7 <- c(88, 77, 91, 88, 94, 93, 83, 94)
> ks.test(a7,b7,alternative = c("two.sided"),exact = NULL)
Two-sample Kolmogorov-Smirnov test
data: a7 and b7
D = 0.75, p-value = 0.06276
alternative hypothesis: two-sided
Decision Rule:
Here p-value=0.06276 > 0.05.
So we accept H0 at 5% level of significance.
Conclusion: There is no difference in distribution of two groups.
Get Answers For Free
Most questions answered within 1 hours.