https://numbas.mathcentre.ac.uk/question/11890/log-likelihood-and-maximum-likelihood-estimator-for-pdf/embed/