Independent random variable expected value

Click For Summary

Homework Help Overview

The problem involves finding the expected value E(X²Y) using a joint probability density function for independent random variables X and Y. The context is rooted in probability theory and integration techniques.

Discussion Character

  • Mathematical reasoning, Assumption checking

Approaches and Questions Raised

  • Participants discuss the application of a theorem for expected values and the integration process involved. There are attempts to clarify the integration by parts method and its implications on the final result.

Discussion Status

Some participants have pointed out potential errors in the integration steps, particularly regarding the handling of negative signs. There is acknowledgment of mistakes in the integration process, and a participant expresses gratitude for the corrections made.

Contextual Notes

Participants are navigating through the complexities of integration by parts and the implications of sign errors in their calculations. There is an emphasis on the importance of careful handling of signs in integrals.

Proggy99
Messages
49
Reaction score
0

Homework Statement


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

Homework Equations


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


The Attempt at a Solution


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

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:
Physics news on Phys.org
Proggy99 said:

The Attempt at a Solution


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

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 uv-\int v\,du, so you should have a negative in front of the integration sign, which will then cancel with the negative inside.
 
n!kofeyn said:
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 uv-\int v\,du, 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.
 
No problem. Negative signs are always killers on those type of integrals.
 

Similar threads

Replies
2
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
Replies
6
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K