I'm working through some homework problems in Hajeck. I'm trying to understand how to find the CDF given a random variable description. The problem is here:
(Hajek 1.14) CDF and characteristic function of a mixed type random variable
Let $X = (U - 0.5)_+$, where $U$ is uniformly distributed over the interval $[0, 1]$. That is, $X = U - 0.5$ if $U - 0.5 \geq 0$, and $X = 0$ if $U - 0.5 < 0$. Find and carefully sketch the CDF $F_X$ . In particular, what is $F_X(0)$?
I can write the following description:
\begin{equation} F(x) = \begin{cases} 0 & U < 0 \\ U-0.5 & U \geq 0.5 \\ \end{cases} \end{equation}
But what do I do with U? It seems like I should calculate some kind of value or formula for U. I know it's uniform. So
\begin{equation} F(x) = \begin{cases} 1 & x \geq b\\ \frac{x-a}{b-a} & a \leq x < b\\ 0 & x < a \end{cases} \end{equation}
Edit: I think this formula is applicable here:
\begin{equation} \begin{split} F_X(x) = P(U-0.5 < 0)P(X\leq x\mid U < 0.5) + P(U-0.5 \geq 0)P(X\leq x \mid U\geq 0.5) \end{split} \end{equation}
Because $U$ is normal on $[0, 1]$
\begin{equation} \begin{split} P(U<0.5) = \frac{1}{2}\\ P(U\geq0.5) = \frac{1}{2} \end{split} \end{equation}
When $U<0.5$, $X=0$. Given that $P<0.5$ it must be that $P(X\leq x\mid U<0.5)=1$ and that $P(X\leq x\mid U\geq 0.5) = U-0.5$. Since $U$ is uniform over $[0,1]$, $F_U(u) = x-1$ in the interval given.
I'm still confused about how to deal with $U - 0.5$ and $F_U(u)$. I'd like to say that the $P(X\leq x\mid U\geq 0.5) = x-1$ (because $U$ is uniform) but I'm a bit uncertain about the truth of that.
Edit 2: I don't think that above edit works out correctly, because $P(X)\neq 1$. So I'm missing something here.