Why are you expanding the product literally? It's alot easier if you maximise the logL(p) and use the fact that the log of a product is equal to the sum of the logs. You should have Sum(i=1->n) [Log (m xi) + xiLogp + (m-xi)log(1-p)]. Differentiating that with respect to p gives the required answer
Last edited by a moderator: Apr 1, 2010