Measuring the difference between two empirical distributions