<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Doomsday_conjecture</id>
	<title>Doomsday conjecture - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://en.formulasearchengine.com/w/index.php?action=history&amp;feed=atom&amp;title=Doomsday_conjecture"/>
	<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Doomsday_conjecture&amp;action=history"/>
	<updated>2026-07-29T01:10:27Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.47.0-wmf.7</generator>
	<entry>
		<id>https://en.formulasearchengine.com/w/index.php?title=Doomsday_conjecture&amp;diff=25560&amp;oldid=prev</id>
		<title>en&gt;Headbomb: Various citation cleanup, replaced: | url=http://dx.doi.org/ → | doi= (2), {{MathSciNet | id = 0445498}} → {{MR|0445498}} (4), | id={{MR|0445498}} → | mr=0445498 (4), added orphan tag using AWB</title>
		<link rel="alternate" type="text/html" href="https://en.formulasearchengine.com/w/index.php?title=Doomsday_conjecture&amp;diff=25560&amp;oldid=prev"/>
		<updated>2011-08-21T19:35:27Z</updated>

		<summary type="html">&lt;p&gt;Various citation cleanup, replaced: | url=http://dx.doi.org/ → | doi= (2), {{MathSciNet | id = 0445498}} → {{MR|0445498}} (4), | id={{MR|0445498}} → | mr=0445498 (4), added &lt;a href=&quot;/w/index.php?title=CAT:O&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;CAT:O (page does not exist)&quot;&gt;orphan&lt;/a&gt; tag using &lt;a href=&quot;/w/index.php?title=Testwiki:AWB&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Testwiki:AWB (page does not exist)&quot;&gt;AWB&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;In [[statistics]], &amp;#039;&amp;#039;&amp;#039;adaptive&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;&amp;quot;variable-bandwidth&amp;quot; kernel density estimation&amp;#039;&amp;#039;&amp;#039; is a form of [[kernel density estimation]] in which the size of the kernels used in the estimate are varied&lt;br /&gt;
depending upon either the location of the samples or the location of the test point.&lt;br /&gt;
It is a particularly effective technique when the sample space is multi-dimensional.&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Terrell_Scott1992&amp;quot;&amp;gt;{{Cite journal&lt;br /&gt;
 | author1 = D. G. Terrell&lt;br /&gt;
 | author2 = D. W. Scott&lt;br /&gt;
 | title = Variable kernel density estimation&lt;br /&gt;
 | journal = [[Annals of Statistics]]&lt;br /&gt;
 | volume = 20 &lt;br /&gt;
 | pages = 1236&amp;amp;ndash;1265&lt;br /&gt;
 | year = 1992&lt;br /&gt;
 | doi=10.1214/aos/1176348768&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Rationale==&lt;br /&gt;
&lt;br /&gt;
Given a set of samples, &amp;lt;math&amp;gt;\lbrace \vec x_i \rbrace&amp;lt;/math&amp;gt;, we wish to estimate the&lt;br /&gt;
density, &amp;lt;math&amp;gt;P(\vec x)&amp;lt;/math&amp;gt;, at a test point, &amp;lt;math&amp;gt;\vec x&amp;lt;/math&amp;gt;:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
P(\vec x) \approx \frac{W}{n h^D}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
W = \sum_{i=1}^n w_i&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
w_i = K \left ( \frac{\vec x - \vec x_i}{h} \right )&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;n&amp;#039;&amp;#039; is the number of samples, &amp;#039;&amp;#039;K&amp;#039;&amp;#039; is the &lt;br /&gt;
[[Kernel (statistics)|&amp;quot;kernel&amp;quot;]], &amp;#039;&amp;#039;h&amp;#039;&amp;#039; is its width and &amp;#039;&amp;#039;D&amp;#039;&amp;#039; is the number of dimensions in &amp;lt;math&amp;gt;\vec x&amp;lt;/math&amp;gt;.&lt;br /&gt;
The kernel can be thought of as a simple, [[linear filter]].&lt;br /&gt;
&lt;br /&gt;
Using a fixed filter width may mean that in regions of low density, all samples&lt;br /&gt;
will fall in the tails of the filter with very low weighting, while regions of high&lt;br /&gt;
density will find an excessive number of samples in the central region with weighting&lt;br /&gt;
close to unity.  To fix this problem, we vary the width of the kernel in different&lt;br /&gt;
regions of the sample space.  &lt;br /&gt;
There are two methods of doing this: balloon and pointwise estimation.&lt;br /&gt;
In a balloon estimator, the kernel width is varied depending on the location &lt;br /&gt;
of the test point.  In a pointwise estimator, the kernel width is varied depending&lt;br /&gt;
on the location of the sample.&amp;lt;ref name=&amp;quot;Terrell_Scott1992&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For multivariate estimators, the parameter, &amp;#039;&amp;#039;h&amp;#039;&amp;#039;, can be generalized to&lt;br /&gt;
vary not just the size, but also the shape of the kernel.  This more complicated approach&lt;br /&gt;
will not be covered here.&lt;br /&gt;
&lt;br /&gt;
==Balloon estimators==&lt;br /&gt;
&lt;br /&gt;
A common method of varying the kernel width is to make it proportional to the density at the test point:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
h = \frac{k}{\left [ n P(\vec x) \right ]^{1/D}}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;k&amp;#039;&amp;#039; is a constant.  &lt;br /&gt;
If we back-substitute the estimated PDF,&lt;br /&gt;
we can show that &amp;#039;&amp;#039;W&amp;#039;&amp;#039; is a constant:&amp;lt;ref name=&amp;quot;Mills2010&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
W = k^D (2 \pi)^{D/2}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This produces a generalization of the [[k-nearest neighbour algorithm]].&lt;br /&gt;
That is, a uniform [[Kernel (statistics)|kernel function]] will return the &lt;br /&gt;
KNN technique.&amp;lt;ref name=&amp;quot;Mills2010&amp;quot;&amp;gt;{{Cite journal&lt;br /&gt;
 | last = Mills&lt;br /&gt;
 | first = Peter&lt;br /&gt;
 | title = Efficient statistical classification of satellite measurements&lt;br /&gt;
 | year = 2011&lt;br /&gt;
 | volume = 32&lt;br /&gt;
 | issue = 21&lt;br /&gt;
 | journal = International Journal of Remote Sensing&lt;br /&gt;
 | doi = 10.1080/01431161.2010.507795&lt;br /&gt;
 | url = http://peteysoft.users.sourceforge.net/TRES_A_507795.pdf&lt;br /&gt;
}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
&lt;br /&gt;
There are two components to the error: a variance term and a bias term.  The variance term is given as:&amp;lt;ref name=&amp;quot;Terrell_Scott1992&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
e_1 = \frac{P \int K^2}{n h^D}&lt;br /&gt;
&amp;lt;/math&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
The bias term is found by evaluating the approximated function in the limit as the kernel&lt;br /&gt;
width becomes much larger than the sample spacing.  By using a Taylor expansion for the real function, the bias term drops out:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
e_2 = \frac{h^2}{n} \nabla^2 P&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
An optimal kernel width that minimizes the error of each estimate can thus be derived.&lt;br /&gt;
&lt;br /&gt;
==Use for statistical classification==&lt;br /&gt;
&lt;br /&gt;
The method is particularly effective when applied to [[statistical classification]].&lt;br /&gt;
There are two ways we can proceed: the first is to compute the PDFs of&lt;br /&gt;
each class separately, using different bandwidth parameters, &lt;br /&gt;
and then compare them as in Taylor.&amp;lt;ref name=&amp;quot;Taylor1997&amp;quot;&amp;gt;&lt;br /&gt;
{{Cite journal&lt;br /&gt;
 | last = Taylor&lt;br /&gt;
 | first = Charles&lt;br /&gt;
 | title = Classification and kernel density estimation&lt;br /&gt;
 | journal = Vistas in Astronomy&lt;br /&gt;
 | volume = 41&lt;br /&gt;
 | issue = 3&lt;br /&gt;
 | pages = 441&amp;amp;ndash;417&lt;br /&gt;
 | year = 1997}}&amp;lt;/ref&amp;gt;&lt;br /&gt;
Alternatively, we can divide up the sum based on the class of each sample:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
P(j, \vec{x}) \approx \frac{1}{n}\sum_{i=1, c_i=j}^n w_i&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;#039;&amp;#039;c&amp;lt;sub&amp;gt;i&amp;lt;/sub&amp;gt;&amp;#039;&amp;#039; is the class of the &amp;#039;&amp;#039;i&amp;#039;&amp;#039;th sample.&lt;br /&gt;
The class of the test point may be estimated through [[maximum likelihood]].&lt;br /&gt;
&lt;br /&gt;
Many kernels, Gaussian for instance, are smooth.  Consequently, estimates&lt;br /&gt;
of joint or conditional probabilities are both continuous and differentiable.&lt;br /&gt;
This makes it easy to search for a border between two classes by zeroing&lt;br /&gt;
the difference between the conditional probabilities:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
R(\vec x) = P(2 | \vec x) - P(1 | \vec x) &lt;br /&gt;
= \frac{P(2, \vec x) - P(1, \vec x)}{P(1, \vec x) + P(2, \vec x)}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
For example, we can use a one-dimensional [[root-finding algorithm]] to zero&lt;br /&gt;
&amp;#039;&amp;#039;R&amp;#039;&amp;#039; along a line between two samples that straddle the class border. &lt;br /&gt;
The border can be thus sampled as many times as necessary.&lt;br /&gt;
The border samples along with estimates of the gradients of &amp;#039;&amp;#039;R&amp;#039;&amp;#039;&lt;br /&gt;
determine the class of a test point through a dot-product:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
j = \arg \underset{i}{\min} | \vec{b_i} - \vec x | \,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
p = (\vec x - \vec{b_j}) \cdot \nabla_{\vec x} R |_{\vec x=\vec{b_j}} \,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
c = ( 3 + p/|p| ) / 2 \,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
where &amp;lt;math&amp;gt;\lbrace \vec{b_i} \rbrace&amp;lt;/math&amp;gt; sample the &lt;br /&gt;
class border and &amp;#039;&amp;#039;c&amp;#039;&amp;#039; is the estimated class. &lt;br /&gt;
The value of &amp;#039;&amp;#039;R&amp;#039;&amp;#039;, which determines the conditional probabilities,&lt;br /&gt;
may be extrapolated to the test point:&lt;br /&gt;
&lt;br /&gt;
: &amp;lt;math&amp;gt;&lt;br /&gt;
R(\vec x) \approx \tanh p \,&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;ref name=&amp;quot;Mills2010&amp;quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Two-class classifications are easy to generalize to multiple classes.&lt;br /&gt;
&lt;br /&gt;
==External links==&lt;br /&gt;
* [http://libagf.sf.net libAGF] - A library for multivariate, adaptive kernel density estimation.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;references/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Classification algorithms|*]]&lt;br /&gt;
[[Category:Statistical classification]]&lt;br /&gt;
[[Category:Estimation of densities]]&lt;br /&gt;
[[Category:Non-parametric statistics]]&lt;/div&gt;</summary>
		<author><name>en&gt;Headbomb</name></author>
	</entry>
</feed>