consider the probability mass function

and suppose we observe a sample of 5 outcomes: 0, 0, 1, 0, 1.

(a) show howmaximum likelihood estimationcan be used to estimate the parameter

(b) show how themethod of momentscan be used to estimate the parameter