I have one Random Variable $X$ which is continuous and uniform in $X\in [0,x_m]$. Also, I have another Random Variable $Y$ which is discrete and uniform where $Y \in \{-1,0,1\}$ . So, the product say $Z=XY$ will be continuous or discrete random variable? Please explain in detail.
Additional info: $X$ and $Y$ are independent random variables.
----------------------------------Newly Inserted-------------------------------
I solved for the PDF of $Z$ in the following way,
$\begin{align*} P(Z\leq z) &= P(XY \leq z)\\ &=P(X \leq \frac{z}{Y})\\ &= P(X \leq \frac{z}{Y} \mid Y = -1)P(Y=-1) + P(X \leq \frac{z}{Y} \mid Y = 0)P(Y=0) + P(X \leq \frac{z}{Y} \mid Y=1) P(Y=1)\\ &=\frac{1}{3}P(-X \leq z) + \frac{1}{3}P(X.0 \leq z) + \frac{1}{3}P(X \leq z)\\ &=\frac{1}{3}P(X \geq -z) + \frac{1}{3}P(X < \infty) + \frac{1}{3}P(X \leq z)\\ &=\dfrac{1}{3}\int_{-z}^\infty \frac{1}{x_m}dx + \frac{1}{3}\int_{-\infty}^\infty\frac{1}{x_m}dx +\int_{-\infty}^z \frac{1}{x_m}dx\\ &=\dfrac{1}{3}\int_{-z}^{x_m} \frac{1}{x_m}dx + \dfrac{1}{3}.1 +\dfrac{1}{3}\int_{0}^z \frac{1}{x_m}dx\\ &=\frac{1}{3}\bigl(1+\frac{z}{x_m}\bigr) + \frac{1}{3} + \frac{1}{3}\dfrac{z}{x_m}\\ &=\frac{2}{3}\bigl(1+\frac{z}{x_m}\bigr) \end{align*}$
So, the CDF of $Z$ is $F_Z(z) = \dfrac{2}{3}\bigl(1+\frac{z}{x_m}\bigr)$ from which the PDF is calculated as
$f_Z(z) = \dfrac{d}{dz}F_Z(z)\\f_Z(z) = \dfrac{2}{3x_m}$
But, I couldn't figure out whether I have done right or wrong and please solve for the PDF of Z if I am wrong and also mention it's ranges accordingly
Thanks in advance.
We have $P\{XY=0\} \geq P\{Y=0\} >0$ so $XY$ is not continuous. It is not discrete either. If it is discrete it can take only a counatble num ber of values $c_1,c_2,\cdots$. Split $1=P\{XY\in \{c_1,c_2,\cdots\}\}$ into the parts $Y=0$, $Y=1$ and $Y=-1$ to get a contradiction.