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

Click For Summary

Homework Help Overview

The discussion revolves around finding the probability density function (pdf) of a random variable Y defined as a function of another random variable X, specifically Y = 1/X. The original poster presents a problem involving the density function f(x) = x/8 on the interval [0, 4] and explores the implications of this transformation.

Discussion Character

  • Exploratory, Conceptual clarification, Mathematical reasoning, Problem interpretation, Assumption checking

Approaches and Questions Raised

  • Participants discuss the validity of the density function and the calculation of expected values. They explore the transformation of variables and the corresponding cumulative distribution functions (CDFs). There is a focus on the correct application of formulas and the implications of substitutions made during the derivation of the pdf for Y.

Discussion Status

The discussion is active, with participants offering various insights and corrections regarding the derivation of the pdf for Y. Some participants suggest alternative approaches to derive the cumulative distribution function, while others point out potential errors in the original poster's reasoning. There is an ongoing examination of the assumptions and definitions involved in the problem.

Contextual Notes

Participants note that the original poster's approach may rely on "prepackaged" equations that could lead to incorrect results. There is a mention of the need to differentiate correctly to find the pdf, as well as the importance of understanding the relationship between the random variables involved.

Charlotte87
Messages
18
Reaction score
0

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
\int^4_0(1/x*x/8) = 1/2

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

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

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

the pdf is then:

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

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

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

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

From here, I do not know how to proceed, any clues?
Well that's actually your answer right there, if you just sub in f_{X}(1/y) = 1/(8y) 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,
f_{Y}(y) = -1/(8y^3)

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

F_{Y}(y) = P(\frac{1}{x} < y)

which for +ive x,y is equivalent to,

F_{Y}(y) = P(x > \frac{1}{y})

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



Well that's actually your answer right there, if you just sub in f_{X}(1/y) = 1/(8y) 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,
f_{Y}(y) = -1/(8y^3)

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

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

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

RGV

Hi Ray. I was merely pointing out that the statement F_Y(y) = F_X(1/y) 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:

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
Replies
20
Views
2K
  • · Replies 6 ·
Replies
6
Views
2K
Replies
11
Views
3K
Replies
2
Views
2K
Replies
8
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
1
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K