Description Usage Arguments Details Value Note Author(s) References See Also Examples
This test, based on the skewness
and the kurtosis
of the vector, computes the p-value associated to the normality of the distribution.
1 | jarquebera(x)
|
x |
numeric, vector of independent and identical random variables |
The Jarque-Bera test is based of the convergence, if the vector is i.i.d. normal random variables, of
skewness(x) -> N(0, 6) ; kurtosis(x) -> N(3, 24)
and moreover, both are asymptotically independent. Then, we have the statistic
J = (n/6)(S^2 + (K-3)^2/4) -> chi^2
The p-value associated to the test : 1-pchisq(J, 2)
.
If you choose a test of level alpha, then you reject the null hypothesis of a normal distribution if the p-value returned by the function is lower than alpha.
Nicolas Baradel - PGM Solutions
https://en.wikipedia.org/wiki/Jarque
http://pgm-solutions.com/packages
1 | jarquebera(rpgm.rnorm(10^5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.