https://medium.com/@monocosmo77/how-conditional-density-estimation-works-part1-machine-learning-x-statistics-22f208876e12