https://medium.com/@monocosmo77/how-maximum-likelihood-estimation-is-used-part5-machine-learning-832f155ad9aa