KDE: Kernels & Bandwidth
An applet showing how kernel desnsity estimation (KDE) works for different kernels.
\( p(x) = \dfrac{1}{nh} \sum_{i=1}^{n} K\!\left(\dfrac{x - x_i}{h}\right) \)
Kernel K
Dimension
1D
2D
Data
bimodal (synthetic)
uniform (edges!)
penguins (real)
n
120
Bandwidth h
show the n bumps
5-fold CV: held-out log-likelihood per point vs \(h\)
snap h to CV best