Let \(X_1,\ldots ,X_n\) be a random sample from \(N(\theta ,\theta )\), where \(\theta >0\). In particular, the population mean and the population variance are equal but unknown.
(a) Find the method-of-moments estimator of \(\theta \) based on the second sample moment.
(b) Find the maximum likelihood estimator of \(\theta \).