| 
October 11th, 2008, 07:47 AM
| | Junior Member | | Join Date: Oct 2007
Posts: 55
Country: Thanks: 20
Thanked 0 Times in 0 Posts
| | Joint Probability Function Let X and Y have joint probability density function
fX,Y(x,y) = x+y, for 0 <=x<= 1, o<=y<=1
0, otherwise
How do i go about determining the corr(X,Y)?
Could someone outline the steps please.. Any help would be appreciated.. | 
October 11th, 2008, 03:29 PM
| | Super Member | | Join Date: Aug 2008 Location: Lyon, France
Posts: 780
Country: Thanks: 44
Thanked 501 Times in 420 Posts
| | One has ![{\rm Corr}(X,Y)=\frac{{\rm Cov}(X,Y)}{\sqrt{{\rm Var}(X){\rm Var}(Y)}}=\frac{E[XY]-E[X]E[Y]}{\sqrt{(E[X^2]-E[X]^2)(E[Y^2]-E[Y]^2)}} {\rm Corr}(X,Y)=\frac{{\rm Cov}(X,Y)}{\sqrt{{\rm Var}(X){\rm Var}(Y)}}=\frac{E[XY]-E[X]E[Y]}{\sqrt{(E[X^2]-E[X]^2)(E[Y^2]-E[Y]^2)}}](http://www.mathhelpforum.com/math-help/latex2/img/ed2f4d03b5f802571a4299d54d2f6021-1.gif) , right? So what you need to compute is ![E[XY] E[XY]](http://www.mathhelpforum.com/math-help/latex2/img/6e440be6519e9782522cae0d403d758f-1.gif) , ![E[X] E[X]](http://www.mathhelpforum.com/math-help/latex2/img/f564e7c6618bc2c0c99eae5a9376fbaf-1.gif) , ![E[Y] E[Y]](http://www.mathhelpforum.com/math-help/latex2/img/a7536de6a5a3e3d205f9bbe8598f2e41-1.gif) , ![E[X^2] E[X^2]](http://www.mathhelpforum.com/math-help/latex2/img/4d1d522fcf91e6ad6f6948a5e295ff59-1.gif) and ![E[Y^2] E[Y^2]](http://www.mathhelpforum.com/math-help/latex2/img/8a23c1b4166a611aa981e5f879fa62eb-1.gif) . In fact, the pdf of  is symmetric in  , so that  and  have same distribution and the formula reduces to: ![{\rm Corr}(X,Y)=\frac{E[XY]-E[X]^2}{E[X^2]-E[X]^2} {\rm Corr}(X,Y)=\frac{E[XY]-E[X]^2}{E[X^2]-E[X]^2}](http://www.mathhelpforum.com/math-help/latex2/img/6656230d0c56b5f73ca794f9dfc9c3ba-1.gif) .
To compute ![E[XY] E[XY]](http://www.mathhelpforum.com/math-help/latex2/img/6e440be6519e9782522cae0d403d758f-1.gif) , just integrate  times the pdf of  (over the square  ).
You can do the same with the other ones (integrating  and  ), but you may find it quicker to first determine the pdf of  . For that, you just have to integrate the pdf of  with respect to the variable  , keeping  fixed. | | The Following 3 Users Say Thank You to Laurent For This Useful Post: | |  | 
October 11th, 2008, 04:19 PM
|  | Flow Master | | Join Date: Dec 2007 Location: Zeitgeist
Posts: 12,234
Country: Thanks: 2,574
Thanked 4,756 Times in 4,189 Posts
| | Quote:
Originally Posted by Laurent One has ![{\rm Corr}(X,Y)=\frac{{\rm Cov}(X,Y)}{\sqrt{{\rm Var}(X){\rm Var}(Y)}}=\frac{E[XY]-E[X]E[Y]}{\sqrt{(E[X^2]-E[X]^2)(E[Y^2]-E[Y]^2)}} {\rm Corr}(X,Y)=\frac{{\rm Cov}(X,Y)}{\sqrt{{\rm Var}(X){\rm Var}(Y)}}=\frac{E[XY]-E[X]E[Y]}{\sqrt{(E[X^2]-E[X]^2)(E[Y^2]-E[Y]^2)}}](http://www.mathhelpforum.com/math-help/latex2/img/ed2f4d03b5f802571a4299d54d2f6021-1.gif) , right? So what you need to compute is ![E[XY] E[XY]](http://www.mathhelpforum.com/math-help/latex2/img/6e440be6519e9782522cae0d403d758f-1.gif) , ![E[X] E[X]](http://www.mathhelpforum.com/math-help/latex2/img/f564e7c6618bc2c0c99eae5a9376fbaf-1.gif) , ![E[Y] E[Y]](http://www.mathhelpforum.com/math-help/latex2/img/a7536de6a5a3e3d205f9bbe8598f2e41-1.gif) , ![E[X^2] E[X^2]](http://www.mathhelpforum.com/math-help/latex2/img/4d1d522fcf91e6ad6f6948a5e295ff59-1.gif) and ![E[Y^2] E[Y^2]](http://www.mathhelpforum.com/math-help/latex2/img/8a23c1b4166a611aa981e5f879fa62eb-1.gif) . In fact, the pdf of  is symmetric in  , so that  and  have same distribution and the formula reduces to: ![{\rm Corr}(X,Y)=\frac{E[XY]-E[X]^2}{E[X^2]-E[X]^2} {\rm Corr}(X,Y)=\frac{E[XY]-E[X]^2}{E[X^2]-E[X]^2}](http://www.mathhelpforum.com/math-help/latex2/img/6656230d0c56b5f73ca794f9dfc9c3ba-1.gif) .
To compute ![E[XY] E[XY]](http://www.mathhelpforum.com/math-help/latex2/img/6e440be6519e9782522cae0d403d758f-1.gif) , just integrate  times the pdf of  (over the square  ).
You can do the same with the other ones (integrating  and  ), but you may find it quicker to first determine the pdf of  . For that, you just have to integrate the pdf of  with respect to the variable  , keeping  fixed. |  I was just about to reply when I saw yours. I misread the question as find Cov(X, Y) ..... So it's lucky you replied first (although my reply would have got the OP half way ......  )
__________________ There are two things you should never try to prove: the impossible and the obvious. The greater danger for most of us lies not in setting our aim too high and falling short; but in setting our aim too low and achieving our mark. (Michelangelo Buonarroti) To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
| 
October 11th, 2008, 05:25 PM
| | Junior Member | | Join Date: Oct 2007
Posts: 55
Country: Thanks: 20
Thanked 0 Times in 0 Posts
| | Thanks so much, Ok this is what i got... E[XY] = 1/3
E[X]^2 = (1/3 + y/2)^2 = y^2/4 + 2y/6 + 1/9
E[X^2] = 1/4 + y/3
E[Y] = 1/3 + x/2
And as a final answer.. i gained..
y^4/16 - 2y^3/24 - 13y^2/144 + 10y/216 + 10/324 | 
October 11th, 2008, 05:29 PM
| | Super Member | | Join Date: Aug 2008 Location: Lyon, France
Posts: 780
Country: Thanks: 44
Thanked 501 Times in 420 Posts
| | Quote:
Originally Posted by brd_7 Thanks so much, Ok this is what i got...
E[X]^2 = (1/3 + y/2)^2 = y^2/4 + 2y/6 + 1/9 | There's no  in the answer (what is  ?). In order to find the average, you integrate  as well: ![E[X]=\int_0^1\int_0^1 x(x+y)dx\,dy E[X]=\int_0^1\int_0^1 x(x+y)dx\,dy](http://www.mathhelpforum.com/math-help/latex2/img/9ca4fb2b656be80e688152bfebd2499a-1.gif) . The same for  . | | The following users thank Laurent for this useful post: | |  | 
October 12th, 2008, 04:14 AM
| | Junior Member | | Join Date: Oct 2007
Posts: 55
Country: Thanks: 20
Thanked 0 Times in 0 Posts
| | Oh right, that makes sense.. Im assuming you would do the same if i needed E(Y)?
Well as a final answer i got -1/11..
Thanks for all the help again. | | Thread Tools | | | | Display Modes | Linear Mode |
Posting Rules
| You may not post new threads You may not post replies You may not post attachments You may not edit your posts HTML code is Off | | | All times are GMT -7. The time now is 12:08 AM. | | |