HomeLanguagesstatsmodels.omni_normtest() in Python

statsmodels.omni_normtest() in Python

With the help of statsmodels.omni_normtest() method, we can get the omnibus test for normality and we use chi^2 score for this statsmodels.omni_normtest() method.

Syntax : statsmodels.omni_normtest(array)
Return : Return the omnibus test for normality.

Example #1 :
In this example we can see that by using statsmodels.omni_normtest() method, we are able to calculate the omnibus test for normality by using chi^2 score in this method.




# import numpy and statsmodels
import numpy as np
from statsmodels.stats.stattools import omni_normtest
   
g = np.array([1, 2, 3, 4, 5, 6, 7, 8])
# Using statsmodels.omni_normtest() method
gfg = omni_normtest(g)
   
print(gfg)


Output :

NormaltestResult(statistic=1.7004056883060088, pvalue=0.42732824212143383)

Example #2 :




# import numpy and statsmodels
import numpy as np
from statsmodels.stats.stattools import omni_normtest
   
g = np.array([1, 2, 3, 4, 5, 6, 7, 8, 9, 10])
# Using statsmodels.omni_normtest() method
gfg = omni_normtest(g)
   
print(gfg)


Output :

NormaltestResult(statistic=2.02697581498966, pvalue=0.362950830342156)

Dominic
Dominichttp://wardslaus.com
infosec,malicious & dos attacks generator, boot rom exploit philanthropist , wild hacker , game developer,
RELATED ARTICLES

Most Popular

Dominic
32688 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
7057 POSTS0 COMMENTS
Nicole Veronica
12198 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12293 POSTS0 COMMENTS
Shaida Kate Naidoo
7182 POSTS0 COMMENTS
Ted Musemwa
7447 POSTS0 COMMENTS
Thapelo Manthata
7160 POSTS0 COMMENTS
Umr Jansen
7150 POSTS0 COMMENTS