statable Statistics for study and research

Goodness-of-fit tests: normal distribution (Lilliefors) and uniform distribution (χ²)

In brief

In "How is something distributed?" under the result: does the distribution fit an expectation? For number columns Statable tests the normal distribution with two tests (Shapiro-Wilk and Lilliefors), for columns with categories the χ² goodness-of-fit test against a uniform distribution or against own proportions fixed beforehand.

Normal distribution: Lilliefors

Categories: χ² goodness-of-fit test

Reporting the result

Lilliefors D = .241, p = .003; χ²(3, N = 556) = 0.47, p = .925

Example (Mendel's peas, 315 : 108 : 101 : 32 against 9 : 3 : 3 : 1): χ²(3, N = 556) = 0.47, p = .925. The data do not speak against the expected proportions; that does not show that the theory is right.

For specialists

Lilliefors: D = largest deviation of the empirical from the normal distribution function with the mean and SD (n − 1) of the data; p after the approximation of nortest::lillie.test (Dallal and Wilkinson 1986; Stephens), unchanged. For n > 100, D is converted to n = 100. PSPP NPAR TESTS /K-S(NORMAL) gives the same D but a p without correction (check in the test). Goodness of fit: Σ (O − E)²/E with k − 1 degrees of freedom, as R chisq.test(x, p, rescale.p = TRUE); PSPP NPAR TESTS /CHISQUARE gives the same numbers.

Sources

Lilliefors, H. W. (1967). On the Kolmogorov-Smirnov test for normality with mean and variance unknown. Journal of the American Statistical Association, 62, 399-402. Dallal, G. E. & Wilkinson, L. (1986). An analytic approximation to the distribution of Lilliefors's test statistic for normality. The American Statistician, 40, 294-296. Cochran, W. G. (1954). Some methods for strengthening the common χ² tests. Biometrics, 10, 417-451.

Related

Open in Statable