4.1.0 Continuous Random Variables and their Distributions
We have in fact already seen examples of continuous random variables before, e.g., Example 1.14. Let us look at the same example with just a little bit different wording.
Example
I choose a real number uniformly at random in the interval , and call it . By uniformly at random, we mean all intervals in that have the same length must have the same probability. Find the CDF of .
- Solution
As we mentioned, this is almost exactly the same problem as Example 1.14, with the difference being, in that problem, we considered the interval from $1$ to $2$. In that example, we saw that all individual points have probability $0$, i.e., for all . Also, the uniformity implies that the probability of an interval of length in must be proportional to its length:
Since $ P(X \in [a,b])=1$, we concludeNow, let us find the CDF. By definition , thus we immediately haveFor , we haveThus, to summarize \begin{equation} \hspace{70pt} F_X(x) = \left{ \begin{array}{l l} 0 & \quad \textrm{for } x < a \ \frac{x-a}{b-a} & \quad \textrm{for }a \leq x \leq b\ 1 & \quad \textrm{for } x > b \end{array} \right. \hspace{70pt} (4.1) \end{equation} Note that here it does not matter if we use "$ < \leq $", as each individual point has probability zero, so for example . Figure 4.1 shows the CDF of . As we expect the CDF starts at zero and ends at $1$.

Fig.4.1 - CDF for a continuous random variable uniformly distributed over .
One big difference that we notice here as opposed to discrete random variables is that the CDF is a continuous function, i.e., it does not have any jumps. Remember that jumps in the CDF correspond to points for which . Thus, the fact that the CDF does not have jumps is consistent with the fact that for all . Indeed, we have the following definition for continuous random variables.
Definition A random variable with CDF is said to be continuous if is a continuous function for all .
We will also assume that the CDF of a continuous random variable is differentiable almost everywhere in .