
Contents |
Given a set of observations
sorted into either ascending or descending order, the Shapiro Wilk W statistic is defined as:
where
is the sample mean and ai, for i=1, 2,...n are a set of mathematical weights, the values of which depend only on the sample size n.
The algorithm used by Origin is from the Applied Statistics Algorithm R94 described by Patrick Royston (1995). The function supports sample sizes of 3
Degree of freedom (DF) is equal to the sample size.
Origin calls a NAG function, nag_1_sample_ks_test (g08cbc), to compute the statistics. Please refer to related NAG document, for more details on the algorithm.
Lilliefors test is adapted from the Kolmogorov-Smirnov test, and the statistics is computed in the same way as that of Kolmogorov-Smirnov test. However, the p-value is different because Lilliefors test does not care about the mean score and variance of the data while Kolmogorov-Smirnov test does. Dallal and Wilkinson (1986) Method is used for p-value computation.
Given a set of observations
sorted into either ascending order, the Anderson Darling statistic is defined as
A2 = - n - S
where
F is the cumulative distribution function of the F distribution
from the data
can be computed with equation below
Given a set of observations
sorted into either ascending order, the Chen-Shapiro statistic is defined as
where
Hi = Φ - 1((i - 3 / 8) / (n + 1 / 4)) and Φ - 1 is the inverse of teh standard normal distribution