Expected behavior
The robust mean estimating equation is incorrect.
Describe the bug
The np.clip utility occurs at the wrong place. The clip is called before the subtraction (not after). This is generally okay when mu=0 but not for more general cases. This problem only affects ee_mean_robust (i.e., it does not occur for ee_robust_regression.
Note: the documentation for this functions is correct. However, the formula does not correspond to the actual Huber's robust mean. I am transitioning over to Huber's definition of the robust mean
Expected behavior The robust mean estimating equation is incorrect.
Describe the bug The
np.clip
utility occurs at the wrong place. The clip is called before the subtraction (not after). This is generally okay when mu=0 but not for more general cases. This problem only affectsee_mean_robust
(i.e., it does not occur foree_robust_regression
.Relevant error output N/A
Versions: