• Support PF! Buy your school textbooks, materials and every day products Here!

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

  • #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?
 

Answers and Replies

  • #2
uart
Science Advisor
2,776
9
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
uart
Science Advisor
2,776
9
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
Ray Vickson
Science Advisor
Homework Helper
Dearly Missed
10,706
1,728
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
uart
Science Advisor
2,776
9
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:

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

Replies
2
Views
608
Replies
5
Views
1K
Replies
1
Views
1K
  • Last Post
Replies
3
Views
1K
  • Last Post
Replies
8
Views
1K
Replies
2
Views
1K
  • Last Post
Replies
2
Views
1K
Replies
0
Views
894
Replies
3
Views
1K
Top