maximum likelihood logistic regression example