Possibly the simplest method for nonparametric density estimation after the empirical distribution.
We split the space into equal sized bins, . Note that the true density is
We estimate by simply counting the fraction of training points which landed in bin . We estimate ) by placing a uniform distribution over the bin , i.e., we assume . Our estimator is therefore
where . Note that is the number of bins and is the number of training points.
If , then and .