Kalpana Kalpana (Editor)

Bhattacharyya distance

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit

In statistics, the Bhattacharyya distance measures the similarity of two discrete or continuous probability distributions. It is closely related to the Bhattacharyya coefficient which is a measure of the amount of overlap between two statistical samples or populations. Both measures are named after Anil Kumar Bhattacharya, a statistician who worked in the 1930s at the Indian Statistical Institute.

Contents

The coefficient can be used to determine the relative closeness of the two samples being considered. It is used to measure the separability of classes in classification and it is considered to be more reliable than the Mahalanobis distance, as the Mahalanobis distance is a particular case of the Bhattacharyya distance when the standard deviations of the two classes are the same. Therefore, when two classes have similar means but different standard deviations, the Mahalanobis distance would tend to zero, however, the Bhattacharyya distance would grow depending on the difference between the standard deviations.

Definition

For probability distributions p and q over the same domain X, the Bhattacharyya distance is defined as:

D B ( p , q ) = ln ( B C ( p , q ) )

where:

B C ( p , q ) = x X p ( x ) q ( x )

is the Bhattacharyya coefficient for discrete probability distributions.

For continuous probability distributions, the Bhattacharyya coefficient is defined as:

B C ( p , q ) = p ( x ) q ( x ) d x

In either case, 0 B C 1 and 0 D B . D B does not obey the triangle inequality, but the Hellinger distance 1 B C does obey the triangle inequality.

In its simplest formulation, the Bhattacharyya distance between two classes under the normal distribution can be calculated by extracting the mean and variances of two separate distributions or classes:

D B ( p , q ) = 1 4 ln ( 1 4 ( σ p 2 σ q 2 + σ q 2 σ p 2 + 2 ) ) + 1 4 ( ( μ p μ q ) 2 σ p 2 + σ q 2 )

where:

The Mahalanobis distance used in Fisher's linear discriminant analysis is a particular case of the Bhattacharyya Distance.

For multivariate normal distributions p i = N ( μ i , Σ i ) ,

D B = 1 8 ( μ 1 μ 2 ) T Σ 1 ( μ 1 μ 2 ) + 1 2 ln ( det Σ det Σ 1 det Σ 2 ) ,

where μ i and Σ i are the means and covariances of the distributions, and

Σ = Σ 1 + Σ 2 2 .

Note that, in this case, the first term in the Bhattacharyya distance is related to the Mahalanobis distance.

Bhattacharyya coefficient

The Bhattacharyya coefficient is an approximate measurement of the amount of overlap between two statistical samples. The coefficient can be used to determine the relative closeness of the two samples being considered.

Calculating the Bhattacharyya coefficient involves a rudimentary form of integration of the overlap of the two samples. The interval of the values of the two samples is split into a chosen number of partitions, and the number of members of each sample in each partition is used in the following formula,

B C ( p , q ) = i = 1 n p i q i ,

where, considering the samples p and q, n is the number of partitions, and p i , q i are the numbers of members of samples p and q in the i-th partition.

This formula hence is larger with each partition that has members from both sample, and larger with each partition that has a large overlap of the two sample's members within it. The choice of number of partitions depends on the number of members in each sample; too few partitions will lose accuracy by overestimating the overlap region, and too many partitions will lose accuracy by creating individual partitions with no members despite being in a densely populated sample space.

The Bhattacharyya coefficient will be 0 if there is no overlap at all due to the multiplication by zero in every partition. This means the distance between fully separated samples will not be exposed by this coefficient alone.

Applications

The Bhattacharyya distance is widely used in research of feature extraction and selection, image processing, speaker recognition, phone clustering.

A "Bhattacharyya space" has been proposed as a feature selection technique that can be applied to texture segmentation.

References

Bhattacharyya distance Wikipedia