https://medium.com/@monocosmo77/use-cases-of-moment-generating-functions-in-machine-learning-part2-8dd9d334d283