Vanderbei’s applications · Princeton University

Median

Compare the centroid, coordinatewise median, and Weiszfeld estimates for the same sample of points. Step through the iterations to see how the total distance changes.

Compare estimates

Loading Python…
  • Sample point
  • Centroid
  • Coordinate median
  • Weiszfeld estimate
Centroid distance
—
Coordinate median distance
—
Weiszfeld distance
—
Sample parameters
—

Distance is the sum of straight-line distances from an estimate to all sample points.

Loading the Python engine…