Question:
X follows uniform [0, 1] and Y|X follows uniform[0,X]. What is the distribution of X|Y?
My Try: $$f_{Y|X}(y|x) = \frac{f_{X,Y}(x,y)}{f_X(x)} = \frac{1}{x}, \, with\, f_X(x)=1$$ $$f_{X|Y}(x|y) = \frac{f_{X,Y}(x,y)}{f_Y(y)}$$
I am not sure how to get $f_Y(y)$, any hints or help are appreciated!