A game is to choose a random real number $x$ between 0 and 10. The earnings are given by $|5-X|$ being X the number chosen. (a) - Find the earning distribution and (b) - If you play twice with $X_1$ $X_2$ and $X = max\{X_1,X_1\}$, what it's the earning distribution?.
Here's what i tried:
(a) - $f_X(x) = \left\{ \begin{array}{lr} 2-x & : x \leq \theta \\ x-8 & : x > \theta \\ 0&: otherwise \end{array} \right.$ , then
$F_X(\alpha <X < \beta) = \displaystyle\int_{\alpha}^{\beta}f_X(x)dx= \left\{\begin{array}{lr} 2x-\frac{1}{2}x^2|_a^{\beta} & : 0 \leqq \alpha < \beta \leq 2 \\ 2x-\frac{1}{2}x^2|_a^2 & : 0 \leq \alpha \leq 2 \leq \beta \\ \frac{1}{2}x^2-8x|_a^{\beta}&: 8 \leq \alpha < \beta \leq 10 \ \\ \frac{1}{2}x^2-8x|_8^{\beta}&: \alpha \leq 8 \leq \beta \leq 10 \\ 0 &: 2 \leq \alpha < \beta \leq 8 \end{array}\right.$.
It's ok?. Also, im not sure how to do (b).