Finding the pdf of a random variable which is a function of another rv

In summary, the conversation discusses the computation of E(X) and E(Y) for a given density function. It also delves into the determination of the density function for Y using the formula F_{Y}(y)=F_{X}(g^{-1}(y)). However, this formula is incorrect and should be corrected to F_{Y}(y)=1 - F_{X}(1/y) to obtain the correct probability density.
  • #1

Homework Statement


Let f(x)=x/8 be the density of X on [0,4], zero elsewhere.

a) Show that f(x) is a valid density and compute E(X)
b) Define Y=1/X. Calculate E(Y)
c) Determine the density function for Y

The Attempt at a Solution


a) is just really basic. I've solved that one.

b) Without any "fuss" about it, i set g(x)=1/x, and use the following formula
[itex]\int^4_0(1/x*x/8)[/itex] = 1/2

c) Here the problem starts... So from my lecture notes i know that
[itex]F_{Y}(y)=F_{X}(g^{-1}(y))[/itex]

Y=1/X --> X=1/Y=g^-1(y)

Using this i can write the above as
[itex]F_{Y}(y)=F_{X}(g^{-1}(1/y))[/itex]

the pdf is then:

[itex]f_{Y}(y)=f_{X}(1/y)*(-1/y^{2})[/itex]

From here, I do not know how to proceed, any clues?
 
Physics news on Phys.org
  • #2
Charlotte87 said:
c) Here the problem starts... So from my lecture notes i know that
[itex]F_{Y}(y)=F_{X}(g^{-1}(y))[/itex]

Y=1/X --> X=1/Y=g^-1(y)

Using this i can write the above as
[itex]F_{Y}(y)=F_{X}(g^{-1}(1/y))[/itex]
Should be just be [itex]F_{Y}(y)=F_{X}(1/y)[/itex]


[itex]f_{Y}(y)=f_{X}(1/y)*(-1/y^{2})[/itex]

From here, I do not know how to proceed, any clues?
Well that's actually your answer right there, if you just sub in [itex]f_{X}(1/y) = 1/(8y)[/itex] to your final equation. Though that solution is not quite correct, as the "prepackaged" equations have let you down.

To see that this is incorrect just subst in as above and you'll find that the result this gives you is,
[tex]f_{Y}(y) = -1/(8y^3)[/tex]

Clearly this is wrong (because of the negative sign).
 
  • #3
To do this problem without using the prepacked equations, just start by writing the definition of [itex]F_{Y}(y)[/itex] as,

[tex]F_{Y}(y) = P(\frac{1}{x} < y)[/tex]

which for +ive x,y is equivalent to,

[tex]F_{Y}(y) = P(x > \frac{1}{y})[/tex]

Now solve the above using the appropriate integral and then differentiate wrt y to find [itex]f_{Y}(y)[/itex].
 
  • #4
uart said:
Should be just be [itex]F_{Y}(y)=F_{X}(1/y)[/itex]



Well that's actually your answer right there, if you just sub in [itex]f_{X}(1/y) = 1/(8y)[/itex] to your final equation. Though that solution is not quite correct, as the "prepackaged" equations have let you down.

To see that this is incorrect just subst in as above and you'll find that the result this gives you is,
[tex]f_{Y}(y) = -1/(8y^3)[/tex]

Clearly this is wrong (because of the negative sign).

The statement
[tex] F_Y(y) = F_X(1/y) [/tex] is incorrect. It should be
[tex] F_Y(y) = 1 - F_X(1/y), [/tex]
because [itex] \Pr\{ Y \leq y \} = \Pr \{ X \geq 1/y \}.[/itex] Now when you differentiate wrt y you get the correct probability density.

RGV
 
  • #5
Ray Vickson said:
The statement
[tex] F_Y(y) = F_X(1/y) [/tex] is incorrect. It should be
[tex] F_Y(y) = 1 - F_X(1/y), [/tex]
because [itex] \Pr\{ Y \leq y \} = \Pr \{ X \geq 1/y \}.[/itex] Now when you differentiate wrt y you get the correct probability density.

RGV

Hi Ray. I was merely pointing out that the statement [itex]F_Y(y) = F_X(1/y) [/itex] is what the OP should have written at that point if they had correctly substituted into the previous line of their own derivation. I clearly pointed out however, that it was not the correct way to do the problem. :)
 
Last edited:

Suggested for: Finding the pdf of a random variable which is a function of another rv

Replies
1
Views
448
Replies
11
Views
905
Replies
10
Views
673
Replies
10
Views
729
Replies
1
Views
678
Replies
9
Views
986
Replies
5
Views
815
Replies
4
Views
689
Replies
1
Views
452
Replies
1
Views
536
Back
Top