There seems to be a wealth of information and tools available for the implementation of standard multivariate or univariate kernel density estimation. However, the discrete geographic data I am currently working with is especially sparse and tends to cluster around areas of high population density.
That is to say, I have a number of points (longitude and latitude) on a map, and I would like to estimate a probability density given the points, but I need to somehow normalize for population density. From looking around, it seems as though the proper method for this type of problem would be to implement some sort of nearest-neighbor adaptive bandwidth for the kernel estimation. Yet, it seems as though the stats.gaussian_kde does not support adaptive bandwidth. Is anyone aware of how I might be able to implement this myself, or if there are any packages available for adaptive bandwidth KDE's?