Roman C. answered 06/18/16
Tutor
5.0
(852)
Masters of Education Graduate with Mathematics Expertise
The CDF is just P(X≤x) = ∫x-∞ f(t) dt
If two PDF's differ in a countable subset of R (which includes a finite set of x's), then the CDF's are identical.
This is the case here so the CDFs are the same.
Let's compute the CDF common to both cases.
Since f(x) = 0 for all x≤0 in both cases, F(x)=0 in (-∞,-1].
Next, for (-1,0] region,
F(x) = 0 + ∫-1x (1+t) dt
= (t+t2/2)|-1x
= (x+x2/2) - ((-1)+(-1)2/2)
= x2/2 + x + 1/2
= (x+1)2/2
Next, for (0,1) region,
F(x) = F(0)+ ∫0x (1-t) dt
= 1/2 + (t - t2/2)|0x
= 1/2 + x - x2/2
= 1 - (x - 1)2/2
Finally, F(x) = 1 for the interval [1,∞).