Sunday, July 26, 2026
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
32520 POSTS0 COMMENTS
Milvus
131 POSTS0 COMMENTS
Nango Kala
6903 POSTS0 COMMENTS
Nicole Veronica
12017 POSTS0 COMMENTS
Nokonwaba Nkukhwana
12115 POSTS0 COMMENTS
Shaida Kate Naidoo
7023 POSTS0 COMMENTS
Ted Musemwa
7265 POSTS0 COMMENTS
Thapelo Manthata
6980 POSTS0 COMMENTS
Umr Jansen
6972 POSTS0 COMMENTS