Does anyone know of an algorithm for the weighted median that supports negative weights? #statistics
@mjantti No interpretation necessary. The goal is to find a global minimizer of the weighted sum of distances from the data. With negative weights, the function may no longer be convex, so I don't expect such an algorithm exists, but it would be nice if it does.
One place this comes up is in computing the weighted median of data on the circle. One can reframe the problem as one of computing the usual linear median but where some weights are negative.