What is a kernel density estimate (Parzen window estimate), and what does the bandwidth control? Why is the method called non-parametric?
Supervised learning, Parzen windows and kernel density estimation
Level L1 Beginner. Length Short. Nature Th Theoretical.
What's being asked
Whether you understand KDE as a sum of small bumps and know the effect of the bandwidth.
Key idea
: one bump of width at each data point, averaged.
Steps
- Put a small bump (the kernel , such as a Gaussian or a box) on each of the data points . Add the bumps and divide so that the total area is 1. This gives .
- The bandwidth is the width of each bump. A small gives a spiky curve with a peak at every point (overfitting, high variance).
- A large gives a very smooth curve that hides real structure (underfitting, high bias). A good is found by cross-validation or a rule of thumb.
- The choice of kernel matters much less than the choice of .
- It is non-parametric because there is no fixed set of parameters (such as a mean and a variance) to fit. The model is the whole data set, and its complexity grows with .
Common mistakes
- Thinking the shape of the kernel is the main decision. In practice matters far more.
- Forgetting the factor , so the estimate no longer integrates to 1.
- Calling it parameter-free. It still has the hyper-parameter .
How long your answer should be
5 sentences.
Last checked on 4 December 2026.
Read this
Previous in Supervised learning: In k-nearest neighbours classification, what happens to the decision boundary when and when (the training set size)? How does this show the bias–variance trade-off, and how would you choose ?
Next in Supervised learning: What is the perceptron learning rule for labels , and how does one update move the prediction in the right direction?