How to calculate VIF in python 3.6 with scipy 1.0.0?



Hi there,

I am trying to import

from statsmodels.stats.outliers_influence import variance_inflation_factor

This is working fine upto Scipy 0.19.

But , with Python 3.6.3 ,it’s failing due to unavailability of ss module in Scipy 1.0.0.

~\Anaconda3\lib\site-packages\statsmodels\regression\ in <module>()
     41 from scipy.linalg import toeplitz
     42 from scipy import stats
---> 43 from scipy.stats.stats import ss
     44 from scipy import optimize
     45 from scipy.stats import chi2

ImportError: cannot import name 'ss'

Can anyone please guide me how to do VIF analysis using Scipy1.0.0 ?