A rider waiting for a shuttle wants the chance that the wait lasts more than two minutes. A waiting time can be any real number in a range, so its probabilities cannot be listed value by value the way the probabilities of a count can. Continuous models put probability on intervals instead, as area under a density curve. This lesson reads probabilities as areas and from a cumulative distribution function, and it keeps two models apart, a uniform model for an arrival somewhere in a fixed window and an exponential model for waiting on a constant-rate process.
Key terms
Continuous random variable
Definition A random variable is continuous, in the sense used in this course, if it has a probability density function , so that for all numbers the probability equals the area under the graph of between and . Its support is the set of values the model allows, such as all nonnegative times for a waiting time or the interval for an arrival time within four minutes. For every single value ,
because the region above one point has no width. So including or excluding the endpoints of an interval does not change its probability, and .
In plain words Probability does not mean impossible here. Some value always occurs, even though each individual value had probability beforehand. Real measurements are recorded to some precision, so a recorded value stands for a short interval of true values, and that interval can have positive probability.
Example Suppose an arrival time in minutes is equally likely to fall anywhere between and , so the probability of an interval inside is its length divided by . Then , while . A time recorded as 1 minute to the nearest second stands for true times within half a second of 1 minute, an interval of width minute, so the recorded value has probability
Probability density function
Definition A probability density function, or density, is a function with for every and total area under its graph. A random variable has density when, for all , is the area under between and . In calculus notation this area is , but areas of simple shapes, a supplied CDF or a checked numerical tool are enough to find it. If is measured in some unit, is measured in the reciprocal unit, such as per minute, so that height times width is a pure number.
In plain words The height of a density is not a probability. It says how densely probability is packed near a value. For a short interval of width starting at a point where is continuous, the probability is close to . Only areas are probabilities, so a density may be larger than .
Example A uniform model on a window half a minute wide has height per minute, since . The height exceeds , yet every probability is an area of at most . The exponential waiting time with rate per minute, met later on this page, has density per minute for . Its height at 2 minutes is per minute, and the probability of a wait between 2 and 2.1 minutes is close to . The exact value is .
Probability as area
Definition For a continuous random variable with density , the probability of any interval is the area under over that interval. The cumulative distribution function, or CDF, is
the area under to the left of . It never decreases, it approaches far to the left and far to the right, and for
with the same value whether each endpoint is included or not. For , a quantile is a value with , a cutoff with probability to its left. It is unique when is strictly increasing on the support.
In plain words The CDF accumulates area from the left. Its values are probabilities, so they always lie between and , unlike density heights. The probability of an interval is the area accumulated up to its right end minus the area accumulated up to its left end. A quantile answers the reverse question, which cutoff leaves a given probability to its left.
Example Let have density for and elsewhere. Its graph is a triangle with base and height , so the total area is . For , the area to the left of is a smaller triangle with base and height , so . Then and
The median solves , so . The density reaches at , but .
Uniform distribution
Definition For numbers , a random variable has the uniform distribution on if its density is for and elsewhere. For ,
and the CDF is
By symmetry the mean is .
In plain words Every stretch of the same length inside gets the same probability, and an interval’s probability is its share of the full width. The model suits a time that is equally likely to fall anywhere in a known window, and it gives no probability to values outside the window.
Example Let be uniform on minutes. The density is per minute, and . The CDF gives , so 3 minutes is the quantile, and the mean and median are both 2 minutes.
Exponential distribution
Definition The survival probability of a waiting time at time is
the probability that the wait lasts longer than . For a rate , the waiting time has the exponential distribution with rate if
Then for and for . The density is for and for , the mean is and the variance is . If events follow a homogeneous Poisson process with rate , the wait from time until the first event has this distribution. For , the wait exceeds exactly when the count in is , which has probability .
In plain words Survival probability just means the chance that the wait is still going at time , and it need not involve life or death. A higher rate means shorter typical waits. The usual reason to choose an exponential model is a constant-rate process behind the events. Without such a reason the exponential shape is an assumption that needs support.
Example With rate per minute, the probability of waiting more than 2 minutes is , so . The density starts at per minute and decreases. The mean wait is 2 minutes, the variance is 4 square minutes and the SD is 2 minutes. The uniform arrival time on minutes has the same mean, but it never exceeds 4 minutes, while the exponential wait exceeds 4 minutes with probability .
Memorylessness
Definition A waiting time with for every is memoryless if, for all ,
An exponential waiting time with rate is memoryless, since
Among waiting times with a density, the exponential distributions are the only memoryless ones.
In plain words Under a memoryless model, a wait that has already lasted minutes has the same chance of lasting more minutes as a fresh wait. Time already spent does not bring the end any closer. This is a property of the exponential model, not of waiting in general. For a bus that runs on a schedule, an aging part or a task that moves toward completion, the chance of ending soon can change as time passes.
Example With rate per minute,
the same as the probability for a fresh wait. The uniform model on minutes is not memoryless. After 3 minutes without an arrival the remaining wait is at most 1 minute, while a fresh wait can last up to 4.
Check yourself
- A train arrives at a time that is uniform on minutes. Find the density, , and .
Show the answer
The density is per minute on and elsewhere. The interval from 2 to 5 has width 3, so . The CDF gives . A single time has no width, so .
- A wait is exponential with rate per minute. Find . The density at 2 minutes is about per minute. Is that the probability of waiting exactly 2 minutes?
Show the answer
Use the CDF . Then
This removes the tail beyond 4 minutes from the tail beyond 2 minutes. The value is a density height in units of per minute, not a probability. The probability of waiting exactly 2 minutes is , because a single point has no width. The height only says that a short interval of width starting at 2 minutes has probability close to .
- A rider has already waited 2 minutes. Under the uniform model on minutes, find the probability of waiting more than 1 more minute, and compare it with the probability that a fresh wait exceeds 1 minute. Then do the same under the exponential model with rate per minute.
Show the answer
Under the uniform model,
while a fresh wait exceeds 1 minute with probability . The elapsed time changed the answer, so this model is not memoryless.
Under the exponential model,
which equals . The elapsed 2 minutes make no difference, as memorylessness says.