0

I am trying to know how to estimate a parameter with the moments method. The wikipedia article and similar websites are too confusing and formal for me to understand. I'm looking for a more basic and school type "how-to".

For example ; Let $Z_{1},Z_{2},...,Z_{n}$ a simple sample of an Erlang random variable whose function of probability density is given by: $$ f(z)\begin{cases}\lambda^{2}ze^{-\lambda z} & z \ge 0\\0 & else\end{cases}$$

How do I estimate $\lambda$ with the moments method ? How can I generalize the method to any (maybe not extra-hard) problem of the same type ?

EDIT : I am now trying to solve the problem and so far; $$E[X] = n/\lambda$$ $$\widehat{E[X]} = \int_{0}^{\infty} \lambda z^2 e^{-\lambda z} dz = \frac{2}{\lambda^2}$$

And now I'm stuck, what to do with the second moment ? Or do I equal both the theorical and empirical, giving $\lambda = 2/n$ ?

Dranna
  • 125

1 Answers1

1

A very simple guide:

1) Determine the amount of parameters you need to estimate.

2) Express the moments (eg. the mean and the second moment) through the parameters you want to esitmate, those can for instance be found on wikipedia.

3) Calculate the corresponding empirical moments from your sample.

4) Now you have (2) equations that can be solved for the parameters.

I hope this helps.

Edit:

The empirical first moment is simply the sample mean. This applies for any of the moments: $\frac{1}{n}\sum_{i=1}^n X_i^k$ is the $k$'th empirical moment. The expection of $Z$, given it follows the Erlang distribution, is given by $\frac{2}{\lambda}$. As this type of Erlang distribution has only one parameter, $\hat{\lambda}=\frac{2}{\frac{1}{n}\sum_{i=1}^n X_i}$.

Rasmus
  • 46
  • 4
  • Finding the equations is the real problem for me. The first moment is n/lambda correct ? But the empirical moment is what (lambda/lambda-1)² ? And I don't know how to proceed for the second moment – Dranna Jul 21 '18 at 15:39
  • I edited my question with what I am now trying to do to solve the problem. I don't know how to use the second moment, can you help me out ? – Dranna Jul 21 '18 at 16:53
  • 1
    I edited my response to elaborate a bit. – Rasmus Jul 21 '18 at 19:24
  • Thank you, I now understand. I accepter your post as the answer. – Dranna Jul 21 '18 at 19:27
  • You are welcome. Note that i changed the formula for $\hat{\lambda}$. – Rasmus Jul 21 '18 at 19:29