Statistics & Probability · Grade 12 and undergraduate
Continuous Random Variables: Densities, Uniform and Exponential
Quick answer
A continuous random variable, like a waiting time or a length, can take any value in an interval, so the chance of any single exact value is 0. Its probabilities come from a probability density function f: f(x) ≥ 0, the total area under f is 1, and P(a < X < b) is the area from a to b. The mean is ∫ x f(x) dx and the variance is ∫ (x − μ)² f(x) dx. The uniform distribution spreads probability evenly over an interval; the exponential distribution models waiting times, with P(X > t) = e^(−λt).
What you'll learn
- Check that a function is a valid probability density
- Compute probabilities as areas under a density
- Find the mean and variance of a continuous random variable
- Use the uniform and exponential distributions
Probability as area
A bus comes every minutes, and you arrive at a random moment. Your wait can be any number from to , not only whole minutes. For such a continuous random variable, probabilities come from a probability density function :
- everywhere, and the total area under is ;
- , the area between and .
The mean and variance replace the sums of a discrete random variable with integrals:
| Distribution | Density | Mean | Standard deviation |
|---|---|---|---|
| uniform on | |||
| exponential, rate | , |
Why a single value has probability zero
would be the area above a single point: a region with no width. But is a thin strip with some area. A density is probability per unit of length, so only intervals carry probability. That is why itself can be larger than : it is a rate, not a probability. It also means and are the same.
- f(x) = 0.5e^(−0.5x)
Worked examples
Common mistakes
Practice problems
-
Find so that on is a density.
Answer
Full solution
.
-
For on , find .
Answer
Full solution
.
-
For on , find the mean.
Answer
Full solution
.
-
is uniform on . Find and the mean.
Answer
and
Full solution
The density is , and the interval has length .
-
Calls arrive with exponential gaps, mean minutes. Find the chance of waiting more than minutes.
Answer
Full solution
, so .
-
In the figure, check that the shaded area is about .
Answer
Full solution
. For any exponential, .
-
A bulb from Example 3 has already lasted hours. What is the chance it lasts more?
Answer
, the same as for a new bulb
Full solution
. The exponential distribution is memoryless.
-
A student says for . What is wrong?
Answer
; is a density, not a probability.
Full solution
A single point has no width, so it holds no area. Only intervals have positive probability.
Frequently asked questions
What is a probability density function?
A function f with f(x) ≥ 0 and total area 1 under its graph. The probability that X falls between a and b is the area under f from a to b.
Why is P(X = a) zero for a continuous variable?
It is the area of a region with no width. Only intervals carry probability, so P(X ≤ a) and P(X < a) are equal.
How do you find the mean of a continuous random variable?
μ = ∫ x f(x) dx over all possible values. The variance is ∫ (x − μ)² f(x) dx, or ∫ x² f(x) dx − μ².
What is the uniform distribution?
On [a, b], f(x) = 1/(b − a). Its mean is (a + b)/2 and its standard deviation is (b − a)/√12.
What is the exponential distribution?
f(x) = λe^(−λx) for x ≥ 0, a model for waiting times. Its mean is 1/λ, and P(X > t) = e^(−λt).