add analytic calculation of maximum likelihood estimates