4.9.11 · D4Probability Theory & Statistics

Exercises — Independence of random variables — formal definition

1,828 words8 min readBack to topic

Recall the three equivalent tests we will lean on (from the parent note):


Level 1 — Recognition

Exercise 1.1

The joint density is on the square (and elsewhere). Are and independent? If so, name the marginals.

Recall Solution

Step 1 — check the support. WHY: independence needs a product (rectangular) support. Here the support is , a genuine rectangle. ✅ Step 2 — try to split the formula. , or cleaner . It is a function of times a function of . ✅ Step 3 — conclude and read off marginals. By the factorisation shortcut, . Normalise each piece to a density: Check: . ✅ Independent, with , .

Exercise 1.2

A discrete pair has PMF table

0 1
0 0.1 0.2
1 0.3 0.4

Independent or not?

Recall Solution

Step 1 — marginals. , ; , . Step 2 — test cell . , but the table says . . ✗ Conclusion: one failing cell is enough — NOT independent.


Level 2 — Application

Exercise 2.1

for . Find , then decide independence and give the marginals.

Recall Solution

Step 1 — normalise. WHY: a density must integrate to 1. Step 2 — factor. on the rectangle . ✅ Independent. Step 3 — marginals. (Exp rate 2), (Exp rate 3). Product equals the joint. ✅

Exercise 2.2

and are independent with . Compute and .

Recall Solution

Step 1 — product of expectations. WHY: independence lets . Step 2 — variance of a sum. In general . Independence ⇒ . (See Covariance and correlation for the covariance term.)


Level 3 — Analysis

Exercise 3.1 (support coupling)

on the triangle (zero elsewhere). The formula looks separable. Are and independent?

Figure — Independence of random variables — formal definition
Recall Solution

Step 1 — look at the support (figure). WHY first: the shortcut theorem requires a rectangular support. The shaded region is a triangle (), not a box. Already suspicious: knowing forces — information leaks. Step 2 — compute marginals honestly. For fixed , ranges over : For fixed , ranges over : Step 3 — compare. , which is not equal to . ✗ Conclusion: NOT independent. The separable-looking formula was a decoy; the triangular support did the coupling.

Exercise 3.2 (uncorrelated but dependent)

Let be uniform on (four equally likely angles). Set , . Show but are not independent.

Recall Solution

Step 1 — enumerate. The four points are , each with probability . Step 2 — means. ; . Step 3 — . At each of the four points, one coordinate is , so always. Thus and . Uncorrelated. ✅ Step 4 — dependence. and , so if independent would be . But the actual value is (the point ). . ✗ Conclusion: zero covariance, yet dependent — covariance only detects linear structure.


Level 4 — Synthesis

Exercise 4.1

independent, each Uniform on . Let . Find the density of the sum, and evaluate and .

Figure — Independence of random variables — formal definition
Recall Solution

Step 1 — why convolution. For independent , the density of is the convolution (see Sums of independent random variables — convolution): Independence is exactly what lets us multiply inside the integral. Step 2 — plug in. on , else . The integrand is only when and , i.e. . Step 3 — case split (all cases!).

  • or : no overlap, .
  • : , length , so .
  • : , length , so . This is the triangular density peaking at (figure). Step 4 — evaluate. ; (the peak).

Exercise 4.2

independent Poisson with means and . Show is Poisson and give and .

Recall Solution

Step 1 — discrete convolution. using independence. Step 2 — the classic identity. Independent Poissons add: . (Proof: the sum by the binomial theorem.) Step 3 — read off. . .


Level 5 — Mastery

Exercise 5.1 (prove a criterion)

Prove: if , then for any (measurable, bounded) functions , the transformed variables and are also independent.

Recall Solution

Goal. Show for all Borel . Step 1 — pull back the sets. WHY: convert questions about into questions about . Let and . These are Borel sets because are measurable. Then Step 2 — apply the definition of . Independence holds for every pair of Borel sets, in particular for : Step 3 — translate back. Since were arbitrary, . Insight: independence is preserved under any per-variable transformation — you can't create dependence by relabelling each variable separately.

Exercise 5.2 (build a counterexample)

Construct a joint PDF on (rectangular support!) that is not a product , hence not independent, but whose marginals are both Uniform. Verify the marginals.

Recall Solution

Step 1 — the idea. WHY not just any function: we need it to integrate to 1, stay non-negative, have uniform marginals, yet couple and . A perturbation trick works: with (any keeps it , since ). Step 2 — non-negativity. With : minimum value is . ✅ Step 3 — marginal of . Integrate out ; note : So . By symmetry , . ✅ Step 4 — dependence. If independent, we'd need everywhere. But at : . ✗ Conclusion: uniform marginals, rectangular support, yet dependent — because the joint refuses to factor even though each margin looks innocent.


Recall Feynman recap

Every problem above is one question wearing different clothes: does the joint really equal the product of the marginals, at every point, over a rectangular region? If yes — independent, and life is easy (multiply, add variances, convolve sums). If the support is bent (a triangle, a circle) or the formula won't split, they gossip.


Connections