A Gaussian kernel density estimate with bandwidth is built from the three 1-D points , and . (a) Write and compute for . (b) What does become for , and what does the change in do to the estimate in general?
Unsupervised learning, Density estimation
Level L2 Elementary. Length Medium. Nature Th+Mat Both.
What's being asked
Whether you can evaluate a kernel density estimate and explain the bias–variance role of the bandwidth.
Key idea
with : a small Gaussian bump of width on every data point, averaged.
Steps
- Each point adds a bump, and is the average of the bumps: .
- At with the distances are . The exponentials are , and , summing to .
- .
- With the distances and are and bandwidths away, so those bumps contribute almost nothing ( and ). Only the point counts: .
- A small gives a spiky estimate with low bias but high variance (it has one peak per data point). A large oversmooths and merges modes, giving high bias but low variance.
- In practice is chosen by cross-validated log-likelihood or a rule of thumb such as Silverman's rule.
Common mistakes
- Forgetting the factor, so the estimate no longer integrates to 1.
- Dividing by but not summing over all points, or summing but forgetting .
- Choosing to maximise training likelihood. It tends to because each point then has an infinite spike.
How long your answer should be
Half a page; 4 minutes.
Last checked on 4 December 2026.
Read this
Previous in Unsupervised learning: In matrix factorisation for recommendation, a rating is modelled as with user vector and item vector . With squared loss plus L2 penalty , learning rate and , perform one stochastic gradient step on this rating. What are the new , and prediction?
Next in Unsupervised learning: A one-class SVM with an RBF kernel is trained on normal points with . (a) What does guarantee about the number of training points outside the learned boundary and the number of support vectors? (b) What happens if you set instead, and why would be a poor choice for contaminated data if set too small?