4.3.1 Mixed Random Variables
Here, we will discuss mixed random variables. These are random variables that are neither discrete nor continuous, but are a mixture of both. In particular, a mixed random variable has a continuous part and a discrete part. Thus, we can use our tools from previous chapters to analyze them. In this section, we will provide some examples on how we can do this. Then in section 4.3.2, we will revisit the concept of mixed random variables using the delta "function."
Example
Let be a continuous random variable with the following PDF: \begin{equation} \nonumber f_X(x) = \left{ \begin{array}{l l} 2x & \quad 0 \leq x \leq 1\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Let also \begin{equation} \nonumber Y=g(X) = \left{ \begin{array}{l l} X & \quad 0 \leq X \leq \frac{1}{2}\ \frac{1}{2} & \quad X>\frac{1}{2} \end{array} \right. \end{equation} Find the CDF of .
- Solution
First we note that . For , $0 \leq g(x) \leq \frac{1}{2}$. Thus, , and therefore
Now note thatAlso, for $0 < y < \frac{1}{2}$,
Thus, the CDF of is given by \begin{equation} \nonumber F_Y(y) = \left{ \begin{array}{l l} 1 & \quad y \geq \frac{1}{2}\ y^2 & \quad 0 \leq y < \frac{1}{2}\ 0 & \quad \text{otherwise} \end{array} \right. \end{equation} Figure 4.9 shows the CDF of . We note that the CDF is not continuous, so is not a continuous random variable. On the other hand, the CDF is not in the staircase form, so it is not a discrete random variable either. It is indeed a mixed random variable. There is a jump at , and the amount of jump is $1-\frac{1}{4}=\frac{3}{4}$, which is the probability that . The CDF is continuous at other points.

Fig.4.9 - CDF of a Mixed random variable, Example 4.12.
The CDF of has a continuous part and a discrete part. In particular, we can write
where is the continuous part of , i.e., \begin{equation} \nonumber C(y) = \left{ \begin{array}{l l} \frac{1}{4} & \quad y \geq \frac{1}{2}\ y^2 & \quad 0 \leq y < \frac{1}{2}\ 0 & \quad y < 0 \end{array} \right. \end{equation} The discrete part of is , given by \begin{equation} \nonumber D(y) = \left{ \begin{array}{l l} \frac{3}{4} & \quad y \geq \frac{1}{2}\ 0 & \quad y < \frac{1}{2} \end{array} \right. \end{equation}
In general, the CDF of a mixed random variable can be written as the sum of a continuous function and a staircase function:
Example
Let be the mixed random variable defined in Example 4.14.
- Find .
- Find .
- Find .
- Solution
Since we have the CDF of , we can find the probability that is in any given interval. We should pay special attention if the interval includes any jump points.
Find : We can write
Find : We have
Find : Here, we can differentiate the continuous part of the CDF to obtain \begin{equation} \nonumber c(y)=\frac{dC(y)}{dy}= \left{ \begin{array}{l l} 2y & \quad 0 \leq y \leq \frac{1}{2}\ 0 & \quad \textrm{otherwise} \end{array} \right. \end{equation} So, we can find as
