Cumulative distribution function

ulissess
Messages
36
Reaction score
0
i have two random variables x e y independent and they're uniform on the interval [0, 1] find cumulative distribution function of Z= (x+y)/(x-y)

i just try to solve...

[PLAIN]http://img202.imageshack.us/img202/5647/97250438.jpg

is it right?
 
Last edited by a moderator:
Physics news on Phys.org
For a function F(z) to qualify as a CDF,
  • The function must be monotonic: F(z) ≥ F(a) for all z>a
  • The function must be zero at the low end of the range: F(zmin) = 0
  • The function must be one at the high end of the rangeL F(zmax) = 1.

Given that, does your result look like a CDF?

A couple of hints:
1. Your limits of integration aren't right.
2. What values can z take on? Can it be a large negative number? A large positive number? Zero?
 
i don't understand how find the limits of integration :(

if z=0 => F_Z(z)=1/2
if z--> oo ==> F_Z(z)=-1/2

so this isn't a cdf.. can i try change of variables? how can i undestand what to use for solve these type of exercises?
 
Last edited:
How can z ever be zero? Think about it.
 
A couple of other hints:

1. Note that z is negative when y>x, positive when y<x.

2. z can never be zero. In fact, there is some interval that contains z=0 that cannot be reached by any x,y in [0,1]. What is this interval?
 
thank you for the help..

(x+y)/(x-y)< z ==> i have 2 disequations x-y > 0 and x+y - z(x-y) < 0 with x>y my disequation is valid. So, i believe, i must use that 2 disequations for my integral.
i don't understand your 2. hint, i don't believe exist: [0,1] is an interval all positive.
 
Regarding hint #2: With x and y both constrained to [0,1], name any (x,y) pair that yields z=0 or z=1/2 (just to pick two impossible z values). There is an interval of z values that cannot be attained. Your CDF must reflect this interval.
 
with X=-Y i'll have Z=0 but negative values i cannot have it because my interval is [0,1]
 
Exactly. Now what about z=1/2? Can you find an (x,y) pair with both x and y restricted to [0,1] that yields z=1/2? What about z=-1/2 or z=3/4?
 
  • #10
y=1, x=-3 ==> z=1/2 but x is negative and it's < 1
y=1, x=-7 ==> z=3/4 .. it's impossible .. so? any value is impossible.. my interval is (-oo,+oo)?
 
  • #11
ulissess said:
y=1, x=-3 ==> z=1/2 but x is negative and it's < 1
y=1, x=-7 ==> z=3/4 .. it's impossible .. so? any value is impossible.. my interval is (-oo,+oo)?
You are missing my point. Forget about the fact that the probability of obtaining a specific value is "impossible". There is a big difference between drawing 1/2 from U(0,1) than drawing a value of 4. The difference is that the probability of drawing a value in a small but finite neighborhood of 1/2 is non-zero while the probability of drawing a value in a small but finite neighborhood of 4 is zero. Back to the problem at hand, the probability of obtaining a z value in a small but finite neighborhood of zero is zero.
 
  • #12
now i have understood hehehe (i don't speak very well english language), so z can to have values in (0,1)... so my 2° integral in dy is wrong.. how can i find this interval?
 
  • #13
How about z = -1/2 ?

One thing you need to do is to get your mapping from (x,z) to y correct. It isn't.

It might be easier to find the PDF f(z) and integrate it to form F(z) rather than finding F(z) directly. To find f(z), try to determine the probability that Z is between z and z+dz, where dz is small (infinitesimally small).
 
  • #14
[PLAIN]http://img338.imageshack.us/img338/4998/34928228.jpg

[PLAIN]http://img89.imageshack.us/img89/2320/93533692.jpg

z= -1/2 it's negative, the probability is 0, it's right?
 
Last edited by a moderator:
  • #15
As is, your Fz(z) is not a CDF. It is, however, part of the answer.

To arrive at the answer you will need to find the range of z and incorporate this into your result.
 
  • #16
maybe, i believe ( 0< z < 1 --> -1/(z-1) ), ( z<=0 --> 0 ), ( z=>1 --> 1 )

but if i want solve directly F(z) what interval i use?
 
  • #17
One more time: Can z ever be -1/2? How about -3/4?

Don't just guess! Think about the problem.
 
  • #18
i believe z=-1/2 and z=-3/4 cannot be, because the Domain is (0,1) so only positive quantity between 0 to 1 are accepted
 
  • #19
ulissess said:
maybe, i believe ( 0< z < 1 --> -1/(z-1) ), ( z<=0 --> 0 ), ( z=>1 --> 1 )
I don't know what you are saying here.

You have yet to answer my question: What (x,y) pairs (if any) with x and y restricted to [0,1] yields a z value of -1/2?

You need to know what values of z are attainable here. Knowing this is crucial to answering the problem.
 
  • #20
all z\neq1 are attainable here.. because with z=1 become impossibile this fraction -1/(z-1)
 
  • #21
NO!

What about z=0? 1/2? -1/2?
 
  • #22
y=-7x i yield z=-4/3
y=- 3x i yield z=-1/2
y=-1/3x i yield z=1/2
y=-x i yield z=0
y=x=0 i yield z=1
 
Last edited:
  • #23
Try plotting z vs. x for some fixed value of y, say y=0.5. What's the range of values for z?
 
  • #24
[PLAIN]http://img251.imageshack.us/img251/552/97845663.jpg

is it right?
 
Last edited by a moderator:
  • #25
Have you tried to the suggestion in post #23?

You might also want to plot z as a function of y for different fixed values of x.
 
  • #26
Z=(x+y)/(x-y)

D: {R^2 \ (x-y\neq0)} so if y=0.5 ==> x\neq0.5

why is it important ? Is the range all the values x-y\neq0 ?
 
  • #27
You're talking about the domain, not the range. You first have to understand what the allowed values of Z are before you have a hope to figure out its cdf. That's why we are suggesting you plot the function to see the range. You don't need to plot the function to figure out its domain.
 
  • #28
yes i have understood... but i don't know how to plot a function in 3d.. it's difficult to image it.
 
  • #29
That's why I suggested fixing y at some value, so you only have to do a 2D plot. Once you understand the shape of that basic graph, you should be able to understand how it changes as you vary y.
 
  • #30
z=(x+0.5)/(x-0.5)

[PLAIN]http://img34.imageshack.us/img34/6961/37903189.jpg

the function is positive in (-oo; -0.5] U (0.5; +oo) and negative in (-0.5 ; 0.5) so my range is my positive interval?
So my range of my function z=(x+y)/(x-y) is (-oo; -y] U (y; +oo) is it right??
 
Last edited by a moderator:
  • #31
You did not restrict x to [0,1] in that plot. What happens to z when x is outside of [0,1] is irrelevant.
 
  • #32
my range is (0.5; 1], if x \in [0,1]
 
  • #33
No, it isn't. Look at the plot. Look at the equation.
 
  • #34
if x=1 ==> z=3 so exist a point of the function in x \in [0,1]... or z \in [0,1] too? If z and x \in [0,1] doesn't exist the function in this interval
 
  • #35
When x=1, you have z=3. As x decreases toward 0.5, the graph goes up, which means z increases. There's a vertical asymptote at x=0.5, so as you get closer and closer to x=0.5, z grows without bound, right? So you know z takes on some value in [3,∞) when x is in (0.5,1]. What values of z do you get when x is in [0,0.5)?
 
  • #36
oh yes, sorry ... (-∞,-1] when x is in [0,0.5).. so my z has values in (-∞, -1] U [z,∞) ... z=1 if y=0 .
So i can integrate my PDF in those intervals, in (-1,1) instead my PDF is zero because i haven't my function in that interval. All right?
Slowly I'm coming near the solution, thank you !
 
Last edited:
  • #37
Finally! Very good.
 
  • #38
thank you! i have tried to do the integrals...

[PLAIN]http://img51.imageshack.us/img51/4570/97869363.jpg

in [1,+oo] my PDF change? why? have i used good the integrals?
 
Last edited by a moderator:
  • #39
No, you haven't.

You need to show your work, and please explain your variables and your steps when you do so. If all you show are your final results it is a bit tough to figure out where you went wrong.
 
  • #40
yes sorry.. i was thinking this...( 2w/(z-1)^2 is my jacobian)

[PLAIN]http://img600.imageshack.us/img600/79/26405949.jpg

so this is my PDF but now i don't know what interval use for the CDF
 
Last edited by a moderator:
  • #41
You still have something very wrong there. Look back to your post #14, where you essentially got it right for z<-1. It should be obvious what the pdf looks like from z=-1 to z=1.

The only remaining issue is what the pdf looks like for z>1. Hint: Is there any symmetry that you can use here?
 
  • #42
[PLAIN]http://img121.imageshack.us/img121/5523/84830083.jpg
so maybe this is correct, but i don't understand any things. I've integrated f(z) in dw=dy (z is constant): y is in (0,1) so i have integrated in this interval, the second f(z) I've integrated in dw but i have limited x in (0,1) and i have seen how vary the y. right? How do i understand why the second f(z) is used in z>1 and -1<z<1 and the first in z<-1? I believed the pdf in -1<z<1 was zero, why has it a pdf if it doesn't exist in x (0,1)?
 
Last edited by a moderator:
  • #43
You need to explain why you are making the steps you are making.

One problem here is that you are assuming that one simple expression describes the pdf from -infinity to infinity. That this is not the case should be obvious given that the pdf has to be identically zero for z between -1 and 1.
 
  • #44
Well, i don't know.. i just try to find a solution. I'm thinking from 3 hours. (z-1)/(z+1) i believe is the curve between 1 and +inf so F(z) use that density but for z<-1 use another pdf between (0,1) so .. I'm lost. Suggestion?
 
  • #45
It might help you to figure out what the curves z=constant look like in the xy plane.
 
  • #46
[PLAIN]http://img689.imageshack.us/img689/6431/55725049.jpg

[PLAIN]http://img262.imageshack.us/img262/1655/46800016.jpg

i've solved so..
 
Last edited by a moderator:
  • #47
What is that diagram supposed to represent?
 
  • #48
y=(z+1)/(z-1)*x
 
  • #49
sorry I'm very shallow...

with z in (-oo,-1)

[PLAIN]http://img256.imageshack.us/img256/1354/unoir.jpg

F_z(z)=1*(z+1)/(z-1)*0.5 (area of triangle)

with z in (1,+oo)

[PLAIN]http://img26.imageshack.us/img26/4328/duep.jpg

F_z(z)=1*(z-1)/(z+1)*0.5 (area of triangle)
 
Last edited by a moderator:
  • #50
Ah, that's better, but you got the fractions upside down. From earlier in the thread, you correctly had

y=\frac{1-z}{1+z}x

which doesn't match with what you have on your diagrams.

If you want to go straight to FZ(z) by computing areas, you need to make sure you're looking at the right areas, so think about which lines z=±1 and z=±∞ correspond to. (Note you can also use this to figure out what the correct limits on your earlier integrals should be.)
 
Back
Top