Lably
Skip to content

Shapiro–Wilk test

Test of normality in frequentist statistics

  • 2 min read
  • 4 chapters

Related on Lably

Through Statistical hypothesis test, Sampling (statistics) and Normal distribution

Theory

The Shapiro–Wilk test tests the null hypothesis that a sample x1, ..., xn came from a normally distributed population. The test statistic is

W=(∑i=1naix(i))2∑i=1n(xi−x¯)2,

where

  • x(i) with parentheses enclosing the subscript index i is the ith order statistic, i.e., the ith-smallest number in the sample (not to be confused with xi).
  • x¯=(x1+⋯+xn)/n is the sample mean.

The coefficients ai are given by: (a1,…,an)=mTV−1C, where C is a vector norm: C=‖V−1m‖=(mTV−1V−1m)1/2 and the vector m, m=(m1,…,mn)T is made of the expected values of the order statistics of independent and identically distributed random variables sampled from the standard normal distribution; finally, V is the covariance matrix of those normal order statistics.

There is no name for the distribution of W. The cutoff values for the statistics are calculated through Monte Carlo simulations.

Sign in to keep reading

3 more chapters are free with a Lably account.

More in Statistics