https://stats.stackexchange.com/questions/391837/intuition-behind-gradient-of-expected-value-and-logarithm-of-probabilities