Tuesday, October 7, 2025
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
32340 POSTS0 COMMENTS
Milvus
86 POSTS0 COMMENTS
Nango Kala
6708 POSTS0 COMMENTS
Nicole Veronica
11872 POSTS0 COMMENTS
Nokonwaba Nkukhwana
11936 POSTS0 COMMENTS
Shaida Kate Naidoo
6829 POSTS0 COMMENTS
Ted Musemwa
7090 POSTS0 COMMENTS
Thapelo Manthata
6780 POSTS0 COMMENTS
Umr Jansen
6784 POSTS0 COMMENTS