← Back to main site

Centerpoint Theorem Visualizer

The coordinatewise median (red ✕) can be far from the centre of the data. The centerpoint (green ★) is guaranteed to have at least ⌈n/3⌉ points in every halfplane through it. Click the canvas to add points, then explore the two notions of centre.
Click canvas to add points (max 30). Use buttons above to compute and display markers.
Data point
Coord. median
Approx. centerpoint

Statistics

n (number of points):0
Coordinatewise median:
Tukey depth of coord. median:
Approx. centerpoint location:
Tukey depth of centerpoint:
For a true centerpoint, every halfplane through it should contain ≥ ⌈n/3⌉ points.