Code for my Medium blogs Modeling step function using EM algorithm Mode of a Log-Normal distribution Mechanics of the ROC Curve