I'm using the scipy.stats.gaussian_kde function to generate a KDE
from a set of $N$ points in a 2D space: $A = \{(x_1,y_1), (x_2,y_2), (x_3,y_2), ..., (x_N,y_N)\}$
Each one of these points has a given error attached to it. So for example, the point $(x_1,y_1)$ has errors $(e_{x_1},e_{y_1})$ and so on. I can assume the errors are normally distributed in both axis.
The python
function that I use to generate the KDE
has no way to integrate these errors into the calculations and I wonder how I would even do such a thing if I did it manually.
Ie: what is the statistically correct way to generate a KDE
accounting for errors in the data used?