lundi 5 octobre 2020

Two different samples with the same result in the Shapiro Wilk test. R Software

Two different samples generated with the rnorm function produce the same result in the Shapiro Wilk test. I would greatly appreciate an explanation of my error.

set.seed(18102003)
x=rnorm(n=6,mean=1.29,sd=1.29*0.33)
x
[1] 2.0989973 1.5440310 0.8401053 1.3630999 1.3274229 1.9812853
shapiro.test(x)

    Shapiro-Wilk normality test

data: x
W = 0.94929, p-value = 0.7345

set.seed(18102003)
x=rnorm(6,2.97,2.97*0.49)
x
[1] 5.735642 3.838432 1.431988 3.219900 3.097934 5.333231
shapiro.test(x)

    Shapiro-Wilk normality test

data: x
W = 0.94929, p-value = 0.7345




Aucun commentaire:

Enregistrer un commentaire