maximum likelihood estimation three variables