Understanding the CDF & PDF of X's Difference

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
5 replies · 8K views
roemi
Messages
5
Reaction score
0
Hi guys!

Homework Statement



Do you know how to get the cdf and pdf of the absolute difference of two iid standard uniform X1 and X2 : X = |X1 − X2| ?

Homework Equations



Come across http://en.wikipedia.org/wiki/Triang...difference_of_two_standard_uniform_variables" we know that the cdf is 2x - x2 and the pdf is 2 -2x.
How do we get/prove it?Thank you very much!
 
Last edited by a moderator:
Physics news on Phys.org


The Attempt at a Solution



Is it solvable using the joint pdf ? Still trying various boundaries for the integral... kinda stuck there... please help ... T_T
[tex]F_{X}(x) = \int \int_{|x_{1}-x_{2}|\leq x} f_{x_{1}}(x_{1}) f_{x_{2}}(x_{2}) dx_{1}dx_{2}[/tex]
 


roemi said:

The Attempt at a Solution



Is it solvable using the joint pdf ? Still trying various boundaries for the integral... kinda stuck there... please help ... T_T
[tex]F_{X}(x) = \int \int_{|x_{1}-x_{2}|\leq x} f_{x_{1}}(x_{1}) f_{x_{2}}(x_{2}) dx_{1}dx_{2}[/tex]

Yes, this is the way to do it. I'll use different variables to simplify notation. X is uniform on [0,1], and so is Y.

Fix t. Find P(|X-Y|<t). Draw the region {(x,y) : |x - y| < t}. Intersect it with the unit square [0,1] x [0,1]. The shape of the resulting region depends on t. For the interesting (i.e. nontrivial) values of t, you get a hexagon.

Since f_X(x) and f_Y(y) are constants, the "integration" can be done simply by using elementary geometry formulas (e.g. area of square, area of triangle).
 


Thanks for the reply.

Umm... what would be the boundaries/intervals in the first and second integral ?
 


*bump*

Anyone interested in solving this problem, please don't hesitate,

still waiting ... :)