robust Huber fails to converge
Author: josef-pktCreated Oct 29, 2012Updated Sep 28, 2026
Labelscomp-robusttype-possible-bug
>>> yy2 = [150.4, 28.8, 46.6, 40.2, 46.5]
>>> rob.Huber()(yy2)
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new\statsmodels\statsmodels\robust\scale.py", line 146, in __call__
return self._estimate_both(a, scale, mu, axis, est_mu, n)
File "e:\josef\eclipsegworkspace\statsmodels-git\statsmodels-all-new\statsmodels\statsmodels\robust\scale.py", line 190, in _estimate_both
raise ValueError('joint estimation of location and scale failed to converge in %d iterations' % self.maxiter)
ValueError: joint estimation of location and scale failed to converge in 30 iterationspossible application: robust loc and scale estimation for outlier tests thread at https://groups.google.com/d/topic/pystatsmodels/nsz5xJqCHbg/discussion
Source: statsmodels/statsmodels