Comparing Histograms

Minkowski-form distance

$$D(X, Y) = (\sum_{i}|X_{i} - Y_{i}|^{p})^{1/p}$$

Cosine distance

$$d = 1- \frac{u\cdot v}{\|u\|\|v\|} = 1 - \frac{\sum_{i=1}^{n}A_{i}B_{i}}{\sqrt{\sum_{i=1}^{n}A_{i}^{2}}\sqrt{\sum_{i=1}^{n}B_{i}^{2}}}$$

Correlation distance

$$d = 1- \frac{(u-\bar{u})(v-\bar{v})}{\|u-\bar{u}\|_{2}\|v-\bar{v}\|_{2}}$$

Chebyshev distance

$$d = max_{i}|u_{i} - v_{i}|$$

Mahalanobis distance

$$\sqrt{(u-v)(C^{-1})(u-v)^{T}}$$

Kolmogorov-Smirnov distance (K-S)

Mutual information

Earth Mover's distance

Reference