Statistical Methods
Find the Points Responsible for a Worst-Case Set Discrepancy
Define the task
Two point sets must share a coordinate system and units before their discrepancy is meaningful. For each point in A, find its nearest point in B, then take the largest of those nearest distances. That is the directed Hausdorff distance from A to B. Repeat in the opposite direction and take the larger result for the symmetric distance. These are point-set calculations, not automatically distances between continuous surfaces.
Carry out the check
Inspect the witness points responsible for the maximum and check whether they reflect real disagreement, an outlier or uneven sampling. Report both directions when they differ. Reordering points or repeating an existing point should not change the distance, although tied witness indices can change. The browser tool uses exhaustive Euclidean comparisons. It does not register the sets, interpolate boundaries, calculate a percentile variant or define a clinically acceptable threshold.
Worked hypothetical example
Hypothetical example: A={(0,0),(1,0)} and B={(0,0),(3,0)}. From A to B, nearest distances are 0 and 1, giving 1. From B to A they are 0 and 2, giving 2. The symmetric distance is therefore 2. The reverse-direction witness is B's (3,0) against A's (1,0). Reporting only the first direction would hide the larger discrepancy.
Method checked 23 November 2026 against Primary method documentation: directed_hausdorff.