The Uniform and Exponential Distributions
How long will you wait for the next bus if arrivals are "completely random"? How do you model a number chosen with no preference across an interval? These two questions lead to the two most important elementary continuous distributions. The uniform distribution spreads probability evenly across an interval. The exponential distribution models waiting times for events that occur at a constant average rate with no memory of the past. Together they form the bridge between discrete models and continuous machinery. The discrete models are built from equally likely outcomes and geometric waiting times. The continuous machinery includes densities, integrals, and transformations, and it dominates the rest of probability. The uniform distribution is the continuous analogue of "all outcomes equally likely." It is the continuous sibling of the discrete uniform distribution on a finite set. The exponential distribution is the continuous analogue of the The Geometric Distribution. Just as the geometric distribution counts the number of discrete trials until a first success, the exponential distribution measures the continuous time until a first arrival. This arrival occurs in a Poisson-type process. Both distributions are simple enough to compute with exactly. They have closed-form CDFs and closed-form moments. Yet they are rich enough to illustrate every major technique in the continuous toolkit. These techniques include integration against a density, moment generating functions, order statistics, and change of variables. The centerpiece of this article is the memorylessness property of the exponential distribution. Conditional on having survived past time , the remaining waiting time is exponential all over again. It is exactly as if the clock had been reset. This is not a curiosity — it is a characterization. Among continuous distributions on , memorylessness holds if and only if the distribution is exponential. This rigidity explains why the exponential distribution is the unique continuous distribution. It appears as the limit of scaled geometric waiting times. It is also why it is the canonical model for radioactive decay, component lifetimes, and interarrival times in Poisson processes. This article gives the precise definitions of both densities. It derives their moments and moment generating functions from scratch. It proves the memorylessness theorem in both directions. It shows, via a genuine counterexample, why memorylessness fails outside the exponential family. It closes by pointing toward the The Normal Distribution and the general machinery of Functions of Random Variables. Both of these build directly on the computations developed here.
- The uniform distribution has constant density on : every subinterval's probability is proportional to its length.
- The exponential distribution with rate has density on and models waiting times for rare, constant-rate events.
- Both distributions have closed-form CDFs, means, variances, and moment generating functions computable by direct integration.
- The exponential distribution is the continuous limit of a rescaled The Geometric Distribution as the number of trials per unit time grows without bound.
- Memorylessness: for an exponential and all — the future is independent of the past, given survival.
- Memorylessness is a characterization: it holds among continuous positive random variables only for the exponential family, a fact provable via Cauchy's functional equation.
- Key idea: the exponential distribution is the unique "ageless" continuous waiting-time law, and this rigidity is what makes it computationally and structurally central to all of probability.
Where this lives today
The uniform distribution is the computational bedrock of simulation: essentially every pseudo-random number generator produces (an approximation to) samples, and the inverse transform method converts these into samples from any target distribution via — a technique whose correctness for continuous is a direct consequence of the density computations developed here, and which is the standard bridge toward simulating the The Normal Distribution and other laws studied under Functions of Random Variables. Uniform priors also appear throughout Bayesian statistics as the "no-information" prior on a bounded parameter range, and uniform distributions on discretized intervals underlie hashing and load-balancing algorithms in computer science. The exponential distribution is the default model for inter-arrival times in Poisson processes (customer arrivals, radioactive decay, photon detection, network packet arrivals), for component lifetimes in reliability engineering when failure is "memoryless" (electronic components rather than mechanically wearing parts), and for holding times in queueing theory (the "M" in Kendall's M/M/1 notation stands for memoryless, i.e. exponential). In cryptography, exponential waiting-time assumptions underlie models of adversarial timing attacks; in physics, the exponential decay law for unstable particles is a direct restatement of the memorylessness theorem proved above (a nucleus's probability of decaying in the next instant does not depend on its age). In finance, exponential distributions model time-to-default and time-to-claim in insurance and credit risk. Both distributions, being the simplest non-trivial continuous laws with closed-form CDFs, also serve as the pedagogical proving ground for every later technique — transformations, order statistics, moment generating functions — that culminates in the The Normal Distribution as a limit of sums, via the central limit theorem.
:::quiz[For , which quantity always equals the mean ?]
- The variance
- The standard deviation ✓
- The median of
Ask the tutor: How does the memorylessness of the exponential distribution generalize to the "lack of aftereffect" property defining a continuous-time Markov process?
A continuous random variable is uniformly distributed on , written , if it has probability density function
A continuous random variable is exponentially distributed with rate , written , if it has probability density function
Both are genuine densities: everywhere, and in each case , the latter following since and .
Intuition
Picture the uniform density as a flat plateau of height sitting over the interval and zero elsewhere — literally "spread the unit of probability mass evenly." The probability that lands in any subinterval is exactly , proportional to length and nothing else: no point or sub-region is favored. This is the natural continuous generalization of picking a uniformly random element from a finite set, and it is the model of choice whenever a quantity is known only to lie in a range, with no further information distinguishing values within that range. The exponential density, by contrast, is a decaying curve: tallest at with height , falling off geometrically in the continuous sense. Think of as a rate — the average number of arrivals per unit time in a Poisson-type process — so that is the mean waiting time. The defining feature, made precise below, is that the exponential "forgets": having already waited minutes for the bus without success tells you nothing about how much longer you'll wait, a fact utterly false for, say, a uniformly distributed waiting time on , where waiting 9 minutes already tells you the bus is imminent.
:::svg[Uniform density on : constant height , area under any subinterval proportional to its width]
Part A (Uniform moments). Let . Then
Part B (Exponential moments and MGF). Let , . Then for ,
and consequently
Part C (Memorylessness). Let . Then for all ,
Conversely, suppose is a continuous random variable with for all , and suppose satisfies
Then for some .
Part A. By definition of expectation for a continuous random variable,
For the second moment,
using the factorization . Then
Putting both terms over denominator :
Part B. For ,
where the integral converges precisely because , and evaluates via for . (For the integral diverges, so the MGF is defined only on ; this is enough to generate all moments by differentiating at .) Differentiating, , so . Differentiating again, , so . Hence
(Alternatively one may compute these moments directly via integration by parts on ; the MGF route is given here because it will recur for Functions of Random Variables.)
Part C, forward direction. First compute the survival function (tail probability) of :
Now fix . By the definition of conditional probability, since (as ), the event equals , so
This proves the forward direction; note for all finite , so the conditioning is always well defined.
Part C, converse direction. Let for ; by hypothesis for all . The memorylessness hypothesis states
(the first equality holding because again ), which rearranges to the functional equation
We claim is non-increasing: this holds for any survival function, since implies for . Also is right-continuous (a general property of survival functions where is a CDF, itself right-continuous), and for all by hypothesis together with . Define , well-defined since . Equation becomes, after taking logarithms,
This is Cauchy's functional equation restricted to . We solve it under the regularity condition that is monotone (equivalently is monotone, which we established above — non-increasing means is non-increasing). Step 1: for all positive integers and . By induction on : the base case is trivial, and if then . Step 2: for positive integers . Apply Step 1 with replaced by : , i.e. , so . Step 3: for all positive rationals . Combine Steps 1–2:
Taking , this gives for every positive rational . Step 4: extend to all real using monotonicity. Let . We know : indeed since ; and in fact strictly, for if then for all rationals , and by the monotonicity of (sandwiching any real between rationals arbitrarily close to it) this would force on , i.e. , contradicting that is a proper survival function of a random variable with necessarily as for a genuine (non-degenerate, a.s.-finite) continuous random variable on . [If instead were allowed, would not be a.s. finite, contradicting that is a real-valued random variable.] So ; write . Now fix any real and let , be sequences of positive rationals with and . Monotonicity of (non-increasing) gives
By Step 3, and as . Squeezing, for every . Hence for all , which is exactly the survival function of . Since a CDF (equivalently its survival function) determines the distribution of uniquely, we conclude .
∎Worked examples
Example 1 (Uniform: a randomized quality-control cutoff). A machine cuts steel rods; because of small errors, the length in centimeters of a rod nominally long is modeled as . A rod is acceptable if its length lies in , and is sold at a premium if additionally it lies in . Probability of acceptance. Since is uniform on , an interval of length ,
Probability of premium quality, given acceptance. We need . Since ,
Mean and variance of length. By Part A of the theorem with , :
So the average length is exactly the nominal , with standard deviation .
Example 2 (Exponential: server response times and memorylessness in action). A web server's response time (in seconds) to a request is modeled as with (mean response time seconds). Probability the response takes more than 4 seconds.
Probability it takes more than 7 seconds total, given it has already taken more than 3 seconds. By memorylessness (Part C), with , :
exactly the same number as the unconditional computed above — the three seconds already elapsed are entirely irrelevant to the additional wait. Contrast this with the direct (non-memoryless-shortcut) computation as a check:
confirming the two computations agree. Variance and a probability sandwich. By Part B, , so the standard deviation is seconds — as large as the mean itself, a signature feature of the exponential distribution (its coefficient of variation is always exactly ). Using the MGF, we can also get the third moment via : since , direct differentiation gives , so , a number that would be considerably more painful to extract from repeated integration by parts.
The converse direction of Part C assumed is a continuous random variable on with a genuine functional equation holding for all — not merely at a single pair , and not merely approximately. Drop the "for all " universality (i.e. only require memorylessness at one particular pair, or only for in some restricted set) and the conclusion collapses. Concretely, let , whose survival function is
(and for ). Check whether the memoryless identity can hold even for a single nontrivial pair with :
These agree only when , i.e. only in the degenerate case or . For example with , :
and . So already at this one pair the uniform distribution fails memorylessness — confirming that memorylessness genuinely distinguishes the exponential family from other continuous laws on , including the uniform distribution studied in the same article. More strikingly, this also shows why the hypothesis "for all " cannot be relaxed to "for some " in the converse: the forward implication (exponential memoryless) is airtight, but one cannot hope to recover exponentiality from a single instance of the identity, since many non-exponential (like the uniform one above restricted appropriately, or any tampered with off a sparse set) can coincidentally satisfy at isolated points while failing it generically. It is precisely the simultaneous validity for every pair — turning into Cauchy's equation on a continuum — that pins down the exponential form uniquely. Intuitively: with the uniform distribution, having survived units already makes total survival to more informative (less likely relative to fresh odds) than starting fresh at , because uniform mass is running out near — the exact opposite of "forgetting."
Scope, edge cases & common traps
| Situation | Correct handling |
|---|---|
| , evaluate for a point | Equals always — continuous distributions assign zero mass to single points; only intervals carry probability. |
| Rate vs. mean parametrization of exponential | Some texts use rate (density ), others use mean (density ) — always confirm which convention is in force before reading off . |
| Applying memorylessness at negative or | The identity is stated, and only proved, for ; for the left side isn't even the right conditional event framing. |
| Believing memorylessness is just "independence of the past" for any random process | It characterizes only the exponential continuous law on (and, discretely, the geometric law) — no other continuous distribution on has it, by the theorem's converse. |
| Confusing "uniform on an interval" with "discrete uniform on integers in that interval" | These are different objects with different variances; of continuous uniform on is , not the discrete uniform formula. |
| Minimum of independent exponentials | with independent is — a clean consequence of memorylessness/tail multiplicativity, easily misremembered as the maximum instead. |
The mathematician behind it
Origins · 1 minSiméon Denis Poisson and how this was discovered
Poisson's 1837 treatise Recherches sur la probabilité des jugements introduced the limiting law now bearing his name, arising as the limit of the binomial distribution under rare-event scaling; the exponential distribution emerges as the natural continuous-time waiting law between events of a Poisson process, tying together discrete counting and continuous waiting in a single framework that dominates queueing theory, reliability engineering, and physics of decay processes to this day.
Why is the exponential distribution called "memoryless," and is that the same as independence?
Memorylessness means that conditional on having survived past time , the distribution of the remaining lifetime is identical to the distribution of a fresh : formally for all . This is a statement about a single random variable's conditional law, not about two separate random variables being statistically independent in the usual sense. It is best read as "the amount of elapsed time carries zero information about the amount of remaining time" — the survival probability resets exactly as if a fresh exponential clock had started at time .
Can a uniform distribution ever be memoryless?
No. The counterexample above shows explicitly that fails the memoryless identity even at a single pair , giving against . More conceptually, any uniform distribution on a bounded interval has survival probability hitting exactly at the right endpoint, so information about elapsed time is highly informative about remaining time near that boundary — the opposite of forgetting. Memorylessness is provably exclusive to the exponential family among continuous laws on .
How do you simulate an exponential random variable from a uniform one?
Use the inverse transform method. If , then is distributed . This follows because the CDF of the exponential is , which is a strictly increasing bijection from to ; setting and solving for gives , and the general inverse-transform theorem guarantees whenever . Since is itself when is, one often simplifies to .
Why does the exponential distribution have variance equal to the square of its mean?
This is a direct computation from the moment generating function : differentiating gives and , so . Equivalently, the exponential distribution's coefficient of variation (standard deviation divided by mean) is always exactly , a signature numeric fact that instantly distinguishes exponential data from, say, nearly-deterministic lifetimes (coefficient of variation near ) or highly erratic heavy-tailed lifetimes (coefficient of variation above ).
What is the relationship between the exponential distribution and the geometric distribution?
The exponential distribution is the continuous-time limit of a rescaled The Geometric Distribution. If you divide time into tiny intervals of length and attempt a "success" (arrival) independently in each with probability , the number of failed intervals before the first success is geometric, and the time until first success, , converges in distribution to as . This is why the exponential distribution inherits memorylessness directly from the memorylessness of the geometric distribution (a fair coin doesn't "remember" past tails), and it is the standard route by which discrete waiting-time intuition becomes continuous waiting-time theory.
Does every "rate" parametrized model automatically have the exponential distribution?
No — having a constant hazard rate is precisely what forces exponentiality, but many lifetime models have hazard rates that change over time (increasing hazard for wear-out failure, decreasing hazard for "infant mortality" in components), and these are modeled by distributions such as the Weibull or gamma, which strictly contain the exponential as a special case. The exponential distribution is exactly the constant-hazard-rate member of these families, which is equivalent, by the theorem proved here, to memorylessness; any observed increasing or decreasing failure rate is direct empirical evidence against an exponential model.
Why does the proof of the memorylessness converse need Cauchy's functional equation rather than a shortcut?
Because the hypothesis only gives a multiplicative relation for all nonnegative , with no a priori assumption of differentiability or continuity beyond being a continuous random variable. Cauchy's functional equation (in additive form, after taking logarithms) is famous for having wild, non-linear, even non-measurable solutions if no regularity is assumed — solutions built via a Hamel basis of over . The monotonicity of the survival function (a genuine, provable property of every survival function) is exactly the regularity condition that rules out these pathological solutions and forces the clean linear form , hence the exponential form for .