15 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 15.1 Two resistors are randomly selected and connected in series, so that the system resistance
Simulation suggests that the pdf of
Sketch a plot of the pdf. What does this say about the distribution of the system resistance?
Verify that
is a valid pdf.
Find
.
Find
.
15.1 Density is not probability
Example 15.2 Continuing Example 15.1, where the series system resistance
Compute
.
Compute the probability that
, rounded to one decimal place, is 340.0.
How is the probability in the previous part related to
?
How many times more likely is
, rounded to one decimal place, to be 340.0 than to be 350.0?
- The probability that a continuous random variable
equals any particular value is 0. That is, if is continuous then for all . - For a continuous random variable
, , etc.- Careful: this is NOT true for discrete random variables; for a discrete random variable
.
- Careful: this is NOT true for discrete random variables; for a discrete random variable
- 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.
- 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.
15.2 Exponential distributions
Example 15.3 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
Sketch the pdf of
. What does this tell you about waiting times?
Compute
.
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 is it for
rounded to the nearest minute 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
.
Start to construct a spinner corresponding to this Exponential(2) distribution.
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?
- Exponential distributions are often used to model the waiting times between events in a random process that occurs continuously over time.
- A continuous random variable
has an Exponential distribution with rate parameter 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 mean 1.
- If
has an Exponential(1) distribution and is a constant then has an Exponential( ) distribution.
15.3 Uniform distributions
- 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.