Gaussian kernel density worked example

ID: gaussian-kernel-density-worked-example

Take the realized statistical sample , the Gaussian density kernel and smoothing bandwidth . Then
At , the three contributions are , , and , because and . Their sum is
This is a probability density function value, not the probability of observing exactly zero. Each of the three component curves has area , despite having a different height at zero.
Let be the cumulative distribution function of the standard normal distribution. The fitted probability of the interval is its area under the kernel density estimator:
The shaded area in the diagram is this fitted probability. Its agreement to a few digits with is incidental: the empirical measure gives this interval mass exactly, whereas kernel density estimation redistributes that mass into neighboring intervals.

New to topics? Read the docs here!