consider the probability mass function
and suppose we observe a sample of 5 outcomes: 0, 0, 1, 0, 1.
(a) show how maximum likelihood estimation can be used to estimate the parameter
(b) show how the method of moments can be used to estimate the parameter