ArticleslgStudy

mathematics

Wasserstein metric

Wasserstein metric is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Wasserstein metric rather than just read about it. In short: In mathematics, the Wasserstein distance or Kantorovich–Rubinstein metric is a distance function defined between probability distributions on a given metric space M {\displaystyle M} . It is named after Leonid Vaseršteĭn.

Wasserstein metric — main illustration
Wasserstein metric — illustration

Key takeaways

  • Wasserstein metric belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Wasserstein metric to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Wasserstein metric from memory before moving on to harder problems.

Reference excerpt

In mathematics, the Wasserstein distance or Kantorovich–Rubinstein metric is a distance function defined between probability distributions on a given metric space M {\displaystyle M} . It is named after Leonid Vaseršteĭn. Intuitively, if each distribution is viewed as a unit amount of earth (soil) piled on M {\displaystyle M} , the metric is the minimum "cost" of turning one pile into the other, which is assumed to be the amount of earth that needs to be moved times the mean distance it has to be moved. This problem was first formalised by Gaspard Monge in 1781. Because of this analogy, the metric is known in computer science as the earth mover's distance.

Definition Let ( M , d ) {\displaystyle (M,d)} be a metric space that is a Polish space. For p ∈ [ 1 , + ∞ ] {\displaystyle p\in [1,+\infty ]} , the Wasserstein p {\displaystyle p} -distance between two probability measures μ {\displaystyle \mu } and ν {\displaystyle \nu } on M {\displaystyle M} with finite p {\displaystyle p} -moments is

W p ( μ , ν ) = inf γ ∈ Γ ( μ , ν ) ( E ( x , y ) ∼ γ d ( x , y ) p ) 1 p , {\displaystyle W_{p}(\mu ,\nu )=\inf _{\gamma \in \Gamma (\mu ,\nu )}\left(\mathbf {E} _{(x,y)\sim \gamma }d(x,y)^{p}\right)^{\frac {1}{p}},}

where Γ ( μ , ν ) {\displaystyle \Gamma (\mu ,\nu )} is the set of all couplings of μ {\displaystyle \mu } and ν {\displaystyle \nu } ; W ∞ ( μ , ν ) {\displaystyle W_{\infty }(\mu ,\nu )} is defined to be

lim p → + ∞ W p ( μ , ν ) {\displaystyle \lim _{p\rightarrow +\infty }W_{p}(\mu ,\nu )}

and corresponds to a supremum norm. Here, a coupling γ {\displaystyle \gamma } is a joint probability measure on M × M {\displaystyle M\times M} whose marginals are μ {\displaystyle \mu } and ν {\displaystyle \nu } on the first and second factors, respectively. This means that for all measurable A ⊂ M {\displaystyle A\subset M} , it fulfills

γ ( A × M ) = μ ( A ) {\displaystyle \gamma (A\times M)=\mu (A)} and

γ ( M × A ) = ν ( A ) {\displaystyle \gamma (M\times A)=\nu (A)} . The case of p = ∞ {\displaystyle p=\infty } is special: W ∞ ( μ , ν ) = lim p → + ∞ W p ( μ , ν ) = inf γ ∈ Γ ( μ , ν ) γ - e s s u p ⁡ d ( x , y ) , {\displaystyle W_{\infty }(\mu ,\nu )=\lim _{p\rightarrow +\infty }W_{p}(\mu ,\nu )=\inf _{\gamma \in \Gamma (\mu ,\nu )}\gamma \operatorname {-essup} d(x,y),} where γ - e s s u p ⁡ d ( x , y ) {\displaystyle \gamma \operatorname {-essup} d(x,y)} denotes the essential supremum of d ( x , y ) {\displaystyle d(x,y)} with respect to measure γ {\displaystyle \gamma } . The metric space (P∞(M), W∞) is complete if (M, d) is separable and complete. Here, P∞ is the space of all probability measures with bounded support.

… excerpt ends here. Continue reading the full article.

Illustrations

Wasserstein metric: Infimal convolution of a cone with a curve. Note how the lower envelope has slope 
  
    
      
        ≤
        1
      
    
    {\displaystyle \leq 1}
  
, and how the lower envelope is equal to the curve on the parts where the curve itself has slope 
  
    
      
        ≤
        1
      
    
    {\displaystyle \leq 1}
  
.
Infimal convolution of a cone with a curve. Note how the lower envelope has slope ≤ 1 {\displaystyle \leq 1} , and how the lower envelope is equal to the curve on the parts where the curve itself has slope ≤ 1 {\displaystyle \leq 1} .
Wasserstein metric: Let 
  
    
      
        μ
      
    
    {\displaystyle \mu }
  
 be the uniform distribution on the line segment 
  
    
      
        (
        0
        ,
        0
        )
        →
        (
        0
        ,
        1
        )
      
    
    {\displaystyle (0,0)\to (0,1)}
  
, and 
  
    
      
        ν
      
    
    {\displaystyle \nu }
  
 have two parts: half on a point mass at 
  
    
      
        (
        1
        ,
        0
        )
      
    
    {\displaystyle (1,0)}
  
, and half uniform on the line segment 
  
    
      
        (
        −
        1
        ,
        0
        )
        →
        (
        −
        1
        ,
        2
        )
      
    
    {\displaystyle (-1,0)\to (-1,2)}
  
. The contours of the Kantorovich potential field is plotted.
Let μ {\displaystyle \mu } be the uniform distribution on the line segment ( 0 , 0 ) → ( 0 , 1 ) {\displaystyle (0,0)\to (0,1)} , and ν {\displaystyle \nu } have two parts: half on a point mass at ( 1 , 0 ) {\displaystyle (1,0)} , and half uniform on the line segment ( − 1 , 0 ) → ( − 1 , 2 ) {\displaystyle (-1,0)\to (-1,2)} . The contours of the Kantorovich potential field is plotted.
Wasserstein metric: The standard contact structure on 
  
    
      
        
          
            R
          
          
            3
          
        
      
    
    {\displaystyle \mathbb {R} ^{3}}
  
.
The standard contact structure on R 3 {\displaystyle \mathbb {R} ^{3}} .

Worked examples

Example 1 — a first encounter with Wasserstein metric

Start with the simplest possible case. Write down what Wasserstein metric claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Wasserstein metric before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Wasserstein metric ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Wasserstein metric

In research
Wasserstein metric appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Wasserstein metric in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Wasserstein metric is common in secondary-school and first-year university syllabi. It links to neighbouring topics Measure theory, Metric geometry, Statistical distance, so understanding it makes those chapters shorter.
In everyday life
Look for Wasserstein metric outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Wasserstein metric” →

Affiliate

Preply — study more efficiently by working with a personal tutor. 50% off.

How to study Wasserstein metric in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Wasserstein metric means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Wasserstein metric out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Wasserstein metric in simple terms?

In mathematics, the Wasserstein distance or Kantorovich–Rubinstein metric is a distance function defined between probability distributions on a given metric space M {\displaystyle M} . It is named after Leonid Vaseršteĭn.

Why does Wasserstein metric matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Wasserstein metric?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Wasserstein metric.

Tags

  • Measure theory
  • Metric geometry
  • Statistical distance
  • Theory of probability distributions

Keep exploring