[Paper Review] Pearson Distance is not a Distance
This paper demonstrates that the widely used Pearson distance $1 - \rho_{xy}$ is not a metric because it violates the triangle inequality, undermining its validity for clustering applications. It proves that $\sqrt{1 - \rho_{xy}}$ is a metric and further shows that $\sqrt{1 - \rho_{xy}^2}$ is a metric, while $1 - |\rho_{xy}|$ is not, offering corrected alternatives for robust statistical clustering.
The Pearson distance between a pair of random variables $X,Y$ with correlation $ρ_{xy}$, namely, 1-$ρ_{xy}$, has gained widespread use, particularly for clustering, in areas such as gene expression analysis, brain imaging and cyber security. In all these applications it is implicitly assumed/required that the distance measures be metrics, thus satisfying the triangle inequality. We show however, that Pearson distance is not a metric. We go on to show that this can be repaired by recalling the result, (well known in other literature) that $\sqrt{1-ρ_{xy}}$ is a metric. We similarly show that a related measure of interest, $1-|ρ_{xy}|$, which is invariant to the sign of $ρ_{xy}$, is not a metric but that $\sqrt{1-ρ_{xy}^2}$ is. We also give generalizations of these results.
Motivation & Objective
- To establish that Pearson distance $1 - \rho_{xy}$ is not a metric, despite its widespread use in clustering applications.
- To demonstrate that $\sqrt{1 - \rho_{xy}}$ is a valid metric, correcting the flawed use of Pearson distance.
- To analyze the sign-invariant variant $1 - |\rho_{xy}|$ and show it fails the triangle inequality.
- To prove that $\sqrt{1 - \rho_{xy}^2}$ is a metric, providing a robust alternative for correlation-based dissimilarity.
- To provide a theoretical foundation using metric-preserving functions and positive semi-definite similarity matrices for broader applicability.
Proposed method
- Uses elementary counterexamples with zero-mean, unit-variance random variables to violate the triangle inequality for $1 - \rho_{xy}$ and $1 - |\rho_{xy}|$.
- Employs the identity $\sqrt{E[(X-Y)^2]} \leq \sqrt{E[(X-Z)^2]} + \sqrt{E[(Z-Y)^2]}$ to prove that $\sqrt{1 - \rho_{xy}}$ satisfies the triangle inequality.
- Applies the construction of independent random vectors $X_k, Y_k$ with correlation $\rho_{ij}^2$ to show $\sqrt{1 - \rho_{xy}^2}$ is a metric.
- Uses results from metric-preserving functions: strictly convex functions like $x^2$ fail to preserve metrics, while concave, increasing functions like $\sqrt{x}$ do.
- Applies Gower and Legendre’s (1986) result that $\sqrt{1 - s_{ij}}$ is a metric if the similarity matrix $[s_{ij}]$ is positive semi-definite.
- Analyzes the second derivative of $g(d) = 1 - \sqrt{1 - d^2}$ to show strict convexity, proving $1 - |\rho_{xy}|$ fails to be a metric.
Experimental results
Research questions
- RQ1Is the Pearson distance $1 - \rho_{xy}$ a valid metric for clustering applications?
- RQ2Does the transformation $\sqrt{1 - \rho_{xy}}$ satisfy the triangle inequality and thus qualify as a metric?
- RQ3Is the sign-invariant dissimilarity $1 - |\rho_{xy}|$ a metric, and if not, what modification restores the metric property?
- RQ4Does $\sqrt{1 - \rho_{xy}^2}$ satisfy the triangle inequality and serve as a robust alternative for correlation-based dissimilarity?
- RQ5What general principles from metric-preserving functions explain why certain transformations of correlation-based distances preserve or fail to preserve the metric property?
Key findings
- The Pearson distance $1 - \rho_{xy}$ violates the triangle inequality and is therefore not a metric, as demonstrated by explicit counterexamples with $\theta \in [0, \pi/4]$.
- The transformed distance $\sqrt{1 - \rho_{xy}}$ satisfies the triangle inequality and is proven to be a metric using the triangle inequality on squared differences of zero-mean, unit-variance random variables.
- The sign-invariant dissimilarity $1 - |\rho_{xy}|$ fails the triangle inequality, with violations confirmed for $\theta \in [\pi/6, \pi/4]$, indicating gross structural flaws.
- The distance $\sqrt{1 - \rho_{xy}^2}$ is a metric, proven via construction of independent random vectors with correlation $\rho_{ij}^2$ and application of Gower and Legendre’s result.
- The function $g(d) = 1 - \sqrt{1 - d^2}$ is strictly convex, confirming that $1 - |\rho_{xy}|$ cannot be a metric, as convex transformations of metrics do not preserve the metric property.
- The transformation $f(x) = \sqrt{x}$ applied to $\sqrt{1 - \rho_{xy}}$ yields $ (1 - \rho_{xy})^{1/4} $, which is a valid metric due to concavity and monotonicity of $f$.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.