Jump to content

Variable kernel density estimation

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Peteymills (talk | contribs) at 00:23, 30 April 2010 (References). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

Adaptive or "variable-bandwidth" kernel density estimation is a form of kernel density estimation in which the size of the kernels used in the estimate are varied depending upon either the location of the samples or the location of the test point. It is a particularly effective technique when the sample space is multi-dimensional. [1]

Rational

Given a set of samples, , we wish to find the density, , at a test point, :

where is the number of samples, is the "kernel" and is its width. The kernel can be thought of as a simple, linear filter.

Using a fixed filter width may mean that in regions of low density, all samples will fall in the tails of the filter with very low weighting, while regions of high density will find an excessive number of samples in the central region with weighting close to unity. To fix this problem, we vary the width of the kernel in different regions of the sample space. There are two methods of doing this: balloon and pointwise estimation. In a balloon estimator, the kernel width is is varied depending on the location of the test point. In a pointwise estimator, the kernel width is varied depending on the location of the sample. [1]

For multivariate estimators, the parameter, , can be generalized to vary not just the size, but also the shape of the kernel. This more complicated approach approach will not be covered here.

Pointwise estimators

A common method of varying the kernel width is to make it proportional to the density at the test point:

where is a constant. If we back-substitute the estimated PDF, it is easy to show that is a constant:

This produces a generalization of the k-nearest neighbour algorithm. That is, a uniform kernel function will return the KNN technique.[2]

There are two components to the error: a variance term and a bias term. The variance term is given as[1]:

where are the number of dimensions.

The bias term is found by evaluating the approximated function in the limit as the kernel width becomes much larger than the sample spacing. By using a Taylor expansion for the real function, the bias term drops out:

It is possible to derive an optimal kernel width that minimized the error of each estimate.

Use for statistical classification

The method is particularly useful when adapted to statistical classification. There are two ways we can proceed: the first is to compute the PDFs of each class separately and then compare them as in Taylor [3]. Alternatively, we can divide up the sum based on the class of each sample:

where is the class of the th sample. The class of the test point may be estimated through maximum likelihood.

Many kernels, Gausian for instance, are smooth. Consequently, estimates of joint or conditional probabilities are both continuous and differentiable. This makes it easy to search for a border between two classes by zeroing the difference between the conditional probabilities:

For instance, we could find a line that straddles the border and then use a numerical algorithm to find the root of . This could be done as many times as necessary to sample the class border. We can use the border samples along with estimates of the gradients of to find the class of a test point:

where sample the class border and is the estimated class. The conditional probability may be extrapolated to the test point:

[2]

Two-class classifications are easy to generalize to multiple classes.

libAGF - A library for multivariate, adaptive kernel density estimation.

References

  1. ^ a b c D. G. Terrell; D. W. Scott (1992). "Variable kernel density estimation". Annals of Statistics. 20: 1236–1265.
  2. ^ a b Mills, Peter. "Efficient statistical classification of satellite measurements". International Journal of Remote Sensing. {{cite journal}}: Unknown parameter |note= ignored (help)
  3. ^ Taylor, Charles (1997). "Classification and kernel density estimation". Vistas in Astronomy. 41 (3): 441–417.