Conditional Probability of a continuous joint distribution function

Click For Summary

Homework Help Overview

The discussion revolves around conditional probability within the context of a continuous joint distribution function. Participants are exploring different methods to calculate probabilities and expectations involving random variables X and Y, specifically focusing on P(X<1|Y<1) and E[X|Y<1].

Discussion Character

  • Mixed

Approaches and Questions Raised

  • Participants describe two methods for calculating P(X<1|Y<1), one using the definition of conditional probability and the other involving conditional density functions. There is a noted discrepancy in results between these methods.
  • Questions arise regarding the validity of integrating conditional densities and how to approach the expectation E[X|Y<1].

Discussion Status

Some participants affirm the correctness of the first method for calculating conditional probability, while others express skepticism about the second method's approach. There is ongoing exploration of the implications of these methods and how they relate to the problem at hand.

Contextual Notes

Participants note the importance of clear presentation in mathematical expressions and the potential for misunderstanding if not properly formatted. There is also mention of needing to clarify assumptions regarding the integration of conditional densities.

h1a8
Messages
86
Reaction score
4
Homework Statement
For the following joint density
f(x,y)=3/4(2-x-y) for 0<x<2,0<y<2,x+y<2 and f(x,y) = 0 otherwise
1) What is the conditional probability P(X<1|Y<1)?
2) What is E[X|Y<1]?
Relevant Equations
1) P(A|B) = P(A and B)/P(B) or ∫_0^1▒∫_0^1▒〖f(x│y)dydx〗
for
2) E[X│Y]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx
For 1) I found two ways but I get difference results.
The first way is I use P(A|B) = P(A and B)/P(B).
I get P(X<1|Y<1)=(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗)/(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗+∫_1^2▒∫_0^(2-x)▒〖3/4 (2-x-y)dydx〗)=6/7

The 2nd method is I use is
f(x│y)=f(x,y)/(f_X (x) )=(3/4(2-x-y))/(∫_0^(2-x)▒〖3/4(2-x-y)dy〗)=(2(2-x-y))/〖(2-x)〗^2 for 0<x<2

So P(X<1│Y<1)=∫_0^1▒∫_0^1▒〖2(2-x-y)/(2-x)^2 dydx〗=ln⁡(4)-1/2

For 2) I know that E[X│Y]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx but I have no idea how to start E[X│Y<1]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx
Im thinking of a double integral maybe.

Thanks!
 

Attachments

Physics news on Phys.org
h1a8 said:
For 1) I found two ways but I get difference results.
The first way is I use P(A|B) = P(A and B)/P(B).
I get P(X<1|Y<1)=(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗)/(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗+∫_1^2▒∫_0^(2-x)▒〖3/4 (2-x-y)dydx〗)=6/7

The 2nd method is I use is
f(x│y)=f(x,y)/(f_X (x) )=(3/4(2-x-y))/(∫_0^(2-x)▒〖3/4(2-x-y)dy〗)=(2(2-x-y))/〖(2-x)〗^2 for 0<x<2

So P(X<1│Y<1)=∫_0^1▒∫_0^1▒〖2(2-x-y)/(2-x)^2 dydx〗=ln⁡(4)-1/2

For 2) I know that E[X│Y]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx but I have no idea how to start E[X│Y<1]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx
Im thinking of a double integral maybe.

Thanks!
You might get a lot more responses to your posts if you made then in a readable form. Take a look at https://www.physicsforums.com/help/latexhelp/ for a simple way to do this. Your equations are almost there as you wrote them. You only need to enclose them in "\$$" and fix a couple of things and you have it. I did this with some of what you have written so I could read it and got this: $$P(X<1|Y<1)=\frac{(\int_0^1\int_0^1〖3/4 (2-x-y)dydx〗)}{(\int_0^1\int_0^1〖3/4 (2-x-y)dydx〗+\int_1^2\int_0^{2-x}〖3/4 (2-x-y)dydx〗)}=6/7$$
$$f(x│y)=f(x,y)/(f_X (x) )=(3/4(2-x-y))/(∫_0^{2-x}〖3/4(2-x-y)dy〗)=(2(2-x-y))/〖(2-x)〗^2$$ for 0<x<2

So $$P(X<1│Y<1)=∫_0^1∫_0^1〖2(2-x-y)/(2-x)^2 dydx〗=ln⁡(4)-1/2$$
You can see what I did by right clicking on an equation and choosing "Show Math as>Tex Commands" from the menu. It won't show the "\$$" delimiters, but it will show everything else.

That said, your first method of solving for the conditional probability is correct. In the second one you assume that you can integrate ##f(x|y)## over ##y##, and that is not correct.
 
Last edited:
h1a8 said:
For 1) I found two ways but I get difference results.
The first way is I use P(A|B) = P(A and B)/P(B).
I get P(X<1|Y<1)=(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗)/(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗+∫_1^2▒∫_0^(2-x)▒〖3/4 (2-x-y)dydx〗)=6/7

The 2nd method is I use is
f(x│y)=f(x,y)/(f_X (x) )=(3/4(2-x-y))/(∫_0^(2-x)▒〖3/4(2-x-y)dy〗)=(2(2-x-y))/〖(2-x)〗^2 for 0<x<2

So P(X<1│Y<1)=∫_0^1▒∫_0^1▒〖2(2-x-y)/(2-x)^2 dydx〗=ln⁡(4)-1/2

For 2) I know that E[X│Y]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx but I have no idea how to start E[X│Y<1]=∫_0^(2-y)▒〖x∙(f(x,y))/(f_Y (y))〗 dx
Im thinking of a double integral maybe.

Thanks!
The first method you used is correct; it uses the definition of conditional probability and correctly calculates all the needed quantities.

The second method seems to be some sort of mysterious new method that you invented for yourself, and as far as I can see makes no sense. ##P(A | Y < 1)## is not related in any simple way to ##P(A|y)##

I did not look at your attachments, as I typically cannot get such things to open properly on my laptop and not open in any form at all on my i-phone. Just type out your work, as you have done, but take care to separate and label different parts of the calculation. Instead of trying to type out everything on one line, why not use some words and separate lines to clarify what you are doing? Instead of saying "I get P(X<1|Y<1)=(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗)/(∫_0^1▒∫_0^1▒〖3/4 (2-x-y)dydx〗+∫_1^2▒∫_0^(2-x)▒〖3/4 (2-x-y)dydx〗)=6/7", why not say
P(X < 1 and Y < 1) = int_{x=0..1} int_{y=0..1} f(x,y) dx dy = ... (complete here)... and then, possibly on another line
P(Y < 1) = int_{x=0..1} int_{y=0..1} f(x,y) dx dy + int_{x=1..2} int_{y=0..2-x) f(x,y) dx dy = ...(complete here). Then, take the ratio to get the answer. No extra work involved, but a presentation that is much clearer and easier to follow.
 
Last edited:
tnich said:
You might get a lot more responses to your posts if you made then in a readable form. Take a look at https://www.physicsforums.com/help/latexhelp/ for a simple way to do this. Your equations are almost there as you wrote them. You only need to enclose them in "\$$" and fix a couple of things and you have it. I did this with some of what you have written so I could read it and got this: $$P(X<1|Y<1)=\frac{(\int_0^1\int_0^1〖3/4 (2-x-y)dydx〗)}{(\int_0^1\int_0^1〖3/4 (2-x-y)dydx〗+\int_1^2\int_0^{2-x}〖3/4 (2-x-y)dydx〗)}=6/7$$
$$f(x│y)=f(x,y)/(f_X (x) )=(3/4(2-x-y))/(∫_0^{2-x}〖3/4(2-x-y)dy〗)=(2(2-x-y))/〖(2-x)〗^2$$ for 0<x<2

So $$P(X<1│Y<1)=∫_0^1∫_0^1〖2(2-x-y)/(2-x)^2 dydx〗=ln⁡(4)-1/2$$
You can see what I did by right clicking on an equation and choosing "Show Math as>Tex Commands" from the menu. It won't show the "\$$" delimiters, but it will show everything else.

That said, your first method of solving for the conditional probability is correct. In the second one you assume that you can integrate ##f(x|y)## over ##y##, and that is not correct.
For the second part, you need the conditional density f(x|Y<1). Your method 1 solution of the first part of the problem shows that you already know what it is. You have integrated it to calculate the conditional cumulative distribution function at x = 1.
 

Similar threads

  • · Replies 4 ·
Replies
4
Views
1K
  • · Replies 10 ·
Replies
10
Views
2K
  • · Replies 5 ·
Replies
5
Views
3K
  • · Replies 2 ·
Replies
2
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 11 ·
Replies
11
Views
2K
Replies
7
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K