Small Toy-Example of using the Kantorovich-Rubinstein duality of the Wasserstein-1 metric to estimate the distance between two 1D distributions. According to this duality, the Wasserstein-1 distance between two distributions P and Q is:
where the supremum is taken over all 1-Lipschitz functions. We estimate
To get an idea about the accuracy of our estimation, we can use the special formula for the
To evaluate this expression, we use simple numerical integration.