encyclopegia.org

Distance correlation

In statistics and in probability theory, distance correlation is a measure of dependence between two paired random vectors of arbitrary, not necessarily equal, dimension.[src] The population distance correlation coefficient is zero if and only if the random vectors are independent.[src] Thus, distance correlation measures both linear and nonlinear association between two random variables or random vectors.[src] This is in contrast to Pearson's correlation, which can only detect linear association between two random variables.[src] Distance correlation can be used to perform a statistical test of dependence with a permutation test.[src] One first computes the distance correlation (involving the re-centering of Euclidean distance matrices) between two random vectors, and then compares this value to the distance correlations of many shuffles of the data.[src]

In statistics and in probability theory, distance correlation is a measure of dependence between two paired random vectors of arbitrary, not necessarily equal, dimension.[src] The population distance correlation coefficient is zero if and only if the random vectors are independent.[src] Thus, distance correlation measures both linear and nonlinear association between two random variables or random vectors.[src] This is in contrast to Pearson's correlation, which can only detect linear association between two random variables.[src] Distance correlation can be used to perform a statistical test of dependence with a permutation test.[src] One first computes the distance correlation (involving the re-centering of Euclidean distance matrices) between two random vectors, and then compares this value to the distance correlations of many shuffles of the data.[src] ]] ==Background== The classical measure of dependence, the Pearson correlation coefficient, is mainly sensitive to a linear relationship between two variables.[src] Distance correlation was introduced in 2005 by Gábor J.[src] Székely in several lectures to address this deficiency of Pearson's correlation, namely that it can easily be zero for dependent variables.[src] Correlation = 0 (uncorrelatedness) does not imply independence while distance correlation = 0 does imply independence.[src] The first results on distance correlation were published in 2007 and 2009.[src] It was proved that distance covariance is the same as the Brownian covariance.[src] These measures are examples of energy distances.[src] The distance correlation is derived from a number of other quantities that are used in its specification, specifically: distance variance, distance standard deviation, and distance covariance.[src] These quantities take the same roles as the ordinary moments with corresponding names in the specification of the Pearson product-moment correlation coefficient.[src] ==Definitions== ===Distance covariance=== Let us start with the definition of the sample distance covariance.[src] Let (X k , Y k ), k = 1, 2, ..., n be a statistical sample from a pair of real valued or vector valued random variables (X, Y).[src] First, compute the n by n distance matrices (a j, k ) and (b j, k ) containing all pairwise distances \begin{align} a_{j, k} &= \|X_j-X_k\|, \qquad j, k =1,2,\ldots,n, \\ b_{j, k} &= \|Y_j-Y_k\|, \qquad j, k=1,2,\ldots,n, \end{align} where ||⋅ ||denotes Euclidean norm.[src] Then take all doubly centered distances A_{j, k} := a_{j, k}-\overline{a}_{j\cdot}-\overline{a}_{\cdot k} + \overline{a}_{\cdot\cdot}, \qquad B_{j, k} := b_{j, k} - \overline{b}_{j\cdot} -\overline{b}_{\cdot k} + \overline{b}_{\cdot\cdot}, where \textstyle \overline{a}_{j\cdot} is the -th row mean, \textstyle \overline{a}_{\cdot k} is the -th column mean, and \textstyle \overline{a}_{\cdot\cdot} is the grand mean of the distance matrix of the sample.[src] The notation is similar for the values.[src] (In the matrices of centered distances (A j, k ) and (B j,k ) all rows and all columns sum to zero.) The squared sample distance covariance (a scalar) is simply the arithmetic average of the products A j, k B j, k : \operatorname{dCov}^2_n(X,Y) := \frac 1 {n^2} \sum_{j = 1}^n \sum_{k = 1}^n A_{j, k} \, B_{j, k}.[src] The statistic T n = n dCov 2 n (X, Y) determines a consistent multivariate test of independence of random vectors in arbitrary dimensions.[src] For an implementation see dcov.test function in the energy package for R.[src] The population value of distance covariance can be defined along the same lines.[src] Let X be a random variable that takes values in a p-dimensional Euclidean space with probability distribution and let Y be a random variable that takes values in a q-dimensional Euclidean space with probability distribution , and suppose that X and Y have finite expectations.[src] Write a_\mu(x):= \operatorname{E}[\|X-x\|], \quad D(\mu) := \operatorname{E}[a_\mu(X)], \quad d_\mu(x, x') := \|x-x'\|-a_\mu(x)-a_\mu(x')+D(\mu).[src] Finally, define the population value of squared distance covariance of X and Y as \operatorname{dCov}^2(X, Y) := \operatorname{E}\big[d_\mu(X,X')d_\nu(Y,Y')\big].[src] One can show that this is equivalent to the following definition: \begin{align} \operatorname{dCov}^2(X,Y) := {} & \operatorname{E}[\|X-X'\|\,\|Y-Y'\|] + \operatorname{E}[\|X-X'\|]\,\operatorname{E}[\|Y-Y'\|] \\ &\qquad {} - \operatorname{E}[\|X-X'\|\,\|Y-Y\|] - \operatorname{E}[\|X-X\|\,\|Y-Y'\|] \\ \operatorname{dCov}^2(X,Y)= \frac 1 {c_p c_q} \int_{\mathbb{R}^{p+q}} \frac{\left|\varphi_{X,Y}(s, t) - \varphi_X(s)\varphi_Y(t) \right|^2}{|s|_p^{1+p} |t|_q^{1+q}} \,dt\,ds where \varphi_{X,Y}(s,t) , \varphi_{X}(s) , and \varphi_{Y}(t) are the characteristic functions of X, and Y, respectively, p, q denote the Euclidean dimension of X and Y, and thus of s and t, and c p , c q are constants.[src] The weight function ({c_p c_q}{|s|_p^{1+p} |t|_q^{1+q}})^{-1} is chosen to produce a scale equivariant and rotation invariant measure that doesn't go to zero for dependent variables.[src] One interpretation of the characteristic function definition is that the variables e isX and e itY are cyclic representations of X and Y with different periods given by s and t, and the expression in the numerator of the characteristic function definition of distance covariance is simply the classical covariance of e isX and e itY .[src] The characteristic function definition clearly shows that dCov 2 (X, Y) = 0 if and only if X and Y are independent.[src] ===Distance variance and distance standard deviation=== The distance variance is a special case of distance covariance when the two variables are identical.[src] The population value of distance variance is the square root of \operatorname{dVar}^2(X) := \operatorname{E}[\|X-X'\|^2] + \operatorname{E}^2[\|X-X'\|] - 2\operatorname{E}[\|X-X'\|\,\|X-X\|], where X , X' , and X are independent and identically distributed random variables, \operatorname{E} denotes the expected value, and f^2(\cdot)=(f(\cdot))^2 for function f(\cdot) , e.g., \operatorname{E}^2[\cdot] = (\operatorname{E}[\cdot])^2 .[src] The sample distance variance is the square root of \operatorname{dVar}^2_n(X) := \operatorname{dCov}^2_n(X,X) = \tfrac{1}{n^2}\sum_{k,\ell}A_{k,\ell}^2, which is a relative of Corrado Gini's mean difference introduced in 1912 (but Gini did not work with centered distances).[src] The distance standard deviation is the square root of the distance variance.[src] ===Distance correlation=== The distance correlation of two random variables is obtained by dividing their distance covariance by the product of their distance standard deviations.[src] The distance correlation is the square root of \operatorname{dCor}^2(X,Y) = \frac{\operatorname{dCov}^2(X,Y)}{\sqrt{\operatorname{dVar}^2(X)\,\operatorname{dVar}^2(Y)}}, and the sample distance correlation is defined by substituting the sample distance covariance and distance variances for the population coefficients above.[src] For easy computation of sample distance correlation see the dcor function in the energy package for R.[src] ==Properties== ===Distance correlation=== ===Distance covariance=== This last property is the most important effect of working with centered distances.[src] The statistic \operatorname{dCov}^2_n(X,Y) is a biased estimator of \operatorname{dCov}^2(X,Y) .[src] Under independence of X and Y \begin{align} \operatorname{E}[\operatorname{dCov}^2_n(X,Y)] & = \frac{n-1}{n^2} \left\{(n-2) \operatorname{dCov}^2(X,Y)+ \operatorname{E}[\|X-X'\|]\,\operatorname{E}[\|Y-Y'\|] \right\} \\[6pt] & = \frac{n-1}{n^2}\operatorname {E}[\|X-X'\|]\,\operatorname{E}[\|Y-Y'\|].[src] \end{align} An unbiased estimator of \operatorname{dCov}^2(X,Y) is given by Székely and Rizzo.[src] ===Distance variance=== Equality holds in (iv) if and only if one of the random variables or is a constant.[src] ==Generalization== Distance covariance can be generalized to include powers of Euclidean distance.[src] Define \begin{align} \operatorname{dCov}^2(X, Y; \alpha) := {} & \operatorname{E}[\|X-X'\|^\alpha\,\|Y-Y'\|^\alpha] + \operatorname{E}[\|X-X'\|^\alpha]\,\operatorname{E}[\|Y-Y'\|^\alpha]\\ &\qquad {} - 2\operatorname{E}[\|X-X'\|^\alpha\,\|Y-Y\|^\alpha].[src] \end{align} Then for every 0 , X and Y are independent if and only if \operatorname{dCov}^2(X, Y; \alpha) = 0 .[src] This characterization does not hold for exponent \alpha=2 ; in this case for bivariate (X, Y) , \operatorname{dCor}(X, Y; \alpha=2) is a deterministic function of the Pearson correlation.[src] If a_{k,\ell} and b_{k,\ell} are \alpha powers of the corresponding distances, 0 , then \alpha sample distance covariance can be defined as the nonnegative number for which \operatorname{dCov}^2_n(X, Y; \alpha):= \frac{1}{n^2}\sum_{k,\ell}A_{k,\ell}\,B_{k,\ell}.[src] One can extend \operatorname{dCov} to metric-space-valued random variables X and Y : If X has law \mu in a metric space with metric d , then define a_\mu(x):= \operatorname{E}[d(X, x)] , D(\mu) := \operatorname{E}[a_\mu(X)] , and (provided a_\mu is finite, i.e., X has finite first moment), d_\mu(x, x') := d(x, x')-a_\mu(x)-a_\mu(x')+D(\mu) .[src] Then if Y has law \nu (in a possibly different metric space with finite first moment), define \operatorname{dCov}^2(X, Y) := \operatorname{E}\big[d_\mu(X,X')d_\nu(Y,Y')\big].[src] This is non-negative for all such X, Y iff both metric spaces have negative type.[src] Here, a metric space (M, d) has negative type if (M, d^{1/2}) is isometric to a subset of a Hilbert space.[src] If both metric spaces have strong negative type, then \operatorname{dCov}^2(X, Y)= 0 iff X, Y are independent.[src] ==Alternative definition of distance covariance== The original distance covariance has been defined as the square root of \operatorname{dCov}^2(X,Y) , rather than the squared coefficient itself.[src] \operatorname{dCov}(X,Y) has the property that it is the energy distance between the joint distribution of \operatorname X, Y and the product of its marginals.[src] Under this definition, however, the distance variance, rather than the distance standard deviation, is measured in the same units as the \operatorname X distances.[src] Alternately, one could define distance covariance to be the square of the energy distance: \operatorname{dCov}^2(X,Y).[src] In this case, the distance standard deviation of X is measured in the same units as X distance, and there exists an unbiased estimator for the population distance covariance.[src] Under these alternate definitions, the distance correlation is also defined as the square \operatorname{dCor}^2(X,Y) , rather than the square root.[src] ==Alternative formulation: Brownian covariance== Brownian covariance is motivated by generalization of the notion of covariance to stochastic processes.[src] The square of the covariance of random variables X and Y can be written in the following form: \operatorname{cov}(X,Y)^2 = \operatorname{E}\left[ \big(X - \operatorname{E}(X)\big) \big(X^\mathrm{'} - \operatorname{E}(X^\mathrm{'})\big) \big(Y - \operatorname{E}(Y)\big) \big(Y^\mathrm{'} - \operatorname{E}(Y^\mathrm{'})\big) \right] where E denotes the expected value and the prime denotes independent and identically distributed copies.[src] We need the following generalization of this formula.[src] If U(s), V(t) are arbitrary random processes defined for all real s and t then define the U-centered version of X by X_U := U(X) - \operatorname{E}_X\left[ U(X) \mid \left \{ U(t) \right \} \right] whenever the subtracted conditional expected value exists and denote by Y V the V-centered version of Y.[src] The (U,V) covariance of (X,Y) is defined as the nonnegative number whose square is \operatorname{cov}_{U,V}^2(X,Y) := \operatorname{E}\left[X_U X_U^\mathrm{'} Y_V Y_V^\mathrm{'}\right] whenever the right-hand side is nonnegative and finite.[src] The most important example is when U and V are two-sided independent Brownian motions /Wiener processes with expectation zero and covariance (for nonnegative s, t only).[src] (This is twice the covariance of the standard Wiener process; here the factor 2 simplifies the computations.) In this case the (U,V) covariance is called Brownian covariance and is denoted by \operatorname{cov}_W(X,Y).[src] There is a surprising coincidence: The Brownian covariance is the same as the distance covariance: \operatorname{cov}_{\mathrm{W}}(X, Y) = \operatorname{dCov}(X, Y), and thus Brownian correlation is the same as distance correlation.[src] On the other hand, if we replace the Brownian motion with the deterministic identity function id then Cov id (X,Y) is simply the absolute value of the classical Pearson covariance, \operatorname{cov}_{\mathrm{id}}(X,Y) = \left\vert\operatorname{cov}(X,Y)\right\vert.[src] ==Related metrics== Other correlational metrics, including kernel-based correlational metrics (such as the Hilbert-Schmidt Independence Criterion or HSIC) can also detect linear and nonlinear interactions.[src] Both distance correlation and kernel-based metrics can be used in methods such as canonical correlation analysis and independent component analysis to yield stronger statistical power.[src] ==See also== RV coefficient For a related third-order statistic, see Distance skewness.[src] ==Notes== ==References== ==External links== E-statistics (energy statistics)[src]

78 sentences · 78 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Distance correlation." encyclopegia.org, 2026, https://encyclopegia.org/wiki/distance-correlation. Accessed 28 November 2026.

Chicago

"Distance correlation." encyclopegia.org. Accessed November 28, 2026. https://encyclopegia.org/wiki/distance-correlation.

APA

encyclopegia.org. (2026). Distance correlation. Retrieved November 28, 2026, from https://encyclopegia.org/wiki/distance-correlation

Accessed November 28, 2026 · CC BY-SA 4.0 · citation page · JSON

Claims

PredicateValueSource
publication date2007Wikipedia
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1361404560 · 0.5 · snapshot enwiki-001361404560

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.