Continuous Random Variable — Definition, Formula & Examples
A continuous random variable is a random variable that can take any value in an interval, such as a person's height or a wait time. It does not take only separate, countable values the way a die roll does.
A random variable is continuous if there is a probability density function with for all and , such that for all . It follows that for every single value .
Key Formula
Where:
- = the continuous random variable
- = the probability density function (the height of the density curve at x)
- = the endpoints of the interval, with a ≤ b
Worked Example
Problem: A bus arrives at a random time within a 20-minute window, so your wait time (in minutes) is uniform on with density . Find the probability that you wait between 5 and 12 minutes.
Step 1: Check that the density is valid. The total area under the curve must equal 1. Here the region under the curve is a rectangle with width 20 and height 1/20.
Step 2: The probability is the area under the curve from 5 to 12. That region is a rectangle with width 12 − 5 = 7 and height 1/20.
Step 3: Because a single point has zero width, it adds no area. So whether you include the endpoints does not change the answer.
Answer: The probability of waiting between 5 and 12 minutes is .
Why It Matters
In AP Statistics, every normal-model calculation treats the variable as continuous. When you convert to a z-score and read a table, you are finding an area under a density curve. The same idea gives p-values for t-tests and chi-square tests, and engineers use it to model component lifetimes with the exponential distribution.
Common Mistakes
Mistake: Treating the density value as the probability that .
Correction: Only areas under the curve are probabilities, and . A density can even exceed 1. For example, a uniform variable on has , yet its total area is .
