The question
How should a class
explain an observation?
This project began as an INT304 pattern-recognition assignment on non-parametric classifiers and discriminant functions. The core question is practical: given a flower’s measurements, which of three species best explains them?
Bayes’ rule connects the prior probability of a class to the likelihood of seeing an observation within it. Comparing the resulting posterior probabilities gives a classification decision.
For a fixed observation, the denominator is shared by every class. With equal class priors, the comparison reduces to the class likelihoods. The interesting work happens inside that likelihood: how do we estimate it from examples?
Density estimates
Let every observation
contribute a little evidence.
A Parzen-window estimate places a small kernel around each training example and adds their contributions. Here, the kernel is Gaussian: nearby observations contribute more, and distant ones contribute less.
The sum runs over examples in class ω; nω is their count, d is the number of features, and φd is the standard d-dimensional Gaussian density. The bandwidth h controls how much each example spreads out.
Small windows preserve local detail. Wide windows smooth it away. The decision changes with the density we choose to see.



