4.9.10 · D4Probability Theory & Statistics

Exercises — Joint distributions — joint PMF - PDF, marginal, conditional

2,523 words11 min readBack to topic

Everything here rests on the parent note Joint Distributions. Keep these three sentences from it in your pocket:

  • Marginal = collapse (sum/integrate out) the other variable.
  • Conditional = slice at a value, then divide by the marginal to re-normalize.
  • Independent the joint factors into marginals.

Level 1 — Recognition

Exercise 1.1

Recall Solution 1.1

(a) What we check: both non-negativity and total (the two defining conditions). Every entry is . The sum: So it is a valid joint PMF.

(b) This is pure reading — the cell in row , column : .

(c) Why add two cells: the event is the union of the disjoint cells and . Disjoint add:

Exercise 1.2

Recall Solution 1.2

Why no integral is needed: a constant density over a region means "probability spread evenly." Total probability (height ) (area of region). The unit square has area , so Sanity picture: a flat sheet of height sitting on a base has volume — and volume under the density is total probability.


Level 2 — Application

Exercise 2.1

Recall Solution 2.1

Recipe: — sum along a row. — sum down a column.

Rows (marginal of ): Columns (marginal of ): Check: sums to and sums to — both consistent with the total probability being . We summarize in the margins:

So and . (Writing the sums in the margins is literally where the name "marginal" comes from.)

Exercise 2.2

Recall Solution 2.2

Recipe: freeze the column , divide each entry by that column's total . Why divide: the raw column sums to , not . Dividing rescales the slice into a legitimate distribution. Check: .

Exercise 2.3

Recall Solution 2.3

First confirm it's valid: . Recipe: integrate out over its full range to (a fixed square, so bounds are constant): and for or (outside the support the joint is , so the integral vanishes). Check it integrates to 1: .


Level 3 — Analysis

Exercise 3.1

Sketch the region before integrating. The figure below shows, on the plane, the triangle bounded by the vertical line (left edge), the horizontal line (top edge), and the diagonal line (lower-right edge). The shaded interior is the support ; the orange vertical segment is one slice at a fixed , where sweeps from up to .

Figure — Joint distributions — joint PMF - PDF, marginal, conditional
Recall Solution 3.1

(a) Why: total probability must be . On , for a fixed the variable runs from up to (the orange slice in the figure):

(b) Marginal of — collapse ; for fixed , : and outside . Marginal of — collapse ; for fixed , (a horizontal slice of the triangle): and outside . Checks: and .

(c) Conditional of given — divide joint by , keep the support : and for or . Why the support shifts: once is fixed, can only live where the joint is positive, i.e. .

Exercise 3.2

Recall Solution 3.2

Test: independence for all . but the joint is . These are not equal, so are dependent. Deeper reason (this is the real giveaway): the support itself is the triangle — a constraint linking the two variables. Whenever the support of a joint density is not a rectangle (product of intervals), the variables cannot be independent, no matter how the formula looks. Knowing forces ; that is dependence by definition. See Independence of Random Variables.


Level 4 — Synthesis

Exercise 4.1

Recall Solution 4.1

(a) Marginals (support ; for fixed , ; for fixed , ): and both marginals are outside .

(b) Expectations (use each marginal — see Expectation and Variance):

(c) Cross-moment (integrate against the joint, over the triangle): Then, via Covariance and Correlation,

(d) : and tend to move together. That matches the geometry — since always, a large forces a large , giving positive association.

Exercise 4.2

Recall Solution 4.2

Tool: the chain rule .

  • for .
  • Given , is uniform on , so for .

Multiply: and elsewhere. Support: the triangle (same triangle as before). Recover — collapse ; for fixed , ranges to : and outside . Check it integrates to 1: . This is exactly the Law of Total Probability carried out in the continuous world.


Level 5 — Mastery

Exercise 5.1

The disk support is the whole point. The figure below shows, on the plane, the circle (the violet boundary) with its interior shaded — that interior is the support. The two axes cross at the centre , which is the mean of both variables. The magenta vertical segment at is the chord to which is confined once is fixed: can only range over .

Figure — Joint distributions — joint PMF - PDF, marginal, conditional
Recall Solution 5.1

(a) By symmetry (the density is symmetric about both axes). For : For each fixed , runs symmetrically over , and . So the whole integral is :

(b) Independence test via support: the support is a disk, not a rectangle. Concretely, on (length of the vertical chord over ) and elsewhere, and likewise on . Their product is not equal to the joint on the disk (and is nonzero at, e.g., which lies outside the disk where the joint is ). Hence dependent.

(c) The resolution: covariance only detects linear association. Here the dependence is purely geometric/nonlinear: knowing squeezes into , so constrains the range of — but symmetrically, so no linear tilt exists. Zero covariance means "no linear trend," never "independent." Only for the Bivariate Normal Distribution does zero covariance actually force independence. See also Independence of Random Variables.

Exercise 5.2

Recall Solution 5.2

This is Bayes' Theorem in continuous–discrete mixed form. The conditional PMF of the data given is .

Step 1 — joint (chain rule): for (and elsewhere).

Step 2 — marginal of the data (Law of Total Probability, integrate out ):

Step 3 — posterior (Bayes = joint ÷ marginal): and outside . Check: — a valid density.

Step 4 — posterior mean: Interpretation: seeing a defect pushes our belief about from prior mean up to — exactly what evidence of a defect should do.



Connections