Learn R Programming

dispRity (version 1.7.0)

bhatt.coeff: Bhattacharrya 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

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

Run this code
## 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)

Run the code above in your browser using DataLab