- Shapiro-Wilk test
In
statistics , the Shapiro-Wilk test tests thenull hypothesis that a sample "x"1, ..., "x""n" came from a normally distributed population. It was published in 1965 by Samuel Shapiro andMartin Wilk .The
test statistic is:
where
* "x"("i") (with parentheses enclosing the subscript index "i") is the "i"th
order statistic , i.e., the "i"th-smallest number in the sample;
* is the sample mean;
* the constants "a""i" are given by::
:where
::
:and "m"1, ..., "m""n" are the
expected value s of theorder statistic s ofindependent and identically-distributed random variables sampled from the standard normal distribution, and "V" is thecovariance matrix of those order statistics.The user may reject the null hypothesis if "W" is too small.
ee also
*
Anderson-Darling test
*Kolmogorov-Smirnov test
* Smirnov-Cramér-von-Mises testReferences
* Shapiro, S. S. and Wilk, M. B. (1965). "An analysis of variance test for normality (complete samples)", "Biometrika", 52, 3 and 4, pages 591-611. [http://www.jstor.org/view/00063444/di992333/99p0027o/0]
* [http://lib.stat.cmu.edu/apstat/R94 Algorithm AS R94 (Shapiro Wilk) FORTRAN code]
* [http://cran.us.r-project.org/doc/manuals/R-intro.html#Examining-the-distribution-of-a-set-of-data Shapiro-Wilk Normality Test in CRAN]
* [http://cran.us.r-project.org/sources.html C code in CRAN (look for swilk.c)]
External links
* [http://www.analyse-it.com/blog/2008/8/testing-the-assumption-of-normality.aspx Testing the assumption of normality] .
Wikimedia Foundation. 2010.