In: Statistics and Probability
Native American (#1) [8.50, 9.48, 8.65 ]
Caucasian (#2) [8.27, 8.20, 8.25, 8.14]
alpha = 0.15
b. Test the difference between the two group means using a permutation test.
Using R language
install.packages("Stat5303libs")
library(Stat5303libs)
install.packages("cfcdae")
library(cfcdae)
install.packages("EnvStats")
library(EnvStats)
Native_American = c(8.50, 9.48, 8.65)
Caucasian= c(8.27, 8.20, 8.25, 8.14)
twoSamplePermutationTestLocation(Native_American,Caucasian)
p-value = 0.0282 < alpha
we reject the null hypothesis
there is significant difference