Find the variance of variance of random variable with pdf f(x)=λ2e−λ|x|
Solution:
E(X) is zero because density is even.
VarX=E(X2)=∫x2f(x)dx=λ∫∞0x2e−λ|x|dx=1λ2∫∞0x2e−xdx
Confusion:
- So E(X) is zero because density is even means that because pdf is an even function? So for even functions, when we integrate from negative ∞ to positive ∞ we get 0? I forgot calculus so can anyone write out the full function of E(X) for me?
2.Why does λ∫∞0x2e−λ|x|dx=1λ2∫∞0x2e−xdx? Is there something from calculus I totally forgot about that relates to this?
- I did some research and the generalizaion of λ∫∞0xpe−λ|x|dx=1λp∫∞0xpe−xdx=1λpγ(p+1) with γ(p+1) being the gamma function. Can anyone explain the gamma function here being equal to integral of xpe−x?
Answer
You have
E(X)=∫∞−∞xf(x)dx
provided ∫∞0xf(x)dx<+∞ and ∫0−∞xf(x)dx>−∞.
If (1) holds, then
∫∞−∞xf(x)dx=lima→∞∫a−axf(x)dx.
If f is an even function then x↦xf(x) is an odd function; i.e. (−x)f(−x)=−(xf(x)). Thus we have
∫0−axf(x)dx=∫0a(−w)f(−w)(−dw)where w=−x=∫0a(−w)f(w)(−dw)because f is even=∫0awf(w)dw=−∫a0wf(w)dw=−∫a0xf(x)dxbecause w and x are bound variables.
Therefore
∫a−axf(x)dx=0
and thus lima→∞ of that integral is 0.
λ∫a0x2e−λxdx=λ⋅1λ3∫a0(λx)2e−λx(λdx)=1λ2∫λa0u2e−uduwhere u=λxand thus du=λdx=1λ2∫λa0x2e−xdx
and then let a→∞.
No comments:
Post a Comment