statistics

kernel density estimation

Estimating a smooth probability density from samples without assuming its functional form.
3 related articles

Description

Kernel density estimation (KDE) is a non-parametric way to estimate the probability density function of a random variable from a finite sample of data points. Unlike histograms, which depend on bin width and placement, KDE produces a smooth curve by placing a smooth 'kernel' (a symmetric, non-negative function, often a Gaussian) centered at each data point and summing them. The result is a continuous estimate that converges to the true density as the sample size grows, without assuming any particular functional form like normal or exponential.

History

Introduced by Murray Rosenblatt (1956) and Emanuel Parzen (1962), building on earlier work by Fix and Hodges in the 1950s.

How it works

For each data point x_i, you place a kernel function K (e.g., a Gaussian) with bandwidth h (a smoothing parameter) centered at x_i. The estimated density at any point x is the average of these kernels: f_hat(x) = (1/(n h)) Σ K((x - x_i)/h). The bandwidth h controls the trade-off between bias and variance: small h gives a wiggly estimate that follows noise, while large h oversmooths and loses features. Choosing h optimally (e.g., by cross-validation) is key.

In practice

Used in data science for exploratory data analysis, in finance for risk estimation, and in astronomy for estimating galaxy distributions from sparse observations.

Fun fact

KDE is the basis for the popular 'violin plot', which combines a box plot with a rotated KDE to show the distribution's shape.

Concept graph →

Related articles · 3

A translator who never misses a whisper
A courtroom interpreter catches every word, every breath, every whisper in the corner. They have no right to miss a detail, because the meaning of the whole conversation depends on it. Quantum state tomography works in much the same way: it reconstructs the full quantum state of a system from a set of measurements, leaving no detail out.
Cosmology2026-07-205 minarXiv:2607.17942
Gaussian Mask Falls: How 4 610 Universes Changed Cosmological Statistics
4 610 universes — that's exactly how many cosmological models astrophysicists needed to show that the familiar Gaussian mask no longer works for next-generation data. Future sky surveys, such as the Euclid mission and the Vera C.
HEP Theory2026-06-161 minarXiv:2606.18344express
Thermodynamics of Black Branes Without Solving Equations
Black holes can emit heat. They have a temperature, entropy (a measure of disorder), and other thermodynamic properties. Usually, to compute these, you first have to construct the black hole itself — solve the complicated equations of curved spacetime.