Recall (page 4.3) 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
(6.1) |
For example
Note that is a dummy variable; one could use any letter for the integrand except .
Figure 6.3 shows the pdf for the continuous random variable for which the cdf is shown in Figure 6.2. 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.
Positivity: for all , Why?
Unit-integrability: . Why?
Consider the probability that an observation on a continuous random variable lies in the interval :
We see that may be calculated as the area under the curve of between and .
For some very small interval width ,
Thus can be thought of as (approximately) the
probability that is between and .
Compare this with the interpretation (definition!) of the pmf .
A random variable has cumulative distribution function
Find the pdf of .
A triangular pdf: a random variable has pdf
Obtain the cdf .
Important: We split the range of , into
sensible intervals.
For ,
For ,
For ,
Hence
Now find , and .
Obtain directly from the pdf.
The lifetime in years, that a computer functions before breaking down is a continuous random variable with pdf, given by
The parameter depends on the type of computer. To set a time for a guarantee the company wants to know the time for which with probability the lifetime of the computer will exceed .
so that implies .
Note that you have just found a quantile of the distribution; see Section 6.4.1.