The problem with Discrete random variables was they can’t be used for continuous data. In engineering, there comes a time when we need to model continuous random data, and it happens a lot the most popular random variable which we use is Gaussian Random Variable. Since Discrete Random Variables can be characterized or fully described by their PMF (Probability Mass Function) we can’t use the same for a continuous case because the probability would be 0. We can explain this by giving an example.

Suppose you want to measure a temperature of a room which can be modeled by a continuous random variable as the temperature is random. As an interesting note, its variance is not that large enough; for example the temperature of a room observed over an hour can be: { 35.1, 35.2, 35.3, 35.2, 34.9 and so on} so changes between values are not that large, hence variance is low we will talk about variance later on. But as a sample data given what is the probability that at any instance of time the temperature is exactly 35.1? Consider the data as continuous i.e. infinite.

Answer: It will be zero always as the event that the temperature being exactly 35.1 is very unlikely to occur.

Now the question exist: Is there any mathematical tool to model these continuous random variables? The answer is YES, and their names are Cumulative Distribution Function and Probability Density Function.

Cumulative Distribution Function:

PMF tells that the probability of a random variable $$X$$ taking the value x can be something between 0 to 1, and that’s why it is defined as $$P(X=x)$$, but that is not happening here in the continuous case as $$P(X=x) = 0$$. So, we define CDF as:

$$F_X(x) = P(X \leq x)$$

Please don’t forget that PMF is for discrete, and CDF is for continuous also they are both Probabilities.

So in short CDF tells us that what are the chances of $$X$$ taking the values less than $$x$$. But the idea will be clear by solving multiple problems related to CDF. Some important properties of CDF are mentioned below they will help you to clear the idea on how continuous random variables are characterized by CDF.

Properties of CDF:

• $$F_X(-\infty) = 0, \; \; F_X(\infty) = 1$$.

The above statement makes sense doesn’t it ? as CDF is defined $$P(X \leq x)$$ hence when $$x = -\infty$$ then $$P(X \leq -\infty)$$ should be 0 as there are no values less than $$-\infty$$ and probability should be 0 as there are no values exist below $$-\infty$$. The same applies for $$P(X \leq \infty)$$ i.e. positive infinity that means X has taken all values upto infinity so the probability automatically jumps to 1.

• $$0 \leq F_X(x) \leq 1$$

As CDF is a function of Probability hence we know that probability is always between 0 to 1, hence CDF is always from 0 to 1.

• If $$x_1 < x_2 \; \text{then} \; F_X(x_1) \leq F_X(x_2)$$

We can proof the above property. Did you remember that if A \subset B then P(A) \leq P(B) if not then please see this article.

$$F_X(x_1) = P(X \leq x_1)$$
$$F_X(x_2) = P(X \leq x_2)$$

Since $$x_1 < x_2$$ then $$\{ X < x_1 \} \subset \{ X < x_2 \}$$

then we have $$F_X(x_1) \leq F_X(x_2)$$

• Given $$x_1 < x_2$$ then $$P(x_1 < X \leq x_2) = F_X(x_2) – F_X(x_1)$$

The last property can be prooven by simply noting that $$\{ X \leq x_2 \} = \{ X \leq x_1 \} \cup \{ x_1 < X \leq x_2 \}$$

then $$P(X \leq x_2) = P(X \leq x_1) + P(x_1 < X \leq x_2)$$

$$\Rightarrow \; P(x_1 < X \leq x_2) = P(X \leq x_2) – P(X \leq x_1)$$

Thats all for now we will add more problems and examples to our problem database. If you have any suggestions, questions just leave a comment below: