Computes the distance correlation between two random variables.
Usage
distcor(X, y)
Arguments
X
A numeric vector or matrix.
y
A numeric vector or matrix.
Value
A sample distance correlation.
Details
Distance correlation measures the statistical dependence between two random
variables or two random vectors. The important property is that the distance correlation
is zero if and only if two random variables are independent. The details of computing
the distance correlation can be seen in Szekely, Rizzo and Bakirov (2007) or
https://en.wikipedia.org/wiki/Distance_correlation. This function is the same as
dcor in energy package.
References
Szekely, G.J., Rizzo, M.L., and Bakirov, N.K. (2007), Measuring and Testing Dependence
by Correlation of Distances, Annals of Statistics, Vol. 35 No. 6, pp. 2769-2794.