Estimating variance of Poisson random variable

Click For Summary
SUMMARY

The discussion focuses on estimating the variance of a Poisson random variable with a mean of 5 using R. The user generates a random sample with the command P5 <- rpois(100,5) and calculates the expected value of the square root, mean(sqrt(P5)), yielding approximately 2.292802. To estimate the variance of the square root, the user applies the formula Var[sqrt(X)] = E[X] - E[sqrt(X)]^2, resulting in a value of 0.2230577. The user concludes that the variance is not zero and acknowledges the need for a more comprehensive approach to calculate E[sqrt(X)].

PREREQUISITES
  • Understanding of Poisson random variables and their properties
  • Familiarity with R programming and statistical functions
  • Knowledge of variance and expectation calculations
  • Basic grasp of infinite series and summation techniques
NEXT STEPS
  • Learn how to calculate E[sqrt(X)] for Poisson distributions using infinite series
  • Explore the use of the dpois function in R for probability mass functions
  • Investigate the properties of variance in non-linear transformations of random variables
  • Study the implications of the Central Limit Theorem on Poisson distributions
USEFUL FOR

Statisticians, data analysts, and R programmers interested in advanced statistical methods for estimating properties of Poisson random variables.

Jameson
Insights Author
Gold Member
MHB
Messages
4,533
Reaction score
13
I am trying to use a generated random sample in R to estimate the mean and variance for a Poisson random variable. The first one is a Poisson random variable with mean 5.

To estimate the above I generate a random sample in R with the following code:
Code:
P5 <- rpois(100,5)

Given the above I want to find $E[\sqrt{X}]$. Easy enough. To estimate the expected value of the square of X, I can take the square root of the sample and divide by 100.
Code:
mean(sqrt(P5))

The above comes out to be 2.292802 and $\sqrt{5}=2.2346$ so all looks good.

Now I want to estimate the $\text{Var}[\sqrt{X}]$. I can use the following formula to help: $\text{Var}[\sqrt{X}]=E[X]-E[\sqrt{X}]^2$
Code:
sum((P5))/100-(sum(sqrt(P5))/100)^2

From the above I get 0.2230577 but to honest, I can't figure out what the ideal value should be. Plugging in $\lambda$ into the variance formula is seems like this should be $\lambda-\sqrt{\lambda}^2=0$.

Any insight as to how to get this value?
 
Physics news on Phys.org
Ok so after thinking about this for more than 1 second a couple of things are clearer:

1) The variance is obviously not 0. I knew that before but it seems so hilariously absurd now as that would mean the value of the random variable is always a constant.

2) To calculate $E[\sqrt{X}]$ I need to use the full formula and not just "plug in". So this would be: $$E[\sqrt{x}]=\sum_{x=0}^{\infty}\sqrt{x} \cdot \frac{\lambda^x e^{-\lambda}}{x!}$$. This most likely doesn't have a nice cancellation that $E[X]$ does and my guess would be there is no closed solution to this expectation. From what I have found the variance should indeed be something close to 1/4, so all is looking good. :)
 

Similar threads

  • · Replies 42 ·
2
Replies
42
Views
6K
  • · Replies 30 ·
2
Replies
30
Views
4K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K