Session 8: Joint Structure

Movement III: Two Random Variables

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

Course thesis. A probability model answers three questions: What is uncertain? What is observed? How should observation change belief and action?

Launch

A packet’s arrival time tells you something about the next packet’s. A range reading tells you something about the bearing reading. In every case two numbers are coupled: learning one shifts your belief about the other. One random variable was Movement II; the pedagogical center of this course is what happens when there are two. To reason about a pair we need a distribution over pairs, a joint distribution, and this session builds its whole toolkit: marginals, conditionals, an independence test you can sometimes run by eye, and the covariance that measures linear coupling. A running warning organizes the geometry: for continuous pairs the support (the region the pair can land in) does half the work, so we will draw it before we integrate.

Development

Joint PMFs: a detection table

For a discrete pair (θ,Y)(\theta, Y) the joint PMF is pθY(t,y)=ℙ(θ=t,Y=y),\begin{equation} p_{\theta Y}(t, y) = \mathbb{P}(\theta = t,\ Y = y), \end{equation} the probability of the two statements holding together (the comma is an intersection). It is nonnegative and sums to one over all pairs. Take the central example of this course: a latent indicator θ∈{0,1}\theta \in \{0, 1\} (“target absent / present”) queried by a noisy binary sensor whose flag is Y∈{0,1}Y \in \{0, 1\}. Fix a prior ℙ(θ=1)=0.25\mathbb{P}(\theta = 1) = 0.25, a detection probability ℙ(Y=1|θ=1)=PD=0.9\mathbb{P}(Y = 1 \,|\,\theta = 1) = P_D = 0.9, and a false-alarm probability ℙ(Y=1|θ=0)=PFA=0.15\mathbb{P}(Y = 1 \,|\,\theta = 0) = P_{FA} = 0.15. Each cell of the table is a prior times a likelihood, pθY(t,y)=ℙ(θ=t)ℙ(Y=y|θ=t)p_{\theta Y}(t, y) = \mathbb{P}(\theta = t)\,\mathbb{P}(Y = y \,|\,\theta = t), which is just the chain rule of Session 1:

Table 1: θ∖Y\theta \backslash Y; Y=0Y = 0; Y=1Y = 1; pθp_\theta (row sum)
θ∖Y\theta \backslash Y Y=0Y = 0 Y=1Y = 1 pθp_\theta (row sum)
θ=0\theta = 0 0.63750.6375 0.11250.1125 0.750.75
θ=1\theta = 1 0.02500.0250 0.22500.2250 0.250.25
pYp_Y (col. sum) 0.66250.6625 0.33750.3375 11

The entries came from 0.25⋅0.9=0.2250.25 \cdot 0.9 = 0.225, 0.25⋅0.1=0.0250.25 \cdot 0.1 = 0.025, 0.75⋅0.15=0.11250.75 \cdot 0.15 = 0.1125, and 0.75⋅0.85=0.63750.75 \cdot 0.85 = 0.6375, and they sum to 11. The row and column totals sit in the margins of the table, which is exactly where the name comes from: the marginal PMF of θ\theta is pθ(t)=∑ypθY(t,y)p_\theta(t) = \sum_y p_{\theta Y}(t, y), and likewise pY(y)=∑tpθY(t,y)p_Y(y) = \sum_t p_{\theta Y}(t, y). Marginalizing is summing out the variable you do not care about.

A conditional PMF renormalizes one line of the table. Given Y=1Y = 1, ℙ(θ=1|Y=1)=pθY(1,1)pY(1)=0.2250.3375=23,ℙ(θ=1|Y=0)=0.0250.6625=253≈0.038.\begin{equation} \mathbb{P}(\theta = 1 \,|\,Y = 1) = \frac{p_{\theta Y}(1, 1)}{p_Y(1)} = \frac{0.225}{0.3375} = \frac{2}{3}, \qquad \mathbb{P}(\theta = 1 \,|\,Y = 0) = \frac{0.025}{0.6625} = \frac{2}{53} \approx 0.038. \end{equation} Read that computation slowly: it is Session 2’s Bayes rule, now living in a table. The joint entry (prior ×\times likelihood) is the numerator, the column total (the evidence ℙ(Y=1)\mathbb{P}(Y = 1)) is the denominator, and the quotient is the posterior. A flag pushes belief from a 0.250.25 prior up to 2/32/3; a silent sensor pulls it down to about 0.0380.038.

A joint table is Bayes in a new costume. Building the table from priors and likelihoods, then reading a column backwards, is precisely posterior == prior ×\times likelihood // evidence. The joint distribution is the complete model; marginals and conditionals are the two operations (sum out, renormalize) that extract everything else from it.

Joint PDFs and the geometry of support

For a continuous pair we integrate a density over regions of the plane.

Definition 1 (Jointly continuous). Random variables XX and YY are jointly continuous with joint PDF fXYf_{XY} if, for every region A⊆ℝ2A \subseteq \mathbb{R}^2, ℙ((X,Y)∈A)=∬AfXY(x,y)dxdy.\begin{equation} \mathbb{P}\left((X, Y) \in A\right) = \iint_A f_{XY}(x, y)\, dx\, dy . \end{equation} The density is nonnegative and integrates to 11 over the plane.

As in one dimension, fXYf_{XY} is a density, not a probability: it may exceed 11, and the probability of any single point is zero. The marginal PDF is obtained by integrating out the unwanted variable, fX(x)=∫−∞∞fXY(x,y)dy,fY(y)=∫−∞∞fXY(x,y)dx,\begin{equation} f_X(x) = \int_{-\infty}^{\infty} f_{XY}(x, y)\, dy, \qquad f_Y(y) = \int_{-\infty}^{\infty} f_{XY}(x, y)\, dx, \end{equation} the continuous echo of summing a row or a column. The one habit that prevents most errors in this movement is geometric.

Draw the support before touching any integral. The support of (X,Y)(X, Y) is the region where fXY>0f_{XY} > 0. Every marginal, conditional, and probability is an integral whose limits are dictated by that region. Sketch it first; then a vertical or horizontal slice reads off the inner limits directly. Integrating over a convenient rectangle instead of the actual support is the single most common mistake here.

Conditional densities

Slice the joint density at X=xX = x and renormalize:

Definition 2 (Conditional density). For xx with fX(x)>0f_X(x) > 0, the conditional density of YY given X=xX = x is fY|X(y|x)=fXY(x,y)fX(x),\begin{equation} f_{Y \,|\,X}(y \,|\,x) = \frac{f_{XY}(x, y)}{f_X(x)}, \end{equation} a genuine density in yy for each fixed xx (nonnegative, integrates to 11). Always state its support: yy ranges over the slice of the support at that xx.

This definition quietly settles the pitfall flagged in Session 1: how can we condition on X=xX = x when ℙ(X=x)=0\mathbb{P}(X = x) = 0? We never divide by zero. We divide the joint density by the marginal density, both finite, and the result is the sensible limit of ℙ(Y∈⋅|x≤X≤x+ε)\mathbb{P}(Y \in \cdot \,|\,x \le X \le x + \varepsilon) as ε→0\varepsilon \to 0. Conditioning on a measurement’s exact value is legitimate for continuous variables, and this quotient is what it means. It is, once more, Session 2’s Bayes rule now with densities: fY|Xf_{Y \,|\,X} is a posterior over YY after observing X=xX = x.

Independence: a factorization you must verify

Definition 3 (Independence). XX and YY are independent if fXY(x,y)=fX(x)fY(y)f_{XY}(x, y) = f_X(x)\, f_Y(y) for all (x,y)(x, y) (for discrete variables, pXY=pXpYp_{XY} = p_X p_Y). Equivalently, fY|X(y|x)=fY(y)f_{Y \,|\,X}(y \,|\,x) = f_Y(y): knowing XX tells you nothing about YY.

Independence is a claim to be checked, never a default. There is a fast test that needs no integration at all, and it is purely about the shape of the support.

Proposition 1 (Non-product support forces dependence). If the support of (X,Y)(X, Y) is not a product set (a rectangle B×CB \times C, possibly infinite), then XX and YY are dependent.

Proof. Suppose XX and YY were independent, so fXY(x,y)=fX(x)fY(y)f_{XY}(x, y) = f_X(x) f_Y(y) everywhere. Pick any x0x_0 with fX(x0)>0f_X(x_0) > 0 and any y0y_0 with fY(y0)>0f_Y(y_0) > 0. Then fXY(x0,y0)=fX(x0)fY(y0)>0f_{XY}(x_0, y_0) = f_X(x_0) f_Y(y_0) > 0, so (x0,y0)(x_0, y_0) lies in the support. That is, the support contains the entire product of {x:fX(x)>0}\{x : f_X(x) > 0\} with {y:fY(y)>0}\{y : f_Y(y) > 0\}: it is a rectangle. Contrapositively, a non-rectangular support rules out independence. ◻

So whenever the region where (X,Y)(X, Y) can live has a slanted or curved edge, so that the range of YY depends on the value of xx, the variables are dependent before any density is written down. A rectangular support does not by itself grant independence (the density must still factor); but a non-rectangular one denies it immediately.

Covariance, correlation, and the variance of a sum

Expectations of functions of a pair integrate against the joint density, 𝔼[g(X,Y)]=∬g(x,y)fXY(x,y)dxdy.\begin{equation} \mathbb{E}[g(X, Y)] = \iint g(x, y)\, f_{XY}(x, y)\, dx\, dy . \end{equation} The linear coupling of XX and YY is measured by the covariance.

Definition 4 (Covariance and correlation coefficient). cov⁡(X,Y)=𝔼[(X−𝔼X)(Y−𝔼Y)]=𝔼[XY]−𝔼[X]𝔼[Y],\begin{equation} \operatorname{cov}(X, Y) = \mathbb{E}\left[(X - \mathbb{E}X)(Y - \mathbb{E}Y)\right] = \mathbb{E}[XY] - \mathbb{E}[X]\,\mathbb{E}[Y], \end{equation} and, when both variances are positive, the correlation coefficient is ρXY=cov⁡(X,Y)var⁡(X)var⁡(Y)∈[−1,1].\begin{equation} \rho_{XY} = \frac{\operatorname{cov}(X, Y)}{\sqrt{\operatorname{var}(X)\,\operatorname{var}(Y)}} \in [-1, 1]. \end{equation}

We record the sign and magnitude here; the geometry of ρ\rho (why it is a cosine, why |ρ|=1\left\lvert \rho \right\rvert = 1 means an exact line) waits for Session 12. One consequence is immediate and settles a debt from Session 4.

Proposition 2 (Product expectation under independence). If XX and YY are independent, then 𝔼[XY]=𝔼[X]𝔼[Y]\mathbb{E}[XY] = \mathbb{E}[X]\,\mathbb{E}[Y], hence cov⁡(X,Y)=0\operatorname{cov}(X, Y) = 0 and var⁡(X+Y)=var⁡(X)+var⁡(Y)\operatorname{var}(X + Y) = \operatorname{var}(X) + \operatorname{var}(Y).

Proof. By independence fXY=fXfYf_{XY} = f_X f_Y, so the double integral factors: 𝔼[XY]=∬xyfX(x)fY(y)dxdy=(∫xfX(x)dx)(∫yfY(y)dy)=𝔼[X]𝔼[Y].\begin{equation} \mathbb{E}[XY] = \iint x y\, f_X(x) f_Y(y)\, dx\, dy = \left(\int x f_X(x)\, dx\right)\left(\int y f_Y(y)\, dy\right) = \mathbb{E}[X]\,\mathbb{E}[Y]. \end{equation} Then cov⁡(X,Y)=𝔼[XY]−𝔼[X]𝔼[Y]=0\operatorname{cov}(X, Y) = \mathbb{E}[XY] - \mathbb{E}[X]\mathbb{E}[Y] = 0. Expanding var⁡(X+Y)=var⁡(X)+var⁡(Y)+2cov⁡(X,Y)\operatorname{var}(X + Y) = \operatorname{var}(X) + \operatorname{var}(Y) + 2\operatorname{cov}(X, Y) and dropping the vanishing cross term gives the additivity of variance for independent variables that Session 4 promised. ◻

Worked examples

(a) A ranging sensor: building the joint from prior and likelihood

The detection table was built cell by cell as prior ×\times likelihood. Do the same with densities. A ranging sensor watches targets scattered uniformly over a disk of radius 11 around it. The range XX of a target then has ℙ(X≤x)=x2\mathbb{P}(X \le x) = x^2 (the fraction of the disk’s area within radius xx), so its prior density is fX(x)=2x,0≤x≤1:\begin{equation} f_X(x) = 2x, \qquad 0 \le x \le 1 : \end{equation} far targets are more common, because there is more area at large range. The sensor’s error magnitude grows with range; model it, given X=xX = x, as uniform up to twice the range. That is the likelihood, fY|X(y|x)=12x,0<y<2x.\begin{equation} f_{Y \,|\,X}(y \,|\,x) = \frac{1}{2x}, \qquad 0 < y < 2x . \end{equation}

The joint. The conditional-density definition, read backwards, says fXY=fXfY|Xf_{XY} = f_X \, f_{Y \,|\,X}, the density form of the chain rule. On the region where both factors are positive, fXY(x,y)=2x⋅12x=1,(x,y)∈T={(x,y):0≤y≤2x,0≤x≤1},\begin{equation} f_{XY}(x, y) = 2x \cdot \frac{1}{2x} = 1, \qquad (x, y) \in T = \left\{(x, y) : 0 \le y \le 2x,\ 0 \le x \le 1\right\}, \end{equation} and 00 elsewhere. The pair is uniform on the triangle TT with vertices (0,0)(0, 0), (1,0)(1, 0), (1,2)(1, 2) (Figure 1). That flatness is not built in anywhere: far ranges are more common by the factor 2x2x, but each spreads its error over an interval longer by the same factor, and the two effects cancel exactly. (It also makes the constant 11, since TT has area ∫012xdx=1\int_0^1 2x\,dx = 1; change either model ingredient and both the flatness and the tidy constant disappear.)

Support of the ranging pair, T={0≤y≤2x,0≤x≤1}T = \{0 \le y \le 2x,\ 0 \le x \le 1\}. A vertical slice at xx has yy running from 00 to 2x2x.

The evidence. The marginal of YY plays the role of the column total in the table. Read its limits off the picture: a horizontal slice at height yy runs from the hypotenuse to the right edge, x:y/2→1x : y/2 \to 1 (we need 2x≥y2x \ge y and x≤1x \le 1), so fY(y)=∫y/211dx=1−y2,0≤y≤2,\begin{equation} f_Y(y) = \int_{y/2}^{1} 1\, dx = 1 - \frac{y}{2}, \qquad 0 \le y \le 2 , \end{equation} which integrates to 11 over [0,2][0, 2].

Reading the table backwards. Suppose a calibration run reveals that the error on some target was yy. What does that say about its range? Divide the joint by the evidence: fX|Y(x|y)=fXY(x,y)fY(y)=11−y/2,y2<x≤1.\begin{equation} f_{X \,|\,Y}(x \,|\,y) = \frac{f_{XY}(x, y)}{f_Y(y)} = \frac{1}{1 - y/2}, \qquad \frac{y}{2} < x \le 1 . \end{equation} Given the error, the range is uniform on (y/2,1](y/2, 1]. A large error rules out every range below y/2y/2 (no target that close can err that much) and is otherwise silent: the posterior is flat on what remains, because the joint was flat. This is Session 2’s Bayes rule, now with densities: prior 2x2x, likelihood 1/(2x)1/(2x), evidence 1−y/21 - y/2.

Dependence. No test is needed: the likelihood fY|Xf_{Y \,|\,X} changes with xx, so it cannot equal fYf_Y, and by the equivalent form of the definition XX and YY are dependent. The support test agrees, since TT is not a rectangle.

Prior ×\times likelihood, with densities. A two-stage model (draw XX from a prior, then YY from a likelihood given XX) is a joint density, fXY=fXfY|Xf_{XY} = f_X\, f_{Y \,|\,X}. Integrating out XX gives the evidence fYf_Y; dividing the joint by it gives the posterior fX|Yf_{X \,|\,Y}. The detection table and the ranging triangle are the same computation, one with sums and one with integrals.

(b) Buffon’s needle: choosing the pair is the work

A floor is ruled with parallel lines a distance dd apart. Drop a needle of length ℓ≤d\ell \le d at random. What is the probability that it crosses a line?

Nothing in the question names two random variables; choosing them is the first step. The needle’s position relative to the lines is fixed by two numbers:

“At random” becomes a model: XX uniform on [0,d/2][0, d/2], Θ\Theta uniform on [0,π/2][0, \pi/2], and XX and Θ\Theta independent. That last word is an assumption, so justify it rather than assume it: the floor looks the same at every offset from the lines, so where the center lands has no bearing on how the needle is turned. With independence the joint density factors, fXΘ(x,θ)=2d⋅2π=4πd,0≤x≤d/2,0≤θ≤π/2,\begin{equation} f_{X\Theta}(x, \theta) = \frac{2}{d} \cdot \frac{2}{\pi} = \frac{4}{\pi d}, \qquad 0 \le x \le d/2,\ 0 \le \theta \le \pi/2 , \end{equation} on a rectangle, as independence requires.

The event. The half-needle on the near side of the center reaches a perpendicular distance (ℓ/2)sin⁡Θ(\ell/2)\sin\Theta toward the nearest line, so the needle crosses exactly when X≤(ℓ/2)sin⁡ΘX \le (\ell/2) \sin \Theta. Draw the support and the event together (Figure 2): the crossing region is the area under the curve x=(ℓ/2)sin⁡θx = (\ell/2)\sin\theta inside the rectangle. A vertical slice at angle θ\theta runs x:0→(ℓ/2)sin⁡θx : 0 \to (\ell/2)\sin\theta, so ℙ(cross)=∫0π/2∫0(ℓ/2)sin⁡θ4πddxdθ=4πd⋅ℓ2∫0π/2sin⁡θdθ=2ℓπd.\begin{equation} \mathbb{P}(\text{cross}) = \int_0^{\pi/2} \int_0^{(\ell/2)\sin\theta} \frac{4}{\pi d}\, dx\, d\theta = \frac{4}{\pi d} \cdot \frac{\ell}{2} \int_0^{\pi/2} \sin\theta\, d\theta = \frac{2\ell}{\pi d} . \end{equation} For a needle as long as the line spacing, ℙ(cross)=2/π≈0.637\mathbb{P}(\text{cross}) = 2/\pi \approx 0.637.

Buffon’s needle with ℓ=d\ell = d. The support is the rectangle; the needle crosses a line exactly when (θ,x)(\theta, x) falls under the curve x=(ℓ/2)sin⁡θx = (\ell/2)\sin\theta.

Two remarks. First, the support sketch is what made ℓ≤d\ell \le d matter: it keeps the curve inside the rectangle, so the inner limit is always (ℓ/2)sin⁡θ(\ell/2)\sin\theta. For a longer needle the curve leaves the top of the rectangle, the inner limit becomes min⁡{(ℓ/2)sin⁡θ,d/2}\min\{(\ell/2)\sin\theta,\ d/2\}, and the formula changes; the picture shows this before any integral does. Second, the answer contains π\pi, so dropping many needles and counting crossings estimates π\pi: with nn drops and kk crossings, π≈2ℓn/(dk)\pi \approx 2\ell n / (d k). It is one of the oldest Monte Carlo computations, and a simulator for it needs nothing beyond the uniform samplers of Session 7.

(c) Conditioning on X=YX = Y: which zero-probability event?

The Development resolved how to condition on X=xX = x even though ℙ(X=x)=0\mathbb{P}(X = x) = 0: take the slab x≤X≤x+εx \le X \le x + \varepsilon and let ε→0\varepsilon \to 0. Here is why that recipe has to name a variable, not just an event.

Let XX and YY be independent and uniform on (0,1)(0, 1), so the pair is uniform on the unit square. Given that X=YX = Y, what is the distribution of XX? Symmetry along the diagonal suggests the answer is uniform. But {X=Y}\left\{X = Y\right\} is a probability-zero event, so we must approach it through a thin neighborhood, and there is more than one natural way to do that.

As a difference. The event is {D=0}\left\{D = 0\right\} with D=Y−XD = Y - X. Its slab {|Y−X|<ε}\left\{\left\lvert Y - X \right\rvert < \varepsilon\right\} is a band of constant vertical width 2ε2\varepsilon around the diagonal (left panel of Figure 3). Ignoring corner pieces of area of order ε2\varepsilon^2, ℙ(X≤a,|Y−X|<ε)≈2εa,ℙ(|Y−X|<ε)≈2ε,\begin{equation} \mathbb{P}\!\left(X \le a,\ \left\lvert Y - X \right\rvert < \varepsilon\right) \approx 2\varepsilon a, \qquad \mathbb{P}\!\left(\left\lvert Y - X \right\rvert < \varepsilon\right) \approx 2\varepsilon, \end{equation} so ℙ(X≤a|D=0)=a\mathbb{P}(X \le a \,|\,D = 0) = a: uniform, as symmetry suggested.

As a ratio. The same event is {R=1}\left\{R = 1\right\} with R=Y/XR = Y/X. Its slab {|Y/X−1|<ε}\left\{\left\lvert Y/X - 1 \right\rvert < \varepsilon\right\} is the wedge |Y−X|<εX\left\lvert Y - X \right\rvert < \varepsilon X, whose vertical width 2εx2\varepsilon x grows with xx (right panel). Now ℙ(X≤a,|Y/X−1|<ε)≈∫0a2εxdx=εa2,ℙ(|Y/X−1|<ε)≈ε,\begin{equation} \mathbb{P}\!\left(X \le a,\ \left\lvert Y/X - 1 \right\rvert < \varepsilon\right) \approx \int_0^a 2\varepsilon x\, dx = \varepsilon a^2, \qquad \mathbb{P}\!\left(\left\lvert Y/X - 1 \right\rvert < \varepsilon\right) \approx \varepsilon, \end{equation} so ℙ(X≤a|R=1)=a2\mathbb{P}(X \le a \,|\,R = 1) = a^2, a density 2a2a on (0,1)(0, 1), piled toward large xx. Conditioned on “the same” event, XX has mean 1/21/2 one way and 2/32/3 the other.

Two neighborhoods of the diagonal, drawn with an exaggerated ε\varepsilon. The band conditions on Y−X=0Y - X = 0; the wedge conditions on Y/X=1Y/X = 1. The wedge is wider at large xx, so it weights large xx more heavily.

Neither computation is wrong. The two neighborhoods shrink to the same diagonal, but the wedge holds more of the square near x=1x = 1 than near x=0x = 0 at every stage, and that weighting survives the limit. So “condition on X=YX = Y” is not yet a question; “condition on Y−X=0Y - X = 0” and “condition on Y/X=1Y/X = 1” are two different questions with two different answers. The Development’s definition was never ambiguous, because it conditions on the value of a named variable XX, and the slab is built from that variable. The practical rule: condition on the quantity that was actually measured. If an instrument reports the difference of two readings, the band is the right limit; if it reports their ratio, the wedge is.

Consolidation

Work these in class.

  1. (Mechanical: read a joint table.) A pair (X,Y)(X, Y) with X,Y∈{1,2}X, Y \in \{1, 2\} has joint PMF p(1,1)=0.1p(1,1) = 0.1, p(1,2)=0.2p(1,2) = 0.2, p(2,1)=0.3p(2,1) = 0.3, p(2,2)=0.4p(2,2) = 0.4. Find the marginal of XX, the conditional ℙ(X=1|Y=2)\mathbb{P}(X = 1 \,|\,Y = 2), and decide whether XX and YY are independent.
    Answer: ℙ(X=1)=0.3\mathbb{P}(X = 1) = 0.3, ℙ(X=2)=0.7\mathbb{P}(X = 2) = 0.7. Column Y=2Y = 2 totals 0.60.6, so ℙ(X=1|Y=2)=0.2/0.6=1/3\mathbb{P}(X = 1 \,|\,Y = 2) = 0.2/0.6 = 1/3. Not independent: ℙ(X=1)ℙ(Y=1)=0.3⋅0.4=0.12≠0.1=p(1,1)\mathbb{P}(X = 1)\mathbb{P}(Y = 1) = 0.3 \cdot 0.4 = 0.12 \ne 0.1 = p(1, 1).

  2. (Conceptual: rectangle is not enough.) Let fXY(x,y)=x+yf_{XY}(x, y) = x + y on the unit square [0,1]2[0, 1]^2 (and 00 elsewhere). Confirm it is a valid density, find fXf_X, and decide independence.
    Answer: ∬[0,1]2(x+y)=1\iint_{[0,1]^2}(x + y) = 1, so it is valid. Integrating out yy, fX(x)=x+12f_X(x) = x + \tfrac{1}{2} on [0,1][0, 1] (and fY(y)=y+12f_Y(y) = y + \tfrac{1}{2} by symmetry). The support is a rectangle, yet fXfY=(x+12)(y+12)≠x+yf_X f_Y = (x + \tfrac12)(y + \tfrac12) \ne x + y, so XX and YY are dependent. Product support is necessary for independence, not sufficient.

  3. (Conceptual: the support test by eye.) (X,Y)(X, Y) is uniform on the unit disk {x2+y2≤1}\left\{x^2 + y^2 \le 1\right\}. Without any integration, are XX and YY independent?
    Answer: No. The disk is not a product set (the range of YY shrinks as |x|→1\left\lvert x \right\rvert \to 1), so by the proposition the variables are dependent.

Synthesis

The course thesis asks what is uncertain, what is observed, and how observation should change belief. A joint distribution answers the first two at once: it is the complete model of two uncertain quantities, and everything else is extracted by two moves. Summing (or integrating) out a variable gives a marginal; renormalizing a slice gives a conditional, which is Session 2’s posterior wearing densities; run in the other direction, prior ×\times likelihood builds a joint. Conditioning on a probability-zero value is legitimate, but only once we say which variable took that value. The support carries real information: a non-rectangular one forces dependence for free, and drawing it before integrating turns most double integrals into bookkeeping. Covariance measures the linear part of the coupling, and its vanishing under independence finally paid Session 4’s debt about the variance of a sum. Next session we ask the natural follow-up: once we have the conditional distribution of XX given YY, what single number should we report as our best guess of XX? That number is the conditional expectation 𝔼[X|Y]\mathbb{E}[X \,|\,Y], and it is the first genuine estimator of the course.

Self-check questions

  1. You have a joint PMF table. Which operation gives a marginal, and which gives a conditional?
    Answer: A marginal is a row or column sum (sum out the other variable); a conditional is a single row or column renormalized to sum to 11 (divide by its marginal total).

  2. The support of (X,Y)(X, Y) is the region {0≤y≤x2,0≤x≤1}\{0 \le y \le x^2,\ 0 \le x \le 1\} under a parabola. Without computing anything, can XX and YY be independent? Why?
    Answer: No. The support is not a rectangle (the upper limit of yy is x2x^2, which depends on xx), so by the product-support proposition they are dependent.

  3. Zero correlation and independence: does cov⁡(X,Y)=0\operatorname{cov}(X, Y) = 0 imply XX and YY are independent?
    Answer: No. Independence implies cov⁡=0\operatorname{cov}= 0, but not conversely; covariance sees only linear coupling, and a nonlinear dependence can leave it zero (the standard counterexample appears later in the course).