Continuous Variable pdf from a cdf

Click For Summary

Homework Help Overview

The discussion revolves around finding the probability density function (pdf) of the random variable W = 2X + Y, given the joint probability density function f X,Y(x,y) = (8 + xy^3)/64 for the ranges -1 < x < 1 and -2 < y < 2. Participants are exploring the relationship between the cumulative distribution function (cdf) and the pdf through integration.

Discussion Character

  • Exploratory, Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss the support of W and the need to break the problem into regions for integration. There are attempts to set up double integrals for different ranges of W, with some expressing uncertainty about their setups. Questions arise regarding the identification of regions and the correctness of the integration bounds.

Discussion Status

Some participants have provided insights into the regions of integration and clarified misunderstandings about the lines defining these regions. There is ongoing exploration of the integration process, with participants sharing their results and questioning discrepancies in their findings. The discussion reflects a collaborative effort to refine understanding and approach.

Contextual Notes

Participants note that they are constrained to methods covered in class, which influences their approaches to finding the cdf and pdf. There is also mention of potential errors in calculations and the importance of ensuring that the total probability integrates to 1.

Aria1
Messages
21
Reaction score
0

Homework Statement


f X,Y(x,y) = (8 +xy^3)/64, if -1<x<1, -2<y<2
0, otherwise
Find the probability density function of W = 2X+Y.


Homework Equations


F(w) = Pr{W≤w}=∫∫f(x,y)dxdy
f(w) = d/dw F(w)


The Attempt at a Solution


I found the support of W to be -4<w<4
I think the region should be broken up into: F(w) = 0, w<-4
A, -4≤w<0
B, 0≤w<4
1, 4≤w<∞
For expression B, I took the double integral: ∫-2 to 2 ∫ -1 to (w-y)/2 [(8+xy^3)/64]dxdy and got (w+5)/10.

The x-bound (w-y)/2 comes from the given 2X+Y=W, isolating X

For expression A, I tried the double integral ∫-2 to (w+2)∫-1 to (w-y)/2 [(8+xy^3)/64]dxdy, but am finding myself unsure of this setup (the result is a very lengthy integral). The y-bound of w+2 comes from the top intersection point of the line 2X+Y=W and x=-1.

Is there some flaw in my logic here? Any input on any part of this is much appreciated...I'm not positive about any of it, so if you see a flaw somewhere, please let me know. Also, just to clarify, what I am doing is trying to find the cdf which I can then differentiate to get the pdf. There may be other ways, but this is the only method we have covered thus far in class, so if we can stick to that, it would be great! Thanks!
 
Physics news on Phys.org
Aria1 said:

Homework Statement


f X,Y(x,y) = (8 +xy^3)/64, if -1<x<1, -2<y<2
0, otherwise
Find the probability density function of W = 2X+Y.


Homework Equations


F(w) = Pr{W≤w}=∫∫f(x,y)dxdy
f(w) = d/dw F(w)


The Attempt at a Solution


I found the support of W to be -4<w<4
I think the region should be broken up into: F(w) = 0, w<-4
A, -4≤w<0
B, 0≤w<4
1, 4≤w<∞
For expression B, I took the double integral: ∫-2 to 2 ∫ -1 to (w-y)/2 [(8+xy^3)/64]dxdy and got (w+5)/10.

The x-bound (w-y)/2 comes from the given 2X+Y=W, isolating X

For expression A, I tried the double integral ∫-2 to (w+2)∫-1 to (w-y)/2 [(8+xy^3)/64]dxdy, but am finding myself unsure of this setup (the result is a very lengthy integral). The y-bound of w+2 comes from the top intersection point of the line 2X+Y=W and x=-1.

Is there some flaw in my logic here? Any input on any part of this is much appreciated...I'm not positive about any of it, so if you see a flaw somewhere, please let me know. Also, just to clarify, what I am doing is trying to find the cdf which I can then differentiate to get the pdf. There may be other ways, but this is the only method we have covered thus far in class, so if we can stick to that, it would be great! Thanks!

Your basic method is OK, but you are missing a region. Besides the "trivial" regions {w < -4} (where F(w) = 0) and {w > 4} (where F(w) = 1) you should have three regions:
(1) region A, bounded on the right by the line L1 (2x+y = w passing through the corner (-1,2) );
(2) region B bounded on the left by line L1 and on the right by line L2 (the line 2x+y=w passing through the corner (1,-2)); and
(3) region C, bounded on the left by line L2.

In regions A and C it does not matter much whether you first integrate over x and then over y, or vice-versa. However, in region B it matters a lot: you should draw a diagram to see which approach is the easiest.

RGV
 
I don't quite understand the difference between your L1 and L2. Isn't the line 2x+y=w that passes through (-1,2) and the line 2x+y=w that passes through (1,-2) the same line? The diagram I have is of a rectangle with bounds -1<x<1, -2<y<2, with the line 2x+y=w passing through the rectangle at any point. The line passing through (-1,2) and (1,-2) also passes through the origin. With this diagram, I am not seeing the three regions, so perhaps my diagram is incorrect in some way? Thank you for your help.
 
Aria1 said:
I don't quite understand the difference between your L1 and L2. Isn't the line 2x+y=w that passes through (-1,2) and the line 2x+y=w that passes through (1,-2) the same line? The diagram I have is of a rectangle with bounds -1<x<1, -2<y<2, with the line 2x+y=w passing through the rectangle at any point. The line passing through (-1,2) and (1,-2) also passes through the origin. With this diagram, I am not seeing the three regions, so perhaps my diagram is incorrect in some way? Thank you for your help.

You are right, of course; I had a brain meltdown, and temporarily thought of the rectangle as 4x2 instead of 2x4. I should not post late at night.
 
That's completely fine...I'm just glad I wasn't completely misunderstanding things :) With that clarification, my method looks correct to you then?
 
Aria1 said:
That's completely fine...I'm just glad I wasn't completely misunderstanding things :) With that clarification, my method looks correct to you then?

Yes.
 
Thanks so much!
 
Ray Vickson said:
Yes.

I ended up with F(w) = 0, w<-4
(1/512)((w^6)/60 - w^4 - (16/3)(w^3) + (512/5)w + (904/3)), -4≤w<0
(w+5)/10 , 0≤ w< 4
1, 4≤w
From there, f(w) = (1/512)((w^5)/10 - 4w^3 - 16w^2 + (512/5)), -4<w<0
1/10, 0<w<4
0, otherwise
When I integrate f(w) from -4 to 4, however, I get 0.9 not 1. Any insights as to what might be going wrong?
 
Aria1 said:
I ended up with F(w) = 0, w<-4
(1/512)((w^6)/60 - w^4 - (16/3)(w^3) + (512/5)w + (904/3)), -4≤w<0

The (904/3) should be 248, but that does not alter the pdf
 
  • #10
Aria1 said:
I ended up with F(w) = 0, w<-4
(1/512)((w^6)/60 - w^4 - (16/3)(w^3) + (512/5)w + (904/3)), -4≤w<0
(w+5)/10 , 0≤ w< 4
1, 4≤w
From there, f(w) = (1/512)((w^5)/10 - 4w^3 - 16w^2 + (512/5)), -4<w<0
1/10, 0<w<4
0, otherwise
When I integrate f(w) from -4 to 4, however, I get 0.9 not 1. Any insights as to what might be going wrong?

I get:
F(w) = \int_{y=-2}^{2+w} \int_{x=-1}^{(w-y)/2} f(x,y) \, dx \, dy \\<br /> = \frac{1}{2} + \frac{1}{5} w -\frac{1}{96} w^3- \frac{1}{512} y^4 + \frac{1}{30720}y^6
for -4 < w < 0
and
F(w) = 1 - \int_{y=w-2}^2 \int_{x=(w-y)/2}^1 f(x,y) \,dx \, dy \\<br /> = \frac{1}{2} + \frac{1}{5} w -\frac{1}{96} w^3+ \frac{1}{512} y^4 - \frac{1}{30720}y^6
for 0 < w < 4. This gives F(4) = 1, as it should, since F(w) is the cdf.

I did all computations using Maple.
 
Last edited:

Similar threads

Replies
11
Views
3K
  • · Replies 21 ·
Replies
21
Views
2K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 18 ·
Replies
18
Views
3K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
8
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
2
Views
2K