bhatt.coeff: Bhattacharyya Coefficient

View source: R/bhatt.coeff.R

bhatt.coeffR Documentation

Bhattacharyya Coefficient

Description

Calculates the probability of overlap between two distributions.

Usage

bhatt.coeff(x, y, bw = bw.nrd0, ...)

Arguments

x, y

two distributions.

bw

the bandwidth size, either a numeric or a function (see bw.nrd0).

...

optional arguments to be passed to the bw argument.

Author(s)

Thomas Guillerme

References

Bhattacharyya A. 1943. On a measure of divergence between two statistical populations defined by their probability distributions. Bull. Calcutta Math. Soc., 35, pp. 99-109

See Also

test.dispRity, null.test.

Examples

## Two dummy distributions
x <- rnorm(1000, 0, 1)
y <- rnorm(1000, 1, 2)

## What is the probability of overlap of these distributions?
bhatt.coeff(x, y)


TGuillerme/dispRity documentation built on Aug. 15, 2024, 12:16 p.m.