Independent random variable expected value

  • Thread starter Proggy99
  • Start date
  • #1
51
0

Homework Statement


Let the join probability density function of ZX and Y be given by
[tex]f(x,y)=\left\{\stackrel{2e^{-(x+2y)}\ \ \ \ \ if\ x\ \geq,\ \ \ y\ \geq\ 0}{0\ \ \ \ \ \ \ otherwise}[/tex]
Find [tex]E(X^{2}Y)[/tex]

Homework Equations


I approached this problem using a theorem from the book that states
E[h(X,Y)] =[tex]\int^{\infty}_{-\infty}\int^{\infty}_{-\infty}h(x,y)f(x,y)dxdy[/tex]


The Attempt at a Solution


Using the above formula, I did the following:
[tex]\int^{\infty}_{0}\int^{\infty}_{0}x^{2}y2e^{-(x+2y)}dxdy=[/tex]
[tex]\int^{\infty}_{0}\int^{\infty}_{0}2ye^{-2y}x^{2}e^{-x}dxdy=[/tex]
[tex]\int^{\infty}_{0}2ye^{-2y}[-x^{2}e^{-x}\ +\ \int^{\infty}_{0}2x(-e^{-x})dx]dy=[/tex]
[tex]\int^{\infty}_{0}2ye^{-2y}[-x^{2}e^{-x}\ +\ 2xe^{-x}\ +\ \int^{\infty}_{0}2e^{-x}dx]dy=[/tex]
[tex]\int^{\infty}_{0}2ye^{-2y}[-x^{2}e^{-x}\ +\ 2xe^{-x}\ -\ 2e^{-x}]^{\infty}_{0}dy=[/tex]
[tex]\int^{\infty}_{0}2ye^{-2y}[(0+0-0)-(0+0-2)]dy=[/tex]
[tex]\int^{\infty}_{0}2y2e^{-2y}dy=[/tex]
[tex]-2ye^{-2y}\ +\ \int^{\infty}_{0}-2e^{-2y}dy=[/tex]
[tex][-2ye^{-2y}\ +\ e^{-2y}]^{\infty}_{0}=[/tex]
[tex][(0+0)-(0+1)\ =\ -1[/tex]

I know the answer is supposed to be positive one, not negative one. I have gone over my calculations several times and can not find where I am making a mistake. I also accept that real possibility that I am approaching this in the wrong way in the first place. can someone help me out on this problem? Thanks for any help.
 
Last edited:

Answers and Replies

  • #2
537
3

The Attempt at a Solution


Using the above formula, I did the following:
[tex]\int^{\infty}_{0}\int^{\infty}_{0}x^{2}y2e^{-(x+2y)}dxdy=[/tex]
[tex]\int^{\infty}_{0}\int^{\infty}_{0}2ye^{-2y}x^{2}e^{-x}dxdy=[/tex]
[tex]\int^{\infty}_{0}2ye^{-2y}[-x^{2}e^{-x}\ +\ \int^{\infty}_{0}2x(-e^{-x})dx]dy=[/tex]
I found that in this last step, you have a negative sign inside the integral which should not be there. Remember integration by parts is [itex]uv-\int v\,du[/itex], so you should have a negative in front of the integration sign, which will then cancel with the negative inside.
 
  • #3
51
0
I found that in this last step, you have a negative sign inside the integral which should not be there. Remember integration by parts is [itex]uv-\int v\,du[/itex], so you should have a negative in front of the integration sign, which will then cancel with the negative inside.
gah, thanks for the catch. Looking past that, I realized I had consistently added rather than subtracted when doing my integration by parts, so I did the sign wrong three times resulting in a change in the final answer from negative to positive. Thanks for pointing it out.
 
  • #4
537
3
No problem. Negative signs are always killers on those type of integrals.
 

Related Threads on Independent random variable expected value

  • Last Post
Replies
4
Views
1K
  • Last Post
Replies
3
Views
1K
Replies
6
Views
3K
Replies
5
Views
548
Replies
12
Views
4K
Replies
13
Views
3K
Replies
4
Views
1K
Replies
4
Views
205
Replies
1
Views
3K
Top