Random variable $X$ has continuous probability distrubtion with density given by the formula $f(x)=x^{-2}1{\hskip -2.5 pt}\hbox{l}_{\left(1;\infty\right)}\left(x\right)$. Find the distribution for random variable $Y=1-|X-2|$.
Step 1. $F_Y(t)=\mathbb{P}(Y\le t)=\mathbb{P}(1-|X-2|\le t)=\star$
Step 2. Make a graph.
Step 3. Find $t$ from formulas in two intervals.
1) $x<2\rightarrow y=3-x\rightarrow x=1+t$
2) $x\ge2\rightarrow y=1+t\rightarrow x=3-t$
Step 4. Find proper intervals. Since density equals $0$ for $x\le1$, thus:
$t<0: \ <3-t;\infty)$
$0\le t<1: \ <1;1-t>, \ <3-t;\infty)$
$t=1: \text{ does not matter}$
$t>1 \text{ probability equals 1}$
Step 5. Write the formula for $F_Y(t)$
$\star= \begin{cases} \int_{3-t}^\infty x^{-2}\text{ d}x &\text{ for } t<0\\ \int_{1}^{1+t}x^{-2}\text{ d}x + \int_{3-t}^{\infty}x^{-2}\text{ d}x &\text{ for } 0\le t < 1\\ 1 &\text{ for } t\ge 1 \end{cases} $
Step 6. Calculate integrals
$\star= \begin{cases} \frac{1}{3-t} &\text{ for } t<0\\ \frac{1}{3-t}+\frac{t}{t+1} &\text{ for } 0\le t < 1\\ 1 &\text{ for } t\ge 1 \end{cases} $
Is this solution correct? I always have doubts about those intervals.
