How do I do a F-test in python

后端 未结 4 1508
借酒劲吻你
借酒劲吻你 2020-12-23 17:17

How do I do an F-test to check if the variance is equivalent in two vectors in Python?

For example if I have

a = [1,2,1,2,1,2,1,2,1,2]
b = [1,3,-1,2         


        
4条回答
  •  萌比男神i
    2020-12-23 17:38

    For anyone who came here searching for an ANOVA F-test or to compare between models for feature selection

    • sklearn.feature_selection.f_classif does ANOVA tests, and
    • sklearn.feature_selection.f_regression does sequential testing of regressions

提交回复
热议问题