2.3 Continuous Probability Distributions
Key Terms
- Probability density function(機率密度函數)
A function whose area over an interval gives probability.
- PDF(機率密度函數)
Short form of probability density function.
- Density(密度)
Probability concentration represented by height; probability itself is represented by area.
- Cumulative distribution function(累積分配函數)
A function that gives the probability that a random variable is less than or equal to a given value.
- CDF(累積分配函數)
Short form of cumulative distribution function.
- Interval probability(區間機率)
Probability that a continuous random variable falls within an interval.
2.3.2 Learning Outcomes
After completing this section, students should be able to:
explain why continuous probability is described by a PDF rather than a PMF;
explain why \(P(X=x)=0\) for a continuous random variable;
interpret probability as area under a density curve;
identify the conditions of a valid PDF;
calculate simple interval probabilities from a PDF;
construct a CDF from a simple continuous PDF;
use \(F(x)\) to calculate interval probabilities;
explain the relationship between a PDF and a CDF;
explain why including or excluding interval endpoints does not change a continuous probability.
2.3.3 From PMF to PDF
In the previous section, a discrete random variable was described by a probability mass function:
A discrete random variable can place positive probability at individual values.
A continuous random variable is different. Its possible values fill an interval, so probability is not assigned to individual points. Instead, a continuous distribution is described by a probability density function, or PDF.
For a continuous random variable,
for every individual value \(x\).
This does not mean that \(x\) is impossible. A single point has zero width, so it contributes zero area under the density curve.
Note
PMF versus PDF
For a discrete random variable,
For a continuous random variable,
Probability is obtained from area, not from the density height at one point.
2.3.4 A Single Example: Bus Waiting Time
Let \(X\) be the waiting time, in minutes, for the next bus.
Suppose the waiting time can be anywhere from 0 to 10 minutes and is modeled with the constant density
This one example will be used to introduce both the PDF and the CDF.
2.3.5 Probability Density Function
A valid PDF must satisfy two conditions:
for all \(x\), and
For the waiting-time example, the total area is
so the density is valid.
Probability over an interval is the area under the PDF:
For example,
The corresponding area is shown below.
The height \(1/10\) is a density. The probability \(0.40\) comes from height multiplied by interval width.
2.3.6 Height Is Not Probability
For a continuous distribution,
In the waiting-time example,
but
The density height describes how probability is concentrated near a value. Probability is obtained only after an interval has been specified.
A density value can even be greater than 1. This is allowed as long as the total area under the PDF is exactly 1.
2.3.7 Endpoints Do Not Matter
For a continuous random variable,
Therefore,
For example,
The endpoints do not change the area and therefore do not change the probability.
2.3.8 Cumulative Distribution Function
The CDF is defined for both discrete and continuous random variables:
For a continuous random variable, the CDF is accumulated area under the PDF:
For the waiting-time example,
Thus,
The CDF is shown below.
Unlike the discrete CDF, this CDF increases continuously rather than by jumps.
2.3.9 Finding Probabilities from the CDF
The CDF provides accumulated probability from the left.
For example,
For an interval,
Therefore,
This is the same probability obtained earlier from the area under the PDF.
For an upper-tail probability,
For example,
2.3.10 Relationship Between PDF and CDF
The PDF and CDF describe the same continuous distribution in different ways.
The CDF accumulates the PDF:
When \(F\) is differentiable, the PDF can be recovered from the slope of the CDF:
For the waiting-time example, between 0 and 10,
so
Thus:
PDF -> density and interval area
CDF -> accumulated probability
2.3.11 Properties of a Continuous CDF
A CDF satisfies
It never decreases.
Also,
and
For a continuous distribution with a continuous density, the CDF changes smoothly rather than jumping at isolated values.
2.3.12 Discrete Versus Continuous Probability
Idea |
Discrete |
Continuous |
|---|---|---|
Possible values |
Countable |
Any value in an interval |
Main probability function |
PMF \(p(x)\) |
PDF \(f(x)\) |
Probability at one value |
May be positive |
0 |
Probability over several values |
Add PMF values |
Find area under PDF |
CDF |
Accumulates PMF values |
Accumulates PDF area |
Typical CDF shape |
Step function |
Continuous curve |
2.3.13 A Simple Method
For a continuous probability distribution:
Identify the possible range of \(X\).
Identify the PDF \(f(x)\).
Check that \(f(x)\geq0\) and the total area is 1.
Find probabilities as areas under the PDF.
Obtain the CDF by accumulating area from the left.
Use \(F(b)-F(a)\) for interval probabilities when convenient.
Remember that individual points have probability 0.
2.3.14 Common Mistakes
Do not write \(f(x)=P(X=x)\) for a continuous random variable.
Do not interpret \(P(X=x)=0\) as meaning that \(x\) cannot occur.
Do not use density height alone as probability; probability is area.
Do not worry about whether interval endpoints are included.
Do not confuse the PDF \(f(x)\) with the CDF \(F(x)\).
2.3.15 Summary
A continuous probability distribution is described by a PDF \(f(x)\). A valid PDF satisfies
and
Probability is area:
For any individual point,
The CDF is
When differentiable,