https://medium.com/@monocosmo77/use-cases-of-moment-generating-functions-in-machine-learning-part1-a9a117a41ffb