H | R Documentation |
Computes the Hellinger distance between the two probability density functions specified using numerical integration.
H(dens1, dens2, lower=-Inf)
dens1 |
function returning the first probability density. |
dens2 |
function returning the second probability density. |
lower |
lower end of the common domain of two density functions. Usually equal to |
The Hellinger distance is defined in Le Cam (1986) and also given in Roos et al. (2015, Sect. 2.1).
A real number in [0,1].
Le Cam, L. (1986). Asymptotic Methods in Statistical Decision Theory. Springer.
Roos, M., Martins, T., Held, L., Rue, H. (2015). Sensitivity analysis for Bayesian hierarchical models. Bayesian Analysis 10(2), 321–349. https://projecteuclid.org/euclid.ba/1422884977
H_normal
H(dens1=function(x) dhalfnormal(x, scale=0.5),
dens2=function(x) dhalfnormal(x, scale=1), lower=0)
H(dens1=function(x) dhalfnormal(x, scale=0.5),
dens2=function(x) dhalfcauchy(x, scale=1), lower=0)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.