Let $Y_1 ,Y_2 ,\ldots,Y_n$ be a random sample from a distribution with pdf
$f(y) = e^{-(y -\theta) }$ for $y \geq 0 $ and $0$ else
a) Find the Method of Moments estimator for $\theta$
b) Find the MLE estimator for $\theta$
I'm pretty sure I found out how to do a) but b) I'm having trouble with. Everytime I take the logarithm and then take the derivative, $\theta$ disappears, any help?