Talk:D'Agostino's K-squared test
|WikiProject Statistics||(Rated B-class, Low-importance)|
The early notation needs to be changed so that it distinguishes properly between μ for population values and m for sample values, similarly for σ. Also what version of the sample variance is to be used? 188.8.131.52 (talk) 10:28, 10 September 2008 (UTC)
I'm a little confused about the test statistic. I've applied this test to a vector of random numbers, generated by MathCAD as being normally distributed. Assuming my algebra is correct I reject the nul hypothesis if I compare K^2 against the Chi^2 distribution (95% significance with 2 degrees of freedom). This obviously troubles me. I fail to reject the nul hypothesis (quite convincingly, P value 0.77) if I compare K against the the Chi^2 distribution.
I have K^2=8.7 (K=2.95), Critical value(0.95,2)=5.991 - so it's an unlikely event.
- I just ran this test, for a sample of size n = 100 the test statistic K² has mean of 2.014 and standard deviation of 2.261 (versus theoretical 2.0 and 2.0) over B = 100,000 simulations. For a sample size n = 1000 i obtained mean = 1.995 and standard deviation = 2.023 (with 10,000 simulations). So you either made an error in coding, or got very unlucky. … stpasha » 00:41, 20 December 2009 (UTC)
- An online paper at http://eric.ed.gov/ERICDocs/data/ericdocs2sql/content_storage_01/0000019b/80/15/b6/00.pdf may serve to validate your results. Melcombe (talk) 12:10, 21 December 2009 (UTC)