Finding a marginal probability density (stuck at the integration)

MathNugget

New member
Joined
Feb 1, 2024
Messages
36
Hello.
This is [imath]f(x, y) = y x^{y-1}e^{-y}\mathbb{1}_{(0, \infty)}(y)\mathbb{1}_{(0, 1)}(x)[/imath]
Trying to find the marginal probability density of Y.
so I am supposed to solve:
[math]f_Y(x, y)= \int_{-\infty}^{\infty}y x^{y-1}e^{-y}\mathbb{1}_{(0, \infty)}(y)\mathbb{1}_{(0, 1)}(x)dx = ye^{-y}\mathbb{1}_{(0, \infty)}(y) \int_{-\infty}^{\infty}x^{y-1} \mathbb{1}_{(0, 1)}(x) dx = ye^{-y}\mathbb{1}_{(0, \infty)}(y) \int_{0}^{1}x^{y-1} dx = ...[/math]now I suppose [imath]\mathbb{1}_{(0, \infty)}(y)[/imath] tells me y > 0, so
[math]\int x^{y-1} dx = \frac{x^y}{y}[/math][math]\int_{0}^{1}x^{y-1} dx = \frac{1}{y}?[/math]
Is it [math]f_Y(x, y)=ye^{-y}\mathbb{1}_{(0, \infty)}(y) \frac{1}{y}= e^{-y}\mathbb{1}_{(0, \infty)}(y)?[/math]
 
Last edited:
1)
Ok, thanks.
I realize now, I could get rid of x in the last part and write [imath]f_Y (y)[/imath].

I hope it's not against the forum rules, but I have some further questions (I dont want to spam the forum, but they're only half-related as they're part of the same exercise):
(my choice of words to describe these statistics notions might be wrong, I am trying to double check with chat gpt):
If I want to simulate some random variables from this [imath]f_Y[/imath], I know 2 methods: one is to calculate F from f, and then its inverse, and then I have a formula, second is to find another function, g(y) , such that [imath]f_Y(y)[/imath]<cg(y)...

I guess I can use the first method on this, but would the usual formula work here?
[math]F_Y(y) = \int_{-\infty}^{x}f_Y(y)dy?[/math]I see [imath]f_Y[/imath] is very easy to integrate, so I am tempted to use the first method (if it can be applied)
 
Last edited:
I figured I can leave for questions here, it might be more effective:

2) How do I find the density of X with the condition that Y=y?
Is it: [imath]f_{X | Y} (X=x | Y=y) = \frac{f_{X,Y}(x, y)}{f_Y(y)}[/imath], and then I just do some simple calculations?

Furthermore, when calculating [imath]\mathbb{P}(X \leq x | Y =y)[/imath], do I just [imath]\int_{-\infty}^{x}f_{X | Y} (X=x | Y=y) dx[/imath]
 
Top