Statistics

 

 

 

Let \(x_1, x_2, …x_n\) be i.i.d. random variables that follow the Poisson distribution with parameter \(\lambda\), i.e. \(f(x;\lambda)=\dfrac{e^{-\lambda}\lambda^x}{x!}\).

(10 points) Find the methods of moments estimator for \(E[x_i]=\lambda\).

(10 points) Is this estimate unbiased? (show your work)

(10 points) Write an R function that would yield Methods of moments estimate for sample mean of a random sample of iid Poisson variables.

Argument: A vector of $X$ values

Output: MM estimate of $E[x_i]=\lambda$

(5 points) Use your function and \(x\) defined below to calculate the MM estimate of \(\lambda\).
set.seed(1)
x=rpois(100, 3.6)

Sample Solution

Methods of Moments Estimator

The method of moments is a statistical technique for estimating unknown parameters of a probability distribution. The idea is to match the sample moments of the data to the corresponding theoretical moments of the distribution. In this case, the sample mean is , and the theoretical mean of a Poisson distribution with parameter is . Therefore, the method of moments estimator for is simply the sample mean:

Unbiasedness

An estimator is said to be unbiased if the expected value of the estimator is equal to the true value of the parameter being estimated. In this case, the expected value of the method of moments estimator is

Therefore, the method of moments estimator is unbiased.

R Function

Here is an R function that calculates the method of moments estimator for the mean of a Poisson distribution:

Code snippet
mm_estimate <- function(x) {
  mean(x)
}

MM Estimate of

Using the R function mm_estimate, we can calculate the MM estimate of as follows:

Code snippet
set.seed(1)
x <- rpois(100, 3.6)
mm_estimate(x)

This question has been answered.

Get Answer
WeCreativez WhatsApp Support
Our customer support team is here to answer your questions. Ask us anything!
👋 Hi, Welcome to Compliant Papers.