https://ipython.pythonprogramminghelp.com/3-shocking-to-marginal-and-conditional-pmf-and-pdf/