https://medium.com/@monocosmo77/how-maximum-likelihood-estimation-is-used-part4-machine-learning-c94dc46e3fe2