16 Continuous Random Variables: Probability Density Functions
- The continuous analog of a probability mass function (pmf) is a probability density function (pdf).
- However, while pmfs and pdfs play analogous roles, they are different in one fundamental way; namely, a pmf outputs probabilities directly, while a pdf does not.
- A pdf of a continuous random variable must be integrated to find probabilities of related events.
- The probability density function (pdf) (a.k.a. density) of a continuous RV
, defined on a probability space with probability measure , is a function which satisfies - For a continuous random variable
with pdf , the probability that takes a value in the interval is the area under the pdf over the region . - The axioms of probability imply that a valid pdf must satisfy
Example 16.1 Let
- Verify that
is a valid pdf.
- Find
.
- Find
.
- Find
.
- Compute the 25th percentile of
.
- Compute the 50th percentile of
.
- Compute the 75th percentile of
.
- Start to construct a spinner representing the Exponential(1) distribution.
16.1 Uniform distributions
Example 16.2
In the meeting problem assume that Regina’s arrival time
- Sketch a plot of the pdf of
.
- Donny Dont says that the pdf is
. Do you agree? If not, specify the pdf of .
- Use the pdf to find the probability that Regina arrives before 12:15.
- Use the pdf to find the probability that Regina arrives after 12:45.
- Use the pdf to find the probability that Regina arrives between 12:15 and 12:45.
- Use the pdf to find the probability that Regina arrives between 12:15:00 and 12:16:00.
- Use the pdf to find the probability that Regina arrives between 12:15:00 and 12:15:01.
- Use the pdf to find the probability that Regina arrives at the exact time 12:15:00 (with infinite precision).
- A continuous random variable
has a Uniform distribution with parameters and , with , if its probability density function satisfies - If
has a Uniform( , ) distribution then - The “standard” Uniform distribution is the Uniform(0, 1) distribution.
- If
has a Uniform(0, 1) distribution then has a Uniform( , ) distribution.
16.2 Density is not probability
- The probability that a continuous random variable
equals any particular value is 0. That is, if is continuous then for all .
- For continuous random variables, it doesn’t really make sense to talk about the probability that the random value is equal to a particular value. However, we can consider the probability that a random variable is close to a particular value.
Example 16.3 Continuing Example 16.2, we will now we assume Regina’s arrival time in
where
Note that now we’re measuring arrival time in hours (i.e., fraction of the hour after noon) instead of minutes.
- Sketch a plot of the pdf. What does this say about Regina’s arival time?
- Find the value of
and specify the pdf of .
- Find the probability that Regina arrives before 12:15.
- Find the probability that Regina arrives after 12:45. How does this compare to the previous part? What does that say about Regina’s arrival time?
- Find the probability that Regina arrives between 12:15 and 12:45.
- Find the probability that Regina arrives between 12:15 and 12:16.
- Find the probability that Regina arrives between 12:15:00 and 12:15:01.
- Find the probability that Regina arrives at the exact time 12:15:00 (with infinite precision).
- Find the probability that Regina arrives between 12:59:00 and 1:00:00. How does this compare to the probability for 12:15:00 to 12:16:00? What does that say about Regina’s arrival time?
- Find the probability that Regina arrives between 12:59:59 and 1:00:00. How does this compare to the probability for 12:15:00 to 12:15:01? What does that say about Regina’s arrival time?
- Find the probability that Regina arrives at the exact time 1:00:00 (with infinite precision).
Example 16.4 Let
- Compute
.
- Without integrating, approximate the probability that
rounded to two decimal places is 1.
- Without integrating, approximate the probability that
rounded to two decimal places is 1.7.
- Find and interpret the ratio of the probabilities from the two previous parts. How could we have obtained this ratio from the pdf?
- The density
at value is not a probability. - Rather, the density
at value is related to the probability that the RV takes a value “close to ” in the following sense
- The quantity
is a small number that represents the desired degree of precision. For example, rounding to two decimal places corresponds to . - What’s important about a pdf is relative heights. For example, if
then is roughly “twice as likely to be near than to be near ” in the above sense.
16.3 Exponential distributions
- Exponential distributions are often used to model the waiting times between events in a random process that occurs continuously over time.
Example 16.5 Suppose that we model the waiting time, measured continuously in hours, from now until the next earthquake (of any magnitude) occurs in southern CA as a continuous random variable
This is the pdf of the “Exponential(2)” distribution.
- Sketch the pdf of
. What does this tell you about waiting times?
- Without doing any integration, approximate the probability that
rounded to the nearest minute is 0.5 hours.
- Without doing any integration determine how much more likely that
rounded to the nearest minute is to be 0.5 than 1.5.
- Compute and interpret
.
- Compute and interpret
.
- Compute and interpret the 25th percentile of
.
- Compute and interpret the 50th percentile of
.
- Compute and interpret the 75th percentile of
.
- How do the values from the three previous parts compare to the percentiles from the Exponential(1) distribution> Suggest a method for simulating values of
using the Exponential(1) spinner.
- Use simulation to approximate the long run average value of
. Interpret this value. At what rate do earthquakes tend to occur?
- Use simulation to approximate the standard deviation of
. What do you notice?
- A continuous random variable
has an Exponential distribution with rate parametern if its pdf is
- If
has an Exponential( ) distribution then - Exponential distributions are often used to model the waiting time in a random process until some event occurs.
is the average rate at which events occur over time (e.g., 2 per hour) is the mean time between events (e.g., 1/2 hour)
- The “standard” Exponential distribution is the Exponential(1) distribution, with rate parameter 1 and long run average 1. If
has an Exponential(1) distribution and is a constant then has an Exponential( ) distribution.