Error in density function for sum of two uniform [0,1] variables

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
2 replies · 9K views
gimmytang
Messages
20
Reaction score
0
Hi, I need to calculate the density function of Z=X+Y, where X and Y are independent uniform distributed on [0,1]. The calculation is in the following:
[tex]f_{Z}(z)=\int_{A}dx[/tex]
a. If 0<z<1, A={x:0<x<z} then f(z) = z;
b. If 1<z<2, A={x:0<x<1} then f(z) = 1;
Step b is wrong, but I don't know where I am wrong. Any hint will be appreciated!
Thanks
gim :cry:
 
Physics news on Phys.org
For step b, the domain of x is z-1 to 1, so f(z)=2-z.

The reason for that is z-x=y, which is restricted to (0,1).
 
yep, you are right. thanks!