4.9.11 · D3Probability Theory & Statistics

Worked examples — Independence of random variables — formal definition

3,175 words14 min readBack to topic

Before anything, let's state the tests carefully — including the events version we'll need later — so nothing on this page is invoked before it's defined.

Two plain-word reminders so nothing here uses an undefined symbol:

  • The marginal of is "the distribution of alone, forgetting ." For a table you get it by summing a whole row; for a density you get it by integrating out the other variable.
  • The support is just "the set of points where the probability is not zero." Picture it as a shaded shape in the plane.

The scenario matrix

Every independence question falls into one of these cells. The examples below are labelled by cell so you can see the whole grid is covered.

Cell Case class What makes it tricky Example
A Discrete table, genuinely independent must check all cells, not one Ex 1
B Discrete table, dependent one bad cell ruins it Ex 2
C Continuous, separable density on a rectangle density factors → independent Ex 3
D Continuous, support couples the variables density "looks" separable but isn't Ex 4
E Degenerate / constant variable takes one value with probability 1 Ex 5
F Zero-covariance trap uncorrelated but NOT independent Ex 6
G Limiting behaviour a parameter → boundary flips the answer Ex 7
H Real-world word problem translate words → factorise Ex 8
I Exam twist function of an independent pair Ex 9

We build one figure for the geometric cases (C, D) so you can see why the support's shape matters. Read the figure as: two shaded regions in the plane. Left = a full unit square shaded blue; a vertical red line at shows that the allowed still runs over the entire . Right = an orange triangle above the dashed line ; a red line at shows the allowed has now been cut down to . Axes are labelled (horizontal) and (vertical), both from to .

Figure — Independence of random variables — formal definition

The left panel is a rectangle support: for every fixed the allowed range of is the same full strip — knowing tells you nothing about which are possible. The right panel is a triangle (): fixing at the red line chops off everything below it, so knowing shrinks the possible . That shrinking is information transfer → dependence.


Cell A — Discrete, independent

See Joint distribution and marginals for why row/column sums are the marginals.


Cell B — Discrete, dependent


Cell C — Continuous, separable on a rectangle


Cell D — Continuous, the support betrays you


Cell E — Degenerate / constant variable


Cell F — Zero covariance but dependent


Cell G — Limiting behaviour flips the answer


Cell H — Real-world word problem


Cell I — Exam twist: function of an independent pair


Recall Which cell does each phrase trigger?

"Support is a triangle" ::: Cell D — dependent; the support couples them and the factorisation shortcut is off-limits, so run the honest test. "Zero covariance" ::: Cell F — could still be dependent; covariance only sees linear ties. "One value with probability 1" ::: Cell E — constant is independent of everything (use the events form). "Sum of independent variables" ::: Cell I — use convolution, and the sum is not independent of its parts.


Connections