Recall (Equation (2.1)) that the CDF, , of a discrete random variable, , is the sum of all of the relevant probabilities, .
Analogously the (probability) density function, pdf, of a continuous random variable, , is defined as
so that it satisfies
(2.2) |
For example
Note that is a dummy variable; one could use any letter for the integrand in (2.2), except .
Two frequent student mistakes in Math230 are
Writing ; i.e. writing the indefinite integral instead of a definite integral.
Writing , which is mathematical nonsense.
Figure 2.3 (Link) shows the pdf for the continuous random variable for which the cdf is shown in Figure 2.2 (Link). Notice that the pdf is zero in regions where there are no outcomes, in this example for . Note also that it exceeds in some places, so it cannot be interpreted as a probability despite some of the mathematical properties of that we shall see below being very similar to those of the probability mass function.
Properties of :
Positivity: for all , Quiz: Why?
Unit-integrability: . Quiz: Why?
The probability that an observation on a continuous random variable lies in the interval may be calculated as the area under the curve of between and . In the folllowing figure, and .
Unnumbered Figure: Link
More formally:
The above can be extended to the probability of any set given by
(2.3) |
e.g. .