Session 6: Continuous Random Variables

Movement II: One Random Variable

EE 520: Random Processes (Fall 2026). Instructor: John Lipor.

Launch

Your range sensor returns 103.7103.7 m. Ask for the probability that the true range is exactly 103.7103.7 m and the answer is zero: no single real number carries any probability when the outcome varies continuously. Yet the reading is obviously informative, and you would happily bet on the target being nearer to 103.7103.7 m than to 200200 m. Resolving that tension is today’s job. The fix is to stop asking for the probability of a point and start asking for the probability of an interval, and the object that delivers interval probabilities is the density, a rate of probability per unit length rather than a probability itself. By the end you will read a Gaussian noise spec, standardize it, and compute an outage probability from a table; and you will see why two noise models with the same variance can still disagree, sharply, about how alarming a large reading is.

Development

From CDF to density

Session 4 built the CDF FX(x)=ℙ(X≤x)F_X(x) = \mathbb{P}(X \le x) for discrete variables, where it was a staircase. The CDF is the object that survives into the continuous world unchanged in meaning: for any random variable, FX(x)F_X(x) is the probability of landing at or below xx. What changes is that a continuous variable’s CDF has no jumps; it rises smoothly, and the mass it accumulates over an interval is what we can measure.

Definition 1 (Continuous random variable and its density). A random variable XX is continuous if its CDF can be written as an integral of a nonnegative function fXf_X, called the probability density function (PDF): FX(x)=ℙ(X≤x)=∫−∞xfX(t)dt.\begin{equation} F_X(x) = \mathbb{P}(X \le x) = \int_{-\infty}^x f_X(t)\, dt. \end{equation} Consequently fX(x)=FX′(x)f_X(x) = F_X'(x) wherever FXF_X is differentiable, and the probability of an interval is the area under the density: ℙ(a<X≤b)=∫abfX(t)dt=FX(b)−FX(a).\begin{equation} \label{eq:intervalprob} \mathbb{P}(a < X \le b) = \int_a^b f_X(t)\, dt = F_X(b) - F_X(a). \end{equation}

Because probability comes only from intervals, a single point carries none: taking a→ba \to b in [eq:intervalprob] gives ℙ(X=b)=0\mathbb{P}(X = b) = 0 for every bb. This is the resolution of the Launch puzzle. It also means that for continuous variables we need not fuss over << versus ≤\le; endpoints have zero probability either way.

A density is a rate, not a probability. The value fX(x)f_X(x) is not a probability. It is a probability per unit length: the mass in a sliver of width dxdx at xx is fX(x)dxf_X(x)\,dx. Two consequences that trip people up. First, a density may exceed 11 (a Uniform[0,12]\mathrm{Uniform}[0, \tfrac12] has f=2f = 2 on its support) because it is a rate, and only its integral must be 11. Second, fX(x)=0.02f_X(x) = 0.02 does not mean “a 2%2\% chance”; it means nothing at all until multiplied by a length. This resolves the Session 1 worry about conditioning on a probability-zero event, which we will complete in Session 8: we condition on {X=x}\left\{X = x\right\} through the density, not through a probability.

Expectation and the tail-integral formula

The mean and LOTUS carry over from the discrete case with sums replaced by integrals.

Definition 2 (Expectation). For a continuous random variable XX with density fXf_X, 𝔼[X]=∫−∞∞xfX(x)dx,\begin{equation} \mathbb{E}[X] = \int_{-\infty}^{\infty} x\, f_X(x)\, dx, \end{equation} and more generally, by LOTUS, 𝔼[g(X)]=∫−∞∞g(x)fX(x)dx\mathbb{E}[g(X)] = \int_{-\infty}^{\infty} g(x)\, f_X(x)\, dx for any function gg (we assert the continuous LOTUS; the proof mirrors the discrete regrouping of Session 4).

Session 5 met a discrete tail-sum formula and deferred its proof. Its continuous twin we prove now, because the proof is short and the identity is the workhorse for means of nonnegative quantities.

Theorem 1 (Tail-integral formula). For a nonnegative random variable XX, 𝔼[X]=∫0∞ℙ(X>x)dx.\begin{equation} \mathbb{E}[X] = \int_0^\infty \mathbb{P}(X > x)\, dx. \end{equation}

Proof. For any fixed value X≥0X \ge 0, height and area agree: X=∫0∞𝟙{X>x}dxX = \int_0^\infty \mathbb{1}\left\{X > x\right\}\, dx, since the integrand is 11 for x<Xx < X and 00 for x>Xx > X. Take the expectation of both sides and exchange it with the integral over xx (a step we assert here; it is justified because the integrand is nonnegative): 𝔼[X]=𝔼[∫0∞𝟙{X>x}dx]=∫0∞𝔼[𝟙{X>x}]dx=∫0∞ℙ(X>x)dx,\begin{equation} \mathbb{E}[X] = \mathbb{E}\!\left[\int_0^\infty \mathbb{1}\left\{X > x\right\}\, dx\right] = \int_0^\infty \mathbb{E}\!\left[\mathbb{1}\left\{X > x\right\}\right]\, dx = \int_0^\infty \mathbb{P}(X > x)\, dx, \end{equation} using 𝔼[𝟙{A}]=ℙ(A)\mathbb{E}[\mathbb{1}\left\{A\right\}] = \mathbb{P}(A) from Session 4 at the last step. ◻

This is Session 5’s tail sum wearing continuous clothes: there we added ℙ(X≥k)\mathbb{P}(X \ge k) over integers, here we integrate ℙ(X>x)\mathbb{P}(X > x) over the half-line. Same idea, same picture, integral instead of sum.

Three models: uniform, exponential, Gaussian

Uniform. X∼Uniform[a,b]X \sim \mathrm{Uniform}[a, b] spreads its mass evenly: fX(x)=1b−a on [a,b],FX(x)=x−ab−a on [a,b].\begin{equation} f_X(x) = \frac{1}{b - a} \text{ on } [a, b], \qquad F_X(x) = \frac{x - a}{b - a} \text{ on } [a, b]. \end{equation} By symmetry 𝔼[X]=(a+b)/2\mathbb{E}[X] = (a + b)/2, and a short computation gives Var⁡(X)=(b−a)2/12\operatorname{Var}(X) = (b - a)^2 / 12. It is the model for “somewhere in this interval, no place preferred.”

Exponential. X∼Exponential(λ)X \sim \mathrm{Exponential}(\lambda), parameterized by rate λ>0\lambda > 0, is the standard model for a nonnegative waiting time: fX(x)=λe−λx,FX(x)=1−e−λx,x≥0.\begin{equation} f_X(x) = \lambda e^{-\lambda x}, \qquad F_X(x) = 1 - e^{-\lambda x}, \qquad x \ge 0. \end{equation} Its survival probability is ℙ(X>x)=e−λx\mathbb{P}(X > x) = e^{-\lambda x}, and the tail-integral formula delivers the mean in one line: 𝔼[X]=∫0∞e−λxdx=1λ.\begin{equation} \mathbb{E}[X] = \int_0^\infty e^{-\lambda x}\, dx = \frac{1}{\lambda}. \end{equation} The exponential is the continuous echo of Session 5’s geometric, and it inherits the geometric’s signature property.

Proposition 1 (Memorylessness of the exponential). If X∼Exponential(λ)X \sim \mathrm{Exponential}(\lambda), then for all s,t≥0s, t \ge 0, ℙ(X>s+t|X>s)=ℙ(X>t).\begin{equation} \mathbb{P}(X > s + t \,|\,X > s) = \mathbb{P}(X > t). \end{equation}

Proof. Since {X>s+t}⊆{X>s}\left\{X > s + t\right\} \subseteq \left\{X > s\right\}, the intersection is {X>s+t}\left\{X > s + t\right\}, so ℙ(X>s+t|X>s)=ℙ(X>s+t)ℙ(X>s)=e−λ(s+t)e−λs=e−λt=ℙ(X>t).\begin{equation} \mathbb{P}(X > s + t \,|\,X > s) = \frac{\mathbb{P}(X > s + t)}{\mathbb{P}(X > s)} = \frac{e^{-\lambda(s + t)}}{e^{-\lambda s}} = e^{-\lambda t} = \mathbb{P}(X > t). \end{equation} ◻

A component that has already survived ss hours is, going forward, as good as new: its remaining lifetime has the same distribution it started with. This is the exact continuous mirror of the geometric argument from Session 5, and it is no accident. A geometric with small per-step success probability qq, counted on a fine time grid of spacing Δ\Delta with λ=q/Δ\lambda = q/\Delta, converges to an Exponential(λ)\mathrm{Exponential}(\lambda) as Δ→0\Delta \to 0; the memoryless discrete clock becomes the memoryless continuous one. And the same reconciliation from Session 5 applies: memorylessness is a statement about the waiting time given the mechanism, not a license to ignore evidence about whether the mechanism is even running.

Gaussian. X∼𝒩(μ,σ2)X \sim {\mathcal N}(\mu, \sigma^2), the workhorse noise model, has density fX(x)=12πσ2exp⁡(−(x−μ)22σ2),\begin{equation} f_X(x) = \frac{1}{\sqrt{2\pi\sigma^2}} \exp\!\left(-\frac{(x - \mu)^2}{2\sigma^2}\right), \end{equation} with mean μ\mu and variance σ2\sigma^2. We take the normalizing constant 1/2πσ21/\sqrt{2\pi\sigma^2} on faith (verifying ∫fX=1\int f_X = 1 is a standard polar-coordinates exercise). The Gaussian has no elementary antiderivative, so we never integrate it by hand; instead we standardize to a single reference variable and read a table.

Definition 3 (Standard normal, Φ\Phi, and QQ). The standard normal is Z∼𝒩(0,1)Z \sim {\mathcal N}(0, 1). Its CDF is written Φ(z)=ℙ(Z≤z)\Phi(z) = \mathbb{P}(Z \le z), and its upper-tail probability is Q(z)=ℙ(Z>z)=1−Φ(z).\begin{equation} Q(z) = \mathbb{P}(Z > z) = 1 - \Phi(z). \end{equation} By the symmetry of the density about 00, Q(z)=Φ(−z)Q(z) = \Phi(-z) and Φ(z)=1−Q(z)\Phi(z) = 1 - Q(z).

The move that makes every Gaussian computation identical is standardization: if X∼𝒩(μ,σ2)X \sim {\mathcal N}(\mu, \sigma^2) then Z=(X−μ)/σ∼𝒩(0,1)Z = (X - \mu)/\sigma \sim {\mathcal N}(0, 1), so any probability about XX becomes a probability about ZZ: ℙ(X≤x)=ℙ(Z≤x−μσ)=Φ(x−μσ).\begin{equation} \label{eq:standardize} \mathbb{P}(X \le x) = \mathbb{P}\!\left(Z \le \frac{x - \mu}{\sigma}\right) = \Phi\!\left(\frac{x - \mu}{\sigma}\right). \end{equation} Note the divisor is σ\sigma, the standard deviation, never σ2\sigma^2. A few tail values, worth memorizing to one or two figures, anchor all Gaussian estimates:

zz Q(z)=ℙ(Z>z)Q(z) = \mathbb{P}(Z > z)
11 0.15870.1587
22 0.02280.0228
33 0.001350.00135

The “3σ3\sigma” folklore is the last row: only about one part in 740740 of a Gaussian’s mass lies beyond three standard deviations on one side.

Why Gaussian noise models are everywhere. The central limit theorem says that if X1,X2,…X_1, X_2, \dots are iid with mean μ\mu and variance σ2\sigma^2, then the standardized sum 1σn∑i=1n(Xi−μ)\frac{1}{\sigma\sqrt{n}}\sum_{i=1}^n (X_i - \mu) converges in distribution to 𝒩(0,1){\mathcal N}(0,1) as n→∞n \to \infty. Because physical noise is so often the accumulation of many small independent disturbances, the Gaussian is its natural limiting shape, which is why it is the default sensor-noise model throughout this course (we state the theorem here and return to sums of Gaussians in Session 14).

Tails are a modeling decision

Variance is not the whole story of a noise model. Two densities can share a mean and a variance and still disagree about how often they produce a large deviation, and that disagreement is exactly what decides whether a surprising reading is “just noise” or a broken sensor. To see it, put the Gaussian beside the Laplace density (a double-sided exponential), used here only as a comparison model: f(z)=λ2e−λ|z|,Var⁡=2λ2.\begin{equation} f(z) = \frac{\lambda}{2} e^{-\lambda \left\lvert z \right\rvert}, \qquad \operatorname{Var} = \frac{2}{\lambda^2}. \end{equation} Match its variance to a 𝒩(0,σ2){\mathcal N}(0, \sigma^2) by setting 2/λ2=σ22/\lambda^2 = \sigma^2, i.e. λ=2/σ\lambda = \sqrt{2}/\sigma. Now both models have the same spread, and we can ask each for the probability of landing more than kk standard deviations from the mean. For the Gaussian, ℙ(|X|>kσ)=2Q(k)\mathbb{P}(\left\lvert X \right\rvert > k\sigma) = 2Q(k); for the variance-matched Laplace, ℙ(|X|>kσ)=e−2k\mathbb{P}(\left\lvert X \right\rvert > k\sigma) = e^{-\sqrt{2}\,k}:

kk Gaussian 2Q(k)\;2Q(k) Laplace e−2k\;e^{-\sqrt{2}\,k}
11 0.3170.317 0.2430.243
22 0.0450.045 0.0590.059

Near the center (k=1k = 1) the two are comparable and the Gaussian actually puts slightly more mass beyond 1σ1\sigma. But the ordering has already reversed by k=2k = 2, and the reason is structural: the Gaussian tail decays like e−k2/2e^{-k^2/2}, quadratically fast in the exponent, while the Laplace decays only like e−2ke^{-\sqrt 2\, k}, linearly. The heavier (Laplace) tail pulls steadily ahead, and the gap widens as kk grows. How much worse it gets at 3σ3\sigma and 4σ4\sigma, and what that means for judging whether a 4σ4\sigma reading is noise or a broken sensor, is the subject of HW3.

Same variance ≠\ne same model. Matching variances does not make two noise models interchangeable. The tail behavior, how fast the density decays far from the mean, is a separate modeling choice, and it is the one that governs rare-but-consequential events: outages, false alarms, and the question “is this outlier real?” Choose the tail deliberately.

Worked examples

(a) Outage probability from a Gaussian spec

A receiver’s received power, in decibels, is modeled as X∼𝒩(−70,36)X \sim {\mathcal N}(-70,\, 36), so the mean is −70-70 dB and the standard deviation is σ=36=6\sigma = \sqrt{36} = 6 dB. The receiver loses lock (an outage) whenever the power drops below −82-82 dB. What is the outage probability?

Standardize with σ=6\sigma = 6 (not 3636), using [eq:standardize]: ℙ(outage)=ℙ(X<−82)=Φ(−82−(−70)6)=Φ(−126)=Φ(−2).\begin{equation} \mathbb{P}(\text{outage}) = \mathbb{P}(X < -82) = \Phi\!\left(\frac{-82 - (-70)}{6}\right) = \Phi\!\left(\frac{-12}{6}\right) = \Phi(-2). \end{equation} By symmetry Φ(−2)=Q(2)\Phi(-2) = Q(2), and the table gives ℙ(outage)=Q(2)≈0.0228,\begin{equation} \mathbb{P}(\text{outage}) = Q(2) \approx 0.0228, \end{equation} about a 2.3%2.3\% chance. The entire computation was: subtract the mean, divide by the standard deviation, read the table. That is every Gaussian probability you will ever compute.

(b) First alarm among four sensors

K=4K = 4 sensors watch a field; once a target enters, each raises an alarm after an independent Exponential(λ)\mathrm{Exponential}(\lambda) delay. When does the first alarm sound?

The first alarm time is T=min⁡(X1,…,X4)T = \min(X_1, \dots, X_4), and the minimum is the moment for Session 5’s CDF method. The first alarm sounds after tt exactly when all four sensors are still silent: ℙ(T>t)=ℙ(X1>t,…,X4>t)=∏i=14ℙ(Xi>t)=(e−λt)4=e−4λt.\begin{equation} \mathbb{P}(T > t) = \mathbb{P}(X_1 > t, \dots, X_4 > t) = \prod_{i=1}^4 \mathbb{P}(X_i > t) = \left(e^{-\lambda t}\right)^4 = e^{-4\lambda t}. \end{equation} But e−4λte^{-4\lambda t} is the survival probability of an Exponential(4λ)\mathrm{Exponential}(4\lambda), so T∼Exponential(4λ)T \sim \mathrm{Exponential}(4\lambda): the minimum of independent exponentials is again exponential, with the rates added. Four sensors detect four times as fast, with mean first-alarm time 1/(4λ)1/(4\lambda). Notice this reused Session 5’s recipe unchanged, only swapping the geometric’s (1−q)k(1 - q)^k for the exponential’s e−λte^{-\lambda t}; the min-means-CDF lesson does not care whether the clock is discrete or continuous.

(c) The last alarm, and a new named distribution

Return to the sensor field of example (b), but now ask about the last alarm. A confirmation protocol declares a target only once every one of mm sensors has reported, and each sensor’s delay is an independent Exponential(λ)\mathrm{Exponential}(\lambda). Measure time in units of the mean delay, so λ=1\lambda = 1 (for general λ\lambda, replace MM by λM\lambda M throughout). How long does confirmation take?

The confirmation time is M=max⁡(X1,…,Xm)M = \max(X_1, \dots, X_m), so Session 5’s recipe applies with the maximum in place of the minimum: ℙ(M≤t)=∏i=1mℙ(Xi≤t)=(1−e−t)m,t≥0.\begin{equation} \label{eq:maxexp} \mathbb{P}(M \le t) = \prod_{i=1}^m \mathbb{P}(X_i \le t) = \left(1 - e^{-t}\right)^m, \qquad t \ge 0. \end{equation} That answers the question exactly, but it hides how MM behaves as the field grows. The first alarm got faster, like 1/m1/m. The last alarm gets slower, and a good guess for the rate is ln⁡m\ln m: the waiting time tt at which a single sensor is still silent with probability 1/m1/m solves e−t=1/me^{-t} = 1/m. So center MM at ln⁡m\ln m and look at what is left over. For x≥−ln⁡mx \ge -\ln m, ℙ(M−ln⁡m≤x)=(1−e−(x+ln⁡m))m=(1−e−xm)m.\begin{equation} \mathbb{P}(M - \ln m \le x) = \left(1 - e^{-(x + \ln m)}\right)^m = \left(1 - \frac{e^{-x}}{m}\right)^m. \end{equation} This is the same limit that produced the Poisson pmf in Session 5, (1+a/m)m→ea(1 + a/m)^m \to e^{a}, now with a=−e−xa = -e^{-x} held fixed while m→∞m \to \infty: ℙ(M−ln⁡m≤x)→exp⁡(−e−x)for every real x.\begin{equation} \label{eq:gumbellimit} \mathbb{P}(M - \ln m \le x) \longrightarrow \exp\!\left(-e^{-x}\right) \qquad \text{for every real } x. \end{equation} The shifted maximum does not spread out or drift away. It settles on a fixed shape, and that shape deserves a name.

Definition 4 (Gumbel distribution). A random variable GG has the standard Gumbel distribution if its CDF is F(x)=exp⁡(−e−x),x∈ℝ.\begin{equation} F(x) = \exp\!\left(-e^{-x}\right), \qquad x \in \mathbb{R}. \end{equation} It has the Gumbel distribution with location μ\mu, written G∼Gumbel(μ)G \sim \mathrm{Gumbel}(\mu), if G−μG - \mu is standard Gumbel, so that ℙ(G≤x)=exp⁡(−e−(x−μ))\mathbb{P}(G \le x) = \exp\!\left(-e^{-(x - \mu)}\right).

Check that FF is a legitimate CDF: it is continuous and increasing (because e−xe^{-x} decreases and exp⁡(−⋅)\exp(-\,\cdot\,) reverses that), F(x)→exp⁡(−∞)=0F(x) \to \exp(-\infty) = 0 as x→−∞x \to -\infty, and F(x)→exp⁡(0)=1F(x) \to \exp(0) = 1 as x→∞x \to \infty. Differentiating gives the density f(x)=e−xexp⁡(−e−x)f(x) = e^{-x} \exp\!\left(-e^{-x}\right). Unlike the exponential, the Gumbel lives on the whole real line; it is skewed, with a left tail that dies doubly exponentially and a right tail that dies like e−xe^{-x}. In this language, [eq:gumbellimit] says that M−ln⁡mM - \ln m is approximately standard Gumbel; equivalently, the last alarm MM itself is approximately Gumbel(ln⁡m)\mathrm{Gumbel}(\ln m).

The exact CDF of M−ln⁡mM - \ln m from [eq:maxexp] for m=2,5,20m = 2, 5, 20 approaches the Gumbel CDF [eq:gumbellimit].

How fast is the limit reached? At x=0x = 0 the exact probability (1−1/m)m(1 - 1/m)^m is 0.3160.316 for m=4m = 4, 0.3580.358 for m=20m = 20, and 0.3660.366 for m=100m = 100, against the limit e−1≈0.368e^{-1} \approx 0.368 (Figure 1). Twenty sensors are already plenty.

Designing the timeout. With m=20m = 20 sensors, how long must the protocol wait so that all twenty have reported with probability 0.950.95? The Gumbel approximation asks for exp⁡(−e−x)=0.95\exp(-e^{-x}) = 0.95, so x=−ln⁡(−ln⁡0.95)≈2.970x = -\ln(-\ln 0.95) \approx 2.970 and t≈ln⁡20+2.970≈5.966t \approx \ln 20 + 2.970 \approx 5.966 mean delays. The exact answer, solving (1−e−t)20=0.95(1 - e^{-t})^{20} = 0.95, is t=−ln⁡(1−0.951/20)≈5.967t = -\ln\!\left(1 - 0.95^{1/20}\right) \approx 5.967. The approximation also says how the timeout scales: doubling the field to 4040 sensors adds only ln⁡2≈0.69\ln 2 \approx 0.69 mean delays. Detection got four times faster with four sensors in example (b); confirmation gets only logarithmically slower as sensors are added.

Remark 1. The Gumbel shape is not special to exponentials. Maxima of many light-tailed families, the Gaussian included, approach it after a suitable shift and scaling, which is why it is called an extreme-value distribution. We will not need that general fact.

(d) Maxima of Gumbels are Gumbel

The minimum of independent exponentials was again exponential, with rates added. The Gumbel has the mirror-image property for maxima.

Proposition 2 (Max-stability). Let G1,…,GnG_1, \dots, G_n be independent with Gk∼Gumbel(μk)G_k \sim \mathrm{Gumbel}(\mu_k). Then maxkGk∼Gumbel(L),L=ln⁡∑k=1neμk.\begin{equation} \max_k G_k \sim \mathrm{Gumbel}(L), \qquad L = \ln \sum_{k=1}^n e^{\mu_k}. \end{equation} In particular, the maximum of nn independent Gumbel(μ)\mathrm{Gumbel}(\mu) variables is Gumbel(μ+ln⁡n)\mathrm{Gumbel}(\mu + \ln n).

Proof. Session 5’s proof never used that the CDFs were identical: the maximum is at most xx exactly when every GkG_k is, and independence turns that into a product. So ℙ(maxkGk≤x)=∏k=1nexp⁡(−e−(x−μk))=exp⁡(−e−x∑k=1neμk)=exp⁡(−e−(x−L)),\begin{equation} \mathbb{P}\!\left(\max_k G_k \le x\right) = \prod_{k=1}^n \exp\!\left(-e^{-(x - \mu_k)}\right) = \exp\!\left(-e^{-x} \sum_{k=1}^n e^{\mu_k}\right) = \exp\!\left(-e^{-(x - L)}\right), \end{equation} using ∑keμk=eL\sum_k e^{\mu_k} = e^{L} in the last step. This is the Gumbel(L)\mathrm{Gumbel}(L) CDF. With all μk=μ\mu_k = \mu, L=ln⁡(neμ)=μ+ln⁡nL = \ln(n e^{\mu}) = \mu + \ln n. ◻

The parallel with the exponential is exact: for minima of exponentials the rates λk\lambda_k add; for maxima of Gumbels the weights eμke^{\mu_k} add. Session 7 will show this is not a coincidence.

The Proposition also explains why example (c)’s limit had to be Gumbel. Split mnmn sensors into nn blocks of mm. Each block’s last alarm is approximately Gumbel(ln⁡m)\mathrm{Gumbel}(\ln m), so by the Proposition the overall last alarm is approximately Gumbel(ln⁡m+ln⁡n)=Gumbel(ln⁡mn)\mathrm{Gumbel}(\ln m + \ln n) = \mathrm{Gumbel}(\ln mn), which is exactly what [eq:gumbellimit] predicts for mnmn sensors directly. A limit for maxima has to survive being maximized again, and the Gumbel does.

Log-sum-exp is a soft maximum. The location L=ln⁡∑keμkL = \ln \sum_k e^{\mu_k} of the maximum satisfies maxkμk≤L≤maxkμk+ln⁡n,\begin{equation} \max_k \mu_k \;\le\; L \;\le\; \max_k \mu_k + \ln n, \end{equation} because the sum ∑keμk\sum_k e^{\mu_k} lies between its largest term and nn times its largest term. So LL is a smoothed version of max⁡kμk\max_k \mu_k: the largest location dominates, and close competitors push the maximum a little higher. Session 9 will turn this soft maximum into the softmax.

Consolidation

Work these in class.

  1. (Gaussian standardization.) A range estimate is X∼𝒩(50,4)X \sim {\mathcal N}(50,\, 4) (so σ=2\sigma = 2 m). Find ℙ(X>53)\mathbb{P}(X > 53).
    Answer: standardize with σ=2\sigma = 2: ℙ(X>53)=Q((53−50)/2)=Q(1.5)≈0.0668\mathbb{P}(X > 53) = Q\!\left((53 - 50)/2\right) = Q(1.5) \approx 0.0668.

  2. (Exponential, memorylessness.) An alarm delay is Exponential(λ)\mathrm{Exponential}(\lambda) with mean 55 s, so λ=0.2\lambda = 0.2. Compute ℙ(delay>10)\mathbb{P}(\text{delay} > 10), and then ℙ(delay>15|delay>5)\mathbb{P}(\text{delay} > 15 \,|\,\text{delay} > 5).
    Answer: ℙ(delay>10)=e−0.2⋅10=e−2≈0.135\mathbb{P}(\text{delay} > 10) = e^{-0.2 \cdot 10} = e^{-2} \approx 0.135; by memorylessness ℙ(delay>15|delay>5)=ℙ(delay>10)≈0.135\mathbb{P}(\text{delay} > 15 \,|\,\text{delay} > 5) = \mathbb{P}(\text{delay} > 10) \approx 0.135.

  3. (Conceptual, density vs probability.) A colleague objects that a Uniform[0,12]\mathrm{Uniform}[0, \tfrac12] density equals 22, “which is more than 100%100\%, so it cannot be right.” In one or two sentences, resolve the objection.
    Answer: fX(x)=2f_X(x) = 2 is a rate (probability per unit length), not a probability; the total probability is the area 2×12=12 \times \tfrac12 = 1, and densities are unbounded in principle because only their integral must equal one.

Synthesis

The course thesis asks “what is uncertain?” and this session answered it for quantities that vary continuously: the CDF, unchanged in meaning from the discrete case, is the honest object, and the density beneath it is a rate of probability per unit length, which is why a single point carries no probability yet an interval does. From that one shift everything followed. The tail-integral formula gave means of nonnegative quantities directly from survival probabilities, the continuous echo of Session 5’s tail sum. The exponential turned out to be the geometric’s memoryless twin; the last of many exponential alarms, recentered at ln⁡m\ln m, produced a new named law, the Gumbel, which is closed under maxima just as the exponential is closed under minima; and the Gaussian reduced every question to “subtract the mean, divide by the standard deviation, read QQ.” The session’s sharpest lesson was that variance does not determine a model: the Gaussian and the variance-matched Laplace agree on spread yet disagree on tails, and the tail is the modeling decision that governs rare, expensive events. Next session pushes a random variable through a function, deriving the density of Y=g(X)Y = g(X), which is how instruments and simulators are actually modeled, and which finally explains what happens each time you call a library sampler.

Self-check questions

  1. A continuous XX has fX(103.7)=0.02f_X(103.7) = 0.02. Is the probability that XX equals 103.7103.7 therefore 0.020.02? If not, what does the number mean?
    Answer: No; ℙ(X=103.7)=0\mathbb{P}(X = 103.7) = 0 for any continuous XX. The value 0.020.02 is a density (probability per unit length): the mass near 103.7103.7 in a window of width dxdx is about 0.02dx0.02\,dx.

  2. For X∼𝒩(μ,σ2)X \sim {\mathcal N}(\mu, \sigma^2), write ℙ(X>c)\mathbb{P}(X > c) in terms of QQ. What is the single most common arithmetic slip in this step?
    Answer: ℙ(X>c)=Q((c−μ)/σ)\mathbb{P}(X > c) = Q\!\big((c - \mu)/\sigma\big); the common slip is dividing by the variance σ2\sigma^2 instead of the standard deviation σ\sigma.

  3. Two zero-mean noise models have the same variance, one Gaussian and one Laplace. In one sentence, can you conclude they assign the same probability to a large outlier, and why or why not?
    Answer: No; equal variance fixes the spread but not the tail, and the heavier-tailed Laplace assigns more probability to large deviations, with the gap growing as the deviation grows.

  4. With m=10m = 10 sensors and λ=1\lambda = 1, use the Gumbel approximation to estimate the median confirmation time. (The standard Gumbel median is −ln⁡ln⁡2≈0.367-\ln \ln 2 \approx 0.367.) Then find the exact median from [eq:maxexp].
    Answer: approximately ln⁡10+0.367≈2.669\ln 10 + 0.367 \approx 2.669; exactly −ln⁡(1−0.51/10)≈2.704-\ln\!\left(1 - 0.5^{1/10}\right) \approx 2.704.

  5. Why is the location of the maximum of nn independent Gumbel(μ)\mathrm{Gumbel}(\mu) variables μ+ln⁡n\mu + \ln n, rather than μ\mu or nμn\mu?
    Answer: The maximum is at least as large as any one variable, so its location cannot fall below μ\mu; but log-sum-exp exceeds the largest location by at most ln⁡n\ln n, and with nn equal locations it attains that bound exactly, since ln⁡(neμ)=μ+ln⁡n\ln(n e^{\mu}) = \mu + \ln n. More competitors push the maximum up, but only logarithmically.