https://yii.codingforstudent.com/to-the-who-will-settle-for-nothing-less-than-discrete-and-continuous-distributions/