logistic regression maximum likelihood example