Thursday, 7 September 2017

calculus - Why does yinti0nftyx2ey|x|,dx=frac1y2inti0nftyx2ex,dx?



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λ20x2exdx



Confusion:




  1. 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λ20x2exdx? Is there something from calculus I totally forgot about that relates to this?




  1. I did some research and the generalizaion of λ0xpeλ|x|dx=1λp0xpexdx=1λpγ(p+1) with γ(p+1) being the gamma function. Can anyone explain the gamma function here being equal to integral of xpex?


Answer



You have
E(X)=xf(x)dx



provided 0xf(x)dx<+ and 0xf(x)dx>.



If (1) holds, then
xf(x)dx=limaaaxf(x)dx.


If f is an even function then xxf(x) is an odd function; i.e. (x)f(x)=(xf(x)). Thus we have
0axf(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
aaxf(x)dx=0

and thus lima of that integral is 0.




λa0x2eλxdx=λ1λ3a0(λx)2eλx(λdx)=1λ2λa0u2euduwhere u=λxand thus du=λdx=1λ2λa0x2exdx


and then let a.


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

How to find limh0sin(ha)h without lhopital rule? I know when I use lhopital I easy get $$ \lim_{h\rightarrow 0}...