Training data and decision surface
Click a point to inspect its window (leave-one-out); click empty space to test a new point. The bar strips are 1D histograms of each feature, using the same h as the bin width.
Weekly practice time and quiz score.
Non-parametric density estimation
Both methods estimate a class from the same idea: p̂(x) ≈ k / (n·V). A Parzen window fixes the window's volume V and counts how many points k land inside. k-NN fixes k and grows the window until it holds exactly that many.
Click a point to inspect its window (leave-one-out); click empty space to test a new point. The bar strips are 1D histograms of each feature, using the same h as the bin width.
Weekly practice time and quiz score.
Choosing the window
Too small a window overfits to single points (high variance); too large a window blurs classes together (high bias).