I have the log-likelihood function:
$$l(p_i,y_i) = \sum_{i = 1}^n \left( \ln(p_i) + y_i \ln(1 - p_i) \right) $$
And I need to calculate the maximum likelihood estimator of $p_i$. When I do this, for some reason when differentiating, the summation sign vanishes. Why is this?
EDIT: To calculate the maximum likelihood estimators, I would differentiate my log likelihood, equal that to 0 and solve:
$$ \frac{\partial{l}}{\partial{p_i}} = \sum_{i = 1}^n \left( \frac{1}{p_i} - \frac{y_i}{1 - p_i} \right) = 0 $$
Rearranging gives me
$$ \sum \frac{1}{p_i} = \sum \left( \frac{y_i}{1 - p_i} \right) $$
Oh, does this now become
$$\frac{n}{p_i} = \frac{n y_i}{ 1 - pi} $$
And then I can divide through by n and rearrange to get my value for $\hat{p_i}$?