I'm confused about problems where we calculate a PDF conditioned on an event.
Consider this simple problem:
We have two random variables, X and Y, X is uniformly distributed on [a,b], and Y is uniform on [a,X]. We want to find the PDF of f(x|Y>y').
What's the best approach to calculate this?
An approach that comes to my mind is to define this PDF as the derivative of its CDF: $$ f(x|Y>y') = \frac{d}{dx}Pr(X<x|Y>y') = \frac{d}{dx}\left[\frac{Pr(X<x,Y>y')}{Pr(Y>y')}\right]=\frac{d}{dx}\left[\frac{\int_{a}^{x}\int_{y'}^{b}{f(x,y)dydx}}{\int_{y'}^{b}{f_{y}(y)dy}}\right] $$ And we know that: $$ f(y|x) = \begin{cases} \frac{1}{x-a} &a<y<x \\ 0 & \mbox{elsewhere} \end{cases} $$
$$ f(x,y) = f_x(x)*f(y|x) = \begin{cases} \frac{1}{(x-a)(b-a)} &a<y<x<b \\ 0 & \mbox{elsewhere} \end{cases} $$ $$ f_y(y) = \begin{cases} \int_{y}^{b}\frac{1}{(x-a)(b-a)}dx &a<y \\ 0 & \mbox{elsewhere} \end{cases} $$ Is this approach correct? Is there a better approach that's more straightforward?
I'm wondering whether maybe you meant to ask something like "given that X,Y are distributed in this way, what if we are told X>Y, i.e. what is p(X|X>Y)" ?
– gazza89 Jun 15 '23 at 14:01