Question :

Consider a random sample of size $\displaystyle n$ from a population with the probability distribution $\displaystyle f(x,p)$ that depends on parameter $\displaystyle p$. Find the maximum likelihood estimator for $\displaystyle p$ when

$\displaystyle

f(x,p) = p^x (1-p)^{1-x} \qquad for \ x = 0,1

$