Wasserstein distance Wasserstein distance (also known as earth mover's distance: https://en.wikipedia.org/wiki/Wasserstein_metric). Python Jupyter notebook, discrete case. Needs Numpy, Matplotlib and Scipy.