https://medium.com/@monocosmo77/working-with-the-kolmogorov-smirnov-method-part4-statistical-machine-learning-b33a88adab71