Skip to content
Prev 12082 / 398502 Next

Shapiro-Wilk test

can
Even though the expected probability content between any two consecutive
order statistics is 1/(n+1), the *expected* values of the order statistics
themselves are not the percentiles.  You can get a more "normal" looking
sample by choosing one where the values are the normal scores.
qnorm(ppoints(n)) gives a pretty good approximation to these:
Shapiro-Wilk normality test

data:  qnorm(1:9/10) 
W = 0.9925, p-value = 0.9986
Shapiro-Wilk normality test

data:  qnorm(ppoints(9)) 
W = 0.9965, p-value = 1
So the Shapiro-Wilk test is really a check to see if the order statistics
depart significantly from *their* expectation under the normality
hypothesis.
The two tests are testing slightly different aspects of normality.  (At
least that's my guess...)
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.
-.-
http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._.
_._
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._