Distance Covariance/Covariation

Sample Distance Covariance Formula

Given a statistical sample {(𝑋1, 𝑌1), …, (𝑋𝑛, 𝑌𝑛)} compute their respective doubly-centered distance matrices 𝐴 and 𝐵:

The sample distance covariance (a scalar) is simply the arithmetic average of the products 𝐴𝑖𝑗𝐵𝑖𝑗:

  • 𝑑𝐶𝑜𝑣2(𝑋,𝑌) = (1/𝑛2) 𝛴1≤𝑖≤𝑛𝛴1≤𝑗≤𝑛[𝐴𝑖𝑗𝐵𝑖𝑗]

Subpages