Could you tell me how to find the distribution of $Z = X+Y$ if $X$ is a random variable with uniform distribution on $[0,1]$ and $Y$ has uniform distribution on $\{-1,0,1\}$?
$X$ and $Y$ are independent.
I know how to find distributions of sums of random variables if both are discrete or both are continuous. But here we have a mix.
I guess I should consider $P(Z<-1) = P(\{X<-1, Y<0\} \cup \{X<0, Y<-1\})=0$
$P(Z \in [-1,0)) = P(X \in [-1,0), Y=0 \ \text{or} \ X \in [0,1), Y=-1 \ \text{or} \ X \in [-2, -1), Y=1) = \frac{1}{3}$
$P(Z \in [0,1)) = P(X \in [0,1), Y=0 \ \text{or} \ X \in [1,2), Y=-1 \ \text{or} \ X \in [-1, 0), Y=1) = \frac{2}{3}$
$P(Z \in [1,2)) = P(X \in [1,2), Y=0 \ \text{or} \ X \in [2,3), Y=-1 \ \text{or} \ X \in [0, 1), Y=1) = 1$
And so $P(Z \ge 1) = 1$
Is that correct?
Notice, that events $Z \in [-1,0)$, $Z \in [0,1)$ and $Z \in [1,2)$ have empty intersection. But the according to your solution: $$P(Z \in [-1,0)) + P(Z \in [0,1)) + P(Z \in [1,2)) > 1$$ which clearly could not be correct.
So lets count, the desired probabilities once again, using the fact that X,Y are independent: \begin{align} P(Z \in [-1,0)) &= P(X \in [0,1))P(Y=-1) = 1\times\frac{1}{3}=\frac{1}{3}, \\ P(Z \in [0,1)) &= P(X \in [0,1))P(Y=0) + P(X = 1)P(Y=-1) = 1\times\frac{1}{3} + 0\times\frac{1}{3} = \frac{1}{3}, \\ P(Z \in [1,2)) &= P(X \in [0,1))P(Y=1) + P(X = 1)P(Y=0) = 1\times\frac{1}{3} + 0.\times\frac{1}{3} = \frac{1}{3}. \end{align} Of course $P(Z < - 1)= 0$, but we have already counted $$P(Z \geq 1) = P(Z \in [1,2)) + P(Z \geq 2) = \frac{1}{3} + 0.$$