TeenieBopper
- 27
- 0
Homework Statement
Find the CDF of f(x) = <br /> |\frac{x}{4}| if -2<x<2 \\<br /> 0 otherwise<br />
Homework Equations
The Attempt at a Solution
I have to integrate the pdf and to do so, I have to split it into two parts
\int_{-x}^{0}\frac{-t}{4}dt + \int_{0}{x}\frac{t}{4}dt
integrating I get \frac{x^2}{8} + \frac{x^2}{8} = \frac{x^2}{4}
This isn't a strictly increasing function, which is a requirement to be a CDF. So I need to break it into cases. This is where I'm running into trouble (sorry, I don't know if/how to use cases environment here).
F(x)
<br /> 0 if x < -2 \\<br /> 1-\frac{x^2}{4} if -2<x<0 \\<br /> some equation if 0<x<2 \\<br /> 1 if x>2<br />
I know that the CDF must have a value of .5 if X=0, but I'm not sure how to set up the rest of the cases so that F(0)=.5 and F(2)=1
Am I allowed to keep the two integrals from above "split"? Because if I am, then the following should work:
F(x)=
<br /> 0 x<-2 \\<br /> \frac{1}{2} -\frac{x^2}{8} if -2<x<0 \\<br /> \frac{1}{2} + \frac{x^2}{8} if 0<x<2 \\<br /> 1 if x > 2<br />
Am I just overthinking it, or can I just use that for the CDF?
Last edited: