https://medium.com/@monocosmo77/how-kernel-density-estimation-works-part2-machine-learning-587d451fc7c5