Civil Rights
Movements, leaders, victories and the continuing fight for equality.
Explore the people, places, events, achievements, struggles and stories that shaped our journey.
Movements, leaders, victories and the continuing fight for equality.
Innovation, patents, science, technology and world-changing contributions.
Pioneers, champions, Negro Leagues, records, activism and excellence.
Meet the people whose lives, choices and achievements shaped the journey.
Black towns, communities, institutions and places where history happened.
Moments that changed communities, movements, institutions and the nation.
In 1968 Shirley Chisholm became the first Black woman elected to the United States Congress. In 1972 she launched a campaign for the Democratic presidential nomination, breaking another political barrier.
MORE →Reflects the personal views, recollections, and perspective of the author, Mike Davis.
This is a personal recollection on the Move fire on May 13, 1985

In statistics, kernel density estimation (KDE) is the application of kernel smoothing for probability density estimation, i.e., a non-parametric method to estimate the probability density function of a random variable based on kernels as weights. KDE answers a fundamental data smoothing problem where inferences about the population are made based on a finite data sample. In some fields such as signal processing and econometrics it is also termed the Parzen–Rosenblatt window method, after Emanuel Parzen and Murray Rosenblatt, who are usually credited with independently creating it in its current form.[1][2] One of the famous applications of kernel density estimation is in estimating the class-conditional marginal densities of data when using a naive Bayes classifier, which can improve its prediction accuracy.[3]
Let be independent and identically distributed samples drawn from some univariate distribution with an unknown density f at any given point x. We are interested in estimating the shape of this function f. Its kernel density estimator is where K is the kernel — a non-negative function — and h > 0 is a smoothing parameter called the bandwidth or simply width.[3] A kernel with subscript h is called the scaled kernel and defined as Kh(x) = 1/h K(x/h). Intuitively one wants to choose h as small as the data will allow; however, there is always a trade-off between the bias of the estimator and its variance. The choice of bandwidth is discussed in more detail below.
A range of kernel functions are commonly used: uniform, triangular, biweight, triweight, Epanechnikov (parabolic), normal, and others. The Epanechnikov kernel is optimal in a mean square error sense,[4] though the loss of efficiency is small for the kernels listed previously.[5] Due to its convenient mathematical properties, the normal kernel is often used, which means K(x) = ϕ(x), where ϕ is the standard normal density function. The kernel density estimator then becomes where is the standard deviation of the sample .
The construction of a kernel density estimate finds interpretations in fields outside of density estimation.[6] For example, in thermodynamics, this is equivalent to the amount of heat generated when heat kernels (the fundamental solution to the heat equation) are placed at each data point locations xi. Similar methods are used to construct discrete Laplace operators on point clouds for manifold learning (e.g. diffusion map).
Kernel density estimates are closely related to histograms, but can be endowed with properties such as smoothness or continuity by using a suitable kernel. The diagram below based on these 6 data points illustrates this relationship:
| Sample | 1 | 2 | 3 | 4 | 5 | 6 |
|---|---|---|---|---|---|---|
| Value | −2.1 | −1.3 | −0.4 | 1.9 | 5.1 | 6.2 |
For the histogram, first, the horizontal axis is divided into sub-intervals or bins which cover the range of the data: In this case, six bins each of width 2. Whenever a data point falls inside this interval, a box of height 1/12 is placed there. If more than one data point falls inside the same bin, the boxes are stacked on top of each other.
For the kernel density estimate, normal kernels with a standard deviation of 1.5 (indicated by the red dashed lines) are placed on each of the data points xi. The kernels are summed to make the kernel density estimate (solid blue curve). The smoothness of the kernel density estimate (compared to the discreteness of the histogram) illustrates how kernel density estimates converge faster to the true underlying density for continuous random variables.[7]


The bandwidth of the kernel is a free parameter which exhibits a strong influence on the resulting estimate. To illustrate its effect, we take a simulated random sample from the standard normal distribution (plotted at the blue spikes in the rug plot on the horizontal axis). The grey curve is the true density (a normal density with mean 0 and variance 1). In comparison, the red curve is undersmoothed since it contains too many spurious data artifacts arising from using a bandwidth h = 0.05, which is too small. The green curve is oversmoothed since using the bandwidth h = 2 obscures much of the underlying structure. The black curve with a bandwidth of h = 0.337 is considered to be optimally smoothed since its density estimate is close to the true density. An extreme situation is encountered in the limit (no smoothing), where the estimate is a sum of n delta functions centered at the coordinates of analyzed samples. In the other extreme limit the estimate retains the shape of the used kernel, centered on the mean of the samples (completely smooth).
The most common optimality criterion used to select this parameter is the expected L2 risk function, also termed the mean integrated squared error:
Under weak assumptions on f and K, (f is the, generally unknown, real density function),[1][2]
where o is the little o notation, and n the sample size (as above). The AMISE is the asymptotic MISE, i. e. the two leading terms,
where for a function g, and is the second derivative of and is the kernel. The minimum of this AMISE is the solution to this differential equation
or
Neither the AMISE nor the hAMISE formulas can be used directly since they involve the unknown density function or its second derivative . To overcome that difficulty, a variety of automatic, data-based methods have been developed to select the bandwidth. Several review studies have been undertaken to compare their efficacies,[8][9][10][11][12][13][14] with the general consensus that the plug-in selectors[6][15][16] and cross validation selectors[17][18][19] are the most useful over a wide range of data sets.
Substituting any bandwidth h which has the same asymptotic order n−1/5 as hAMISE into the AMISE gives that AMISE(h) = O(n−4/5), where O is the big O notation. It can be shown that, under weak assumptions, there cannot exist a non-parametric estimator that converges at a faster rate than the kernel estimator.[20] Note that the n−4/5 rate is slower than the typical n−1 convergence rate of parametric methods.
If the bandwidth is not held fixed, but is varied depending upon the location of either the estimate (balloon estimator) or the samples (pointwise estimator), this produces a particularly powerful method termed adaptive or variable bandwidth kernel density estimation.
Bandwidth selection for kernel density estimation of heavy-tailed distributions is relatively difficult.[21]
If Gaussian basis functions are used to approximate univariate data, and the underlying density being estimated is Gaussian, the optimal choice for h (that is, the bandwidth that minimises the mean integrated squared error) is:[22]
An value is considered more robust when it improves the fit for long-tailed and skewed distributions or for bimodal mixture distributions. This is often done empirically by replacing the standard deviation by the parameter below:
where IQR is the interquartile range.

Another modification that will improve the model is to reduce the factor from 1.06 to 0.9. Then the final formula would be:
where is the sample size.
This approximation is termed the normal distribution approximation, Gaussian approximation, or Silverman's rule of thumb.[22] While this rule of thumb is easy to compute, it should be used with caution as it can yield widely inaccurate estimates when the density is not close to being normal. For example, when estimating the bimodal Gaussian mixture model from a sample of 200 points, the figure on the right shows the true density and two kernel density estimates — one using the rule-of-thumb bandwidth, and the other using a solve-the-equation bandwidth.[6][16] The estimate based on the rule-of-thumb bandwidth is significantly oversmoothed.
Given the sample (x1, x2, ..., xn), it is natural to estimate the characteristic function φ(t) = E[eitX] as Knowing the characteristic function, it is possible to find the corresponding probability density function through the Fourier transform formula. One difficulty with applying this inversion formula is that it leads to a diverging integral, since the estimate is unreliable for large t's. To circumvent this problem, the estimator is multiplied by a damping function ψh(t) = ψ(ht), which is equal to 1 at the origin and then falls to 0 at infinity. The "bandwidth parameter" h controls how fast we try to dampen the function . In particular when h is small, then ψh(t) will be approximately one for a large range of t's, which means that remains practically unaltered in the most important region of t's.
The most common choice for function ψ is either the uniform function ψ(t) = 1{−1 ≤ t ≤ 1}, which effectively means truncating the interval of integration in the inversion formula to [−1/h, 1/h], or the Gaussian function ψ(t) = e−πt2. Once the function ψ has been chosen, the inversion formula may be applied, and the density estimator will be
where K is the Fourier transform of the damping function ψ. Thus the kernel density estimator coincides with the characteristic function density estimator.
Kernel density estimation has been applied to continuous-variable quantum state tomography, in which repeated homodyne measurements produce samples of rotated field quadratures. For real measurement parameters , the quadrature observable is
Its measurement outcomes follow an ordinary probability density , known as a symplectic tomogram. The collection of tomograms over different measurement settings is informationally complete and therefore provides an alternative representation of the quantum state.[23]
For independent quadrature measurements obtained at a fixed setting, the tomogram can be estimated by
where is a kernel and is the bandwidth. This treatment does not require the quadrature density to belong to a predetermined parametric family and can therefore accommodate multimodal and non-Gaussian measurement distributions.
The characteristic function of a tomogram is its Fourier transform,
For every fixed , this is the characteristic function of the measured random variable . It always exists and satisfies the standard conditions , , and . In the tomographic representation, the values over phase space also coincide, up to the adopted conventions, with the characteristic function associated with the Wigner representation of the state.[23]
Taking the Fourier transform of the kernel density estimator gives a kernel estimator of the characteristic function,
where
is the empirical characteristic function and
is the known characteristic function of the rescaled kernel. Thus, the estimator separates into a data-dependent empirical factor and a deterministic smoothing factor controlled by the kernel and bandwidth. The kernel factor suppresses high-frequency contributions, providing a regularized version of the empirical characteristic function.
The characteristic-function representation can be used directly for quantum-state reconstruction. For example, the density matrix in the coordinate basis can be recovered from
It can also be used to calculate trace quantities without first reconstructing a phase-space quasiprobability distribution. In particular, two density operators satisfy the Parseval-type relation
When the two states are identical, this expression gives the purity ; for different states it gives their Hilbert–Schmidt overlap. Related integral expressions can be constructed for higher-order traces, state distances, and phase-space quasiprobability distributions.[23]
The characteristic-function formulation also permits correction for some measurement-noise models. If the observed quadrature is modeled as , where is independent noise with a known nonvanishing characteristic function, then the signal characteristic function can be obtained through a deconvolution,
A kernel factor can subsequently be included to regularize the resulting estimate. This correction requires the noise characteristic function not to vanish at the frequencies used in the reconstruction.
The bias and variance of the KCFE are
and
Thus its pointwise mean squared error is
For the Gaussian kernel
The resulting error is
For , minimizing this expression gives a characteristic-function bandwidth of order
and the minimized error satisfies
The characteristic-function estimator therefore converges pointwise at the parametric mean squared error rate, although the underlying tomogram is estimated nonparametrically.[23]
Collections of characteristic-function estimates at several measurement settings form the input to the kernel quantum state estimation procedure. If measurements are taken at each setting and , the numbers of state preparations used for density-matrix and two-dimensional trace estimation are
For the coordinate-space density matrix, the reported uniform pointwise risk is
For the overlap of two quantum states, the reported mean squared error is
where suppresses logarithmic factors arising from the number of measurement settings.[23]
We can extend the definition of the (global) mode to a local sense and define the local modes:
Namely, is the collection of points for which the density function is locally maximized. A natural estimator of is a plug-in from KDE,[24][25] where and are KDE version of and . Under mild assumptions, is a consistent estimator of . Note that one can use the mean shift algorithm[26][27][28] to compute the estimator numerically.
A non-exhaustive list of software implementations of kernel density estimators includes:
Pdf function.de.lmu.ifi.dbs.elki.math.statistics.kernelfunctionssmooth kdensity option, the datafile can contain a weight and bandwidth for each point, or the bandwidth can be set automatically[29] according to "Silverman's rule of thumb" (see above).StatsKDE operation (added in Igor Pro 7.00). Bandwidth can be user specified or estimated by means of Silverman, Scott or Bowmann and Azzalini. Kernel types are: Epanechnikov, Bi-weight, Tri-weight, Triangular, Gaussian and Rectangular.ksdensity function (Statistics Toolbox). As of the 2018a release of MATLAB, both the bandwidth and kernel smoother can be specified, including other options such as specifying the range of the kernel density.[30] Alternatively, a free MATLAB software package which implements an automatic bandwidth selection method[6] is available from the MATLAB Central File Exchange for
SmoothKernelDistribution[32] and symbolic estimation is implemented using the function KernelMixtureDistribution[33] both of which provide data-driven bandwidths.g10ba routine (available in both the Fortran[35] and the C[36] versions of the Library).kernel_density option (econometrics package).scipy.stats.gaussian_kde), Statsmodels (KDEUnivariate and KDEMultivariate), and scikit-learn (KernelDensity) (see comparison[37]). KDEpy supports weighted data and its FFT implementation is orders of magnitude faster than the other implementations. The commonly used pandas library [1] offers support for kde plotting through the plot method (df.plot(kind='kde')[2]). The getdist package for weighted and correlated MCMC samples supports optimized bandwidth, boundary correction and higher-order methods for 1D and 2D distributions. One newly used package for kernel density estimation is seaborn ( import seaborn as sns , sns.kdeplot() ).[38] A GPU implementation of KDE also exists.[39]density in the base distribution, and bw.nrd0 function is used in stats package, this function uses the optimized formula in Silverman's book. bkde in the KernSmooth library, ParetoDensityEstimation in the DataVisualizations library (for pareto distribution density estimation), kde in the ks library, dkden and dbckden in the evmix library (latter for boundary corrected kernel density estimation for bounded support), npudens in the np library (numeric and categorical data), sm.density in the sm library. For an implementation of the kde.R function, which does not require installing any packages or libraries, see kde.R. The btb library, dedicated to urban analysis, implements kernel density estimation through kernel_smoothing.proc kde can be used to estimate univariate and bivariate kernel densities.KernelDensity() class[40]kdensity;[41] for example histogram x, kdensity. Alternatively a free Stata module KDENS is available[42] allowing a user to estimate 1D or 2D density functions.SwiftStats.KernelDensityEstimation in the open-source statistics library SwiftStats.{{cite journal}}: Cite uses deprecated parameter |citeseerx= (help)
{{cite journal}}: Cite uses deprecated parameter |citeseerx= (help)
{{cite journal}}: Cite uses deprecated parameter |citeseerx= (help)
Source: Wikipedia. Article content is retrieved live through the MediaWiki API.
In statistics, kernel density estimation (KDE) is the application of kernel smoothing for probability density estimation, i.e., a non-parametric method to estimate the probability density function of a random variable based on kernels as weights. KDE answers a fundamental data smoothing problem where inferences about the population are made based on a finite data sample. In some fields such as signal processing and econometrics it is also termed the Parzen–Rosenblatt window method, after Emanuel Parzen and Murray Rosenblatt, who are usually credited with independently creating it in its current form. One of the famous applications of kernel density estimation is in estimating the class-conditional marginal densities of data when using a naive Bayes classifier, which can improve its prediction accuracy.
In statistics, 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.
Kernel density estimation is a nonparametric technique for density estimation i.e., estimation of probability density functions, which is one of the fundamental questions in statistics. It can be viewed as a generalisation of histogram density estimation with improved statistical properties. Apart from histograms, other types of density estimators include parametric, spline, wavelet and Fourier series. Kernel density estimators were first introduced in the scientific literature for univariate data in the 1950s and 1960s and subsequently have been widely adopted. It was soon recognised that analogous estimators for multivariate data would be an important addition to multivariate statistics. Based on research carried out in the 1990s and 2000s, multivariate kernel density estimation has reached a level of maturity comparable to its univariate counterparts.
In machine learning, the kernel embedding of distributions (also called the kernel mean or mean map) comprises a class of nonparametric methods in which a probability distribution is represented as an element of a reproducing kernel Hilbert space (RKHS). A generalization of the individual data-point feature mapping done in classical kernel methods, the embedding of distributions into infinite-dimensional feature spaces can preserve all of the statistical features of arbitrary distributions, while allowing one to compare and manipulate distributions using Hilbert space operations such as inner products, distances, projections, linear transformations, and spectral analysis. This learning framework is very general and can be applied to distributions over any space Ω {\displaystyle \Omega } on which a sensible kernel function (measuring similarity between elements of Ω {\displaystyle \Omega } ) may be defined. For example, various kernels have been proposed for learning from data which are: vectors in R d {\displaystyle \mathbb {R} ^{d}} , discrete classes/categories, strings, graphs/networks, images, time series, manifolds, dynamical systems, and other structured objects. The theory behind kernel embeddings of distributions has been primarily developed by Alex Smola, Le Song, Arthur Gretton, and Bernhard Schölkopf. A review of recent works on kernel embedding of distributions can be found in. The analysis of distributions is fundamental in machine learning and statistics, and many algorithms in these fields rely on information theoretic approaches such as entropy, mutual information, or Kullback–Leibler divergence. However, to estimate these quantities, one must first either perform density estimation, or employ sophisticated space-partitioning/bias-correction strategies which are typically infeasible for high-dimensional data. Commonly, methods for modeling complex distributions rely on parametric assumptions that may be unfounded or computationally challenging (e.g. Gaussian mixture models), while nonparametric methods like kernel density estimation (Note: the smoothing kernels in this context have a different interpretation than the kernels discussed here) or characteristic function representation (via the Fourier transform of the distribution) break down in high-dimensional settings. Methods based on the kernel embedding of distributions sidestep these problems and also possess the following advantages: Data may be modeled without restrictive assumptions about the form of the distributions and relationships between variables Intermediate density estimation is not needed Practitioners may specify the properties of a distribution most relevant for their problem (incorporating prior knowledge via choice of the kernel) If a characteristic kernel is used, then the embedding can uniquely preserve all information about a distribution, thanks to the kernel trick, while computations on the potentially infinite-dimensional RKHS can be implemented in practice as simple Gram matrix operations Dimensionality-independent rates of convergence for the empirical kernel mean (estimated using samples from the distribution) to the kernel embedding of the true underlying distribution can be proven. Learning algorithms based on this framework exhibit good generalization ability and finite sample convergence, while often being simpler and more effective than information theoretic methods Thus, learning via the kernel embedding of distributions offers a principled drop-in replacement for information theoretic approaches and is a framework which not only subsumes many popular methods in machine learning and statistics as special cases, but also can lead to entirely new learning algorithms.
Before the 1921 destruction of Tulsa’s Greenwood District, Black residents had created a remarkable center of business and community life. The district included stores, professional offices, entertainment venues and homes owned by Black citizens. Understanding Greenwood means learning what was built—not only what was burned.
MORE →Shirley Chisholm, elected in 1968.