Saturday, 2 September 2017

probability - Calculate intiinftynftyx2ex2dx using Gaussian random variables and the properties of pdfs




I've been asked the following question in an exam of probability and statistics undergraduate course. Help is appreciated.



Calculate the numeric value of x2ex2dx using Gaussian random variables and the properties of pdfs (probability density functions).



Note: The normal cdf table was given



Here is how I tried to solve it:





  • Take the normal pdf and use the fact that pdfs are equal to 1 when integrated from to .



1σ2πe(xμ)22σ2dx=1




  • Let μ=0 and σ2=12. And the integral simplifies to this.



ex2dx=π





  • Then I've tried to integrate the main integral by parts.



x2ex2dx=x2ex2dx2x(ex2dx)dx




  • Plug in π where needed and simplify.




=x2π2x(π2erf(x))dx




  • Further simplifying I get the following and this is where I stuck.



=x2ππxerf(x)dx





  • The functions don't converge, so I can't proceed. Also, I don't know how to integrate the error function.



If you know how to proceed, or if you think this should've been solved in another way, please answer. Note that I need a solution involving Gaussian random variables and the properties of pdfs (as required.)


Answer



The step where you "plug in π as needed" is incorrect. On the preceding line you have indefinite integrals, where you haven't kept track of the bounds of integration. Turning it into definite integrals would also affect the factor x2, for example.



Also, it's much better to do the integration by parts like this, and not involve the error function:
ba(xex2)xdx=[(12ex2)x]baba(12ex2)1dx,
and then see what happens as a and b.



(I know this isn't a probabilistic solution, but it's just to comment on your attempt.)


No comments:

Post a Comment

real analysis - How to find limhrightarrow0fracsin(ha)h

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