In the previous section, we saw how to calculate the pmf of a discrete random variable. In this section, we will calculate the probability density function (pdf) of a continuous random variable.
In order to understand pdf better, we will look at a toy example. Let us take a scenario where we are considering John—a student—and his time of arrival for a class.
In the previous section, we looked at a discrete scenario—John could be early to class or late to class. In this section, we will be considering the magnitude of how early to class or late to class John may arrive in minutes. So, we will translate the problem set from a discrete outcome (late or early) to a continuous outcome (magnitude of minutes that he was early to class).
Computationally, to go from discrete to continuous we...