Could someone please help me understand this KDE equation by working out an example?
$=\frac{1}{n*h}\sum_{i=1}^{n} K(\frac{x - x_i}{h})$
say, for example, I have the data for the following: $ x = 1.2, \text{ then density is 12}.\\ x = 2.2, \text{then density is 24}.\\ x = 3.8, \text{then density is 18}.\\ x = 6.5, \text{then density is 6}.\\ x = 7.0, \text{then density is 12}.\\ $
I want the density when $x = 4.5$. Assume $h$ is $0.5$.