Probability and StatisticsChapter 5
Continuous Random Variables
In this chapter
This chapter extends chapter 1's distinction from data already collected to random variables whose value isn't known yet: when the possible outcomes fill an interval rather than a countable list, probability has to be measured as area under a curve, not read off a table of outcomes. From that one idea it builds two of the standard continuous models — the uniform distribution's flat density over an interval, and the exponential distribution's model of a random wait, including the memoryless property that makes it distinctive.
Outcomes That Fill an Interval, Not a List
A random variable is continuous when its possible outcomes fill an interval on the real line rather than forming a separate, countable list — the same discrete/continuous test chapter 1 applied to data, applied here to an outcome not yet observed.
Ask whether a value strictly between two others can occur, in principle. A count of events, successes, or items cannot; a measured time, length, or amount can, no matter how finely you look.
A hypothetical customer's decision time at a vending machine can fall anywhere on a stretch of seconds; the number of items the same customer buys cannot fall between 2 and 3. The first is continuous; the second is discrete.
"A stopwatch only displays two decimal places, so the time itself must be discrete." The display rounds a continuous quantity; it doesn't change what's being measured — the true elapsed time can still, in principle, land anywhere in between. "A continuous variable can still be listed, just with a lot of values." Between any two continuous values sits another one, endlessly — there is no next value to list, which is exactly why the list-based probability of earlier chapters needs replacing with area.
Probability as the Area Under a Density Curve
A probability density function describes a continuous random variable so that probability is the area beneath its curve over an interval, not the curve's height at a single point.
For any interval, probability is area — base times height for a flat stretch, more generally the region under the curve — and the total area over every possible value is exactly 1. For any single exact value the interval has zero width, so the area, and the probability, is zero: .
A hypothetical dial spinner lands anywhere on the interval from 0 to 10 with a flat density of 0.1. The probability it lands between 2 and 6 is the rectangle's area, ; the probability it lands on exactly is .
"The probability at exactly is the height of the curve, ." is a density, not a probability — it only becomes a probability once multiplied by a width, and a single point's width is zero. "Since for every , no value is actually possible." Some value always occurs; it is only that no single value carries positive probability on its own — only intervals do.
The Uniform Distribution: A Flat Density Over an Interval
A continuous random variable is uniformly distributed, written , when its density is the constant for every between and .
Confirm the density is flat across a fixed interval . If so, the probability of any sub-interval is area: width times the constant height, , regardless of where in that sub-interval sits. Its centre and spread follow from the endpoints alone: and .
A hypothetical campus shuttle arrives equally likely at any minute from 0 to 24 past the hour: , so on that interval.
- Confirm the density. , so for every in .
- Find the interval's width. For , the width is .
- Multiply width by height. .
Common slips: using the interval's width alone without multiplying by ; subtracting the endpoints in the wrong order.
"The probability of an interval is just its width." Width alone omits the height: a 6-minute window is , not 6. "'Uniform' means every exact value is equally likely, the way a die's six faces are." Density is constant, but every single value still has probability zero, exactly as the previous section established — "uniform" describes the flat curve, not equally likely points.
The Exponential Distribution: Modeling a Random Wait
The exponential distribution, , models the waiting time until a random event, with density for , where the rate parameter — written almost everywhere outside this book — is the reciprocal of the mean wait, . Its standard deviation equals its mean.
Ask whether the quantity is a wait until something happens, with short waits more common than long ones. The 's density is flat; the exponential density is tallest at and shrinks as grows, with cumulative probability .
Support tickets arrive with a mean wait of 5 minutes until the next one (hypothetical): , since .
- Find the rate parameter. Mean wait minutes, so .
- Apply the cumulative distribution function (CDF (cumulative distribution function)). .
- Substitute and compute. .
Common slips: substituting the mean for instead of its reciprocal; dropping the negative sign in the exponent.
"The rate parameter is the average wait, so means a typical wait of 0.2 minutes." A rate counts events per unit of time, and the mean wait is its reciprocal: minutes. A bigger therefore means events arrive more often and waits get shorter, not longer. "One fixed rate means waits arrive at evenly spaced intervals." The rate describes the average over many waits, not the pattern of any one wait — individual wait times vary randomly and are usually short, occasionally long.
The Memoryless Property: Why the Wait Forgets the Past
The 's memoryless property states that surviving to time changes nothing about the remaining wait: for every .
Compare the conditional probability of surviving more units, given survival to already, against the probability a fresh draw survives units from zero. For the exponential distribution the two are always algebraically equal; for most other distributions they are not.
A hypothetical component's lifetime has a mean of 8 years, so its rate parameter is . Having already run 3 years, the probability it lasts 5 more years equals the probability a brand-new component lasts 5 years: .
"Memoryless means the component doesn't age." True only in the narrow sense that the model has no built-in wear; it does not mean nothing changes physically, only that past survival carries no probabilistic information about the remaining wait. "Having survived unusually long, it must be 'due' to fail soon." The gambler's-fallacy reading; the property says the exact opposite — elapsed time never raises or lowers the remaining-wait probability.
Putting Continuous Probability to WorkSynthesis
One more hypothetical: an emergency room's wait time. Before it's measured, the wait is a random variable — it can land anywhere on a stretch of minutes, not a fixed list — so its probabilities are , not a table of chances, and its probability of any single exact minute is zero however likely that stretch feels.
If every wait length in a range were equally plausible, a would fit: constant density, equal-width windows carrying equal probability wherever they fall. Real waits usually don't behave that way — short waits are typically more common than long ones — which pulls in the instead, its density tallest at zero and falling as the wait grows, set by a single parameter that is the reciprocal of the mean wait.
The exponential model carries one further, sharper claim, its : a patient who has already waited 20 minutes is no more or less likely to wait 10 more than one just walking in — "waiting a long time already" is not, on its own, evidence a wait is nearly over.
Sources
- 1 OpenStax Introductory Statistics §5.1: Continuous Probability Functions — source
- 2 OpenStax Introductory Statistics §5.2: The Uniform Distribution — source
- 3 OpenStax Introductory Statistics §5.3: The Exponential Distribution — source
- 4 NIST/SEMATECH e-Handbook §1.3.6.6.2: Uniform Distribution (mean (A+B)/2, standard deviation sqrt((B-A)^2/12)) — source
- 5 SciPy scipy.stats.expon documentation — the exponential is parameterized by the rate lambda, supplied as scale = 1/lambda — source