MHB Estimating variance of Poisson random variable

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. :)
 
Namaste & G'day Postulate: A strongly-knit team wins on average over a less knit one Fundamentals: - Two teams face off with 4 players each - A polo team consists of players that each have assigned to them a measure of their ability (called a "Handicap" - 10 is highest, -2 lowest) I attempted to measure close-knitness of a team in terms of standard deviation (SD) of handicaps of the players. Failure: It turns out that, more often than, a team with a higher SD wins. In my language, that...
Hi all, I've been a roulette player for more than 10 years (although I took time off here and there) and it's only now that I'm trying to understand the physics of the game. Basically my strategy in roulette is to divide the wheel roughly into two halves (let's call them A and B). My theory is that in roulette there will invariably be variance. In other words, if A comes up 5 times in a row, B will be due to come up soon. However I have been proven wrong many times, and I have seen some...

Similar threads

Replies
42
Views
4K
Replies
30
Views
4K
Replies
9
Views
2K
Replies
7
Views
2K
Replies
1
Views
8K
Replies
3
Views
1K
Back
Top