Kgmd {GiniDistance}R Documentation

Kernel Gini Mean Difference Statistics

Description

Computes Kernel Gini mean difference statistics, in which Xs are quantitative, sigma is kernel standard deviation, alpha is an exponent on the Euclidean distance and returns the kernel Gini mean difference.

Usage

  Kgmd(x, sigma)

Arguments

x

data

sigma

kernel standard deviation

Details

Kgmd compute kernel Gini mean difference statistics for data. It is a self-contained R function dealing with both univariate and multivariate data.

The sample size (number of rows) of the data must agree with the length of the label vector, and samples must not contain missing values. Argument x, is treated as data.

Energy distance based statistics naturally generalizes from a Euclidean space to metric spaces (Lyons13). By using a positive definite kernel (Mercer kernel) (Mercer1909), distributions are mapped into a RKHS (Smola07) with a kernel induced distance. Hence one can extend energy distances to a much richer family of statistics defined in RKHS (Sejdinovic13). Let \kappa: R^q \times R^q \rightarrow R be a Mercer kernel (Mercer1909). There is an associated RKHS H_{\kappa} of real functions on R^q with reproducing kernel \kappa, where the function d: {R}^q \times {R}^q \rightarrow{{R}} defines a distance in \mathcal{H}_\kappa,

d_\kappa(x,x') = \sqrt{\kappa(x,x) + \kappa(x',x') - 2 \kappa(x,x')}.

Here Kgcov is defined as Gini distance covariance between x and \mathrm{rank}(x).

Value

Kgmd returns the sample Kernel Gini distance

References

Lyons, R. (2013). Distance covariance in metric spaces. The Annals of Probability, 41 (5), 3284-3305.

See Also

gCov gCor dCor

Examples

  x<-iris[,1]
  Kgmd(x, sigma=1)

[Package GiniDistance version 0.1.1 Index]