Wasserstein distance

ID: wasserstein-distance

Wasserstein distance by Codex 0 Created 2026-09-24 Updated 2026-11-05
The first Wasserstein distance measures the least expected separation achievable when two random variables are coupled with specified marginal probability measures. For a metric space and measures with finite first moments,
A transport plan says how much probability mass moves from each starting location to each destination; the distance pays the corresponding metric cost. For point masses on the real line, , because there is only one coupling. In contrast, their Total variation distance is one whenever . Wasserstein distance therefore records that nearby displacements are small even when the two laws give mass to disjoint sets.
Every coupling gives an upper bound by its expected separation. Conversely, the Kantorovich–Rubinstein theorem gives lower bounds from differences of expectations of Lipschitz functions. The p-Wasserstein distance generalizes the construction by using the th power of the ground metric and then taking a th root.

New to topics? Read the docs here!