hell | R Documentation |
The Hellinger distance (H) between two probability measures ranges from 0 (identical distributions) to 1 (non-overlapping distributions).
hell(d1, d2, a = NULL, b = NULL)
d1, d2 |
A density distribution. |
a, b |
The lower and upper limits of comparison.
Each density will be rescaled such that the integral over the
interval |
Let f(x) and g(x) be the probability density functions for comparison.
The squared Hellinger distance is
0.5 \int( \sqrt{f(x)} - \sqrt{g(x)} )^2 dx
. Conveniently for numeric
integration, the expression can be written as the integral of a product
instead of a difference: 1 - \int \sqrt{f(x)g(x)} dx
. H is related
to the Bhattacharyya coefficient BC: H = \sqrt{1 - BC}
. Elsewhere,
Hellinger distances are sometimes reported as the square (H^2
)
(e.g. Warren et al. 2008, Di Cola et al. 2017), or are not rescaled
and so range from 0 to \sqrt 2
(Encyclopedia of Mathematics).
A numeric value between 0 and 1 inclusive.
DiCola17kerneval
\insertRefNikulin01kerneval
\insertRefWarren08kerneval
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.