4.9.11 · D1Probability Theory & Statistics

Foundations — Independence of random variables — formal definition

2,154 words10 min readBack to topic

This page assumes you have seen none of the notation in the parent note. We build every symbol from the ground up, in an order where each one leans only on the ones before it.


0. The starting picture: outcomes and probability

Imagine a fair experiment — a spinning wheel, a rolled die, a measured height. Every time you run it, one thing happens. That "one thing that happens" is called an outcome.

Why the topic needs it: independence is a statement about probabilities, so we need the object that hands out those numbers before anything else.


1. Events and the symbol

The symbol means "and" — the overlap of two events.

Figure — Independence of random variables — formal definition
(Figure s01) — Two event-circles (lavender) and (coral). The picture makes the symbol concrete: the shaded lens where the circles overlap is , the region measures when we ask "both happen".

Why the topic needs it: this multiply-rule for events is the seed. The whole idea of independent variables is: make this rule hold for every question you could ask. See Independence of events.


2. Random variable — from outcomes to numbers

Figure — Independence of random variables — formal definition
(Figure s02) — The three-box flow outcome → X → number shows literally what the symbol does: a die-outcome enters the butter-coloured machine and a bare number leaves. This is why below is an event — it names all outcomes whose exiting number lands in .

The notation (with now a set of numbers, like the interval ) is itself an event: "the number produces lands inside ."

Why the topic needs it: independence of variables is defined by demanding and be independent events for all number-sets .


3. Distribution, CDF, PMF, PDF — the languages of one variable

A random variable's full personality is its distribution: how its output-numbers spread out. There are three languages for it.

Figure — Independence of random variables — formal definition
(Figure s03) — The same variable in three languages side by side: the lavender CDF climbing , the coral PMF as discrete spikes, and the mint PDF where a shaded slice of area is a probability. Reading all three off one picture is what lets you recognise the parent's CDF-, PMF- and PDF-factorisation rules as one idea.

Why the topic needs it: the parent's three criteria (CDF, PMF, PDF factorisation) are the same statement written in these three languages. You must recognise all three.


4. Two variables at once: joint and marginal

Now the star of the show. With two machines and running on the same experiment, one outcome produces a pair — a point in the plane.

Figure — Independence of random variables — formal definition
(Figure s04) — The lavender cloud is the joint pair . Squashing every point straight down onto the -axis (coral) forgets and leaves the marginal of ; squashing left onto the -axis (mint) leaves the marginal of . The two shadows are exactly what the marginal integrals/sums below compute.


5. The symbols , product, and "support"

Figure — Independence of random variables — formal definition
(Figure s05) — Left, a mint rectangle support: every horizontal slice offers the same range of , so fixing tells you nothing new about . Right, a coral triangle support: picking a large forbids small . This picture is why "support must be a box" is a genuine extra condition, not decoration.

Why the topic needs it: the parent's "consequences" section shows independence forces , and warns that the reverse fails. You need these before reading it. See Covariance and correlation.


6. How it all feeds the topic

Sample space Omega and outcomes

Probability P assigns numbers

Events A and B and the AND symbol

Event independence P of both = product

Random variable X turns outcomes into numbers

Distribution as CDF PMF PDF

Independence of variables

Joint and marginal for a pair

Support shape must be a box

Expectation and covariance

Consequences uncorrelated but not conversely


Equipment checklist

What is an outcome, and what is the sample space ?
An outcome is one single result of the experiment; is the set of all possible outcomes.
What does mean, in a picture?
The overlap ("both happen") — the lens where two event-circles cross.
State the event-independence rule.
: chance of both is the product of chances.
What is a random variable?
A machine that reads an outcome and returns a number.
Why is an event?
It is the yes/no question "did 's number land in the set ?", so all event-rules apply.
Define the CDF .
, the chance the output is at most ; it climbs from 0 to 1.
PMF vs PDF — which uses spikes, which uses area?
PMF is spike-heights (discrete); PDF is density where probability is area under the curve (continuous).
How do you get a marginal from a joint, discretely and continuously?
Discrete: ; continuous: (collapse the other variable).
State the independence criterion in CDF, PMF and PDF languages.
; ; — joint equals product of marginals.
What does mean and what surface-picture goes with it?
independent; the joint object equals the product of the two marginal shadows.
What is the support, for discrete and for continuous variables?
The set of where the pair can land: where (discrete spikes) or (continuous density).
Why must the support be a rectangle for the factorisation test?
Otherwise allowed values of one variable depend on the other (info leaks), breaking independence even if the formula splits.
Give the covariance formula and what it detects.
; it detects linear co-movement (0 = no linear tendency).

Connections