scipy - Pearson's Chi Square Test Python -


i have 2 arrays pearson's chi square test (goodness of fit). want test whether or not there significant difference between expected , observed results.

observed = [11294, 11830, 10820, 12875] expected = [10749, 10940, 10271, 11937] 

i want compare 11294 10749, 11830 10940, 10820 10271, etc.

here's have

>>> scipy.stats import chisquare >>> chisquare(f_obs=[11294, 11830, 10820, 12875],f_exp=[10749, 10940, 10271, 11937]) (203.08897607453906, 9.0718379533890424e-44) 

where 203 chi square test statistic , 9.07e-44 p value. i'm confused results. p-value = 9.07e-44 < 0.05 therefore reject null hypothesis , conclude there significant difference between observed , expected results. isn't correct because numbers close. how fix this?


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -