4.9.11Probability Theory & Statistics

Independence of random variables — formal definition

1,563 words7 min readdifficulty · medium2 backlinks

1. From events to random variables

WHAT this says: the probability of any joint region of the plane splits into the product of the marginal probabilities.


2. The CDF criterion (derivation from scratch)

Take the special sets A=(,x]A=(-\infty,x] and B=(,y]B=(-\infty,y]. The definition gives P(Xx,Yy)=P(Xx)P(Yy).P(X\le x,\,Y\le y)=P(X\le x)\,P(Y\le y).

The left side is the joint CDF FX,Y(x,y)F_{X,Y}(x,y), and the right side is FX(x)FY(y)F_X(x)F_Y(y). So:

Why is this enough (not just necessary)? Intervals of the form (,x](-\infty,x] generate all Borel sets, so if the product rule holds on these it propagates to every A,BA,B. So this single equation is equivalent to full independence.


3. Discrete and continuous versions


4. A super-useful shortcut: the factorisation theorem


5. Worked examples


6. Consequences (only when independent!)


Recall Feynman: explain to a 12-year-old

Imagine two spinning wheels at a fair. If they're independent, watching the first wheel land on red tells you absolutely nothing about where the second wheel will stop. To find the chance of "first red AND second blue" you just multiply the chance of each one separately. That multiplying-trick is the whole idea — and it works for every pair of outcomes, not just one lucky pair.


Flashcards

Define independence of X,YX,Y in terms of events.
For all Borel A,BA,B: P(XA,YB)=P(XA)P(YB)P(X\in A,Y\in B)=P(X\in A)P(Y\in B).
CDF criterion for independence.
FX,Y(x,y)=FX(x)FY(y)F_{X,Y}(x,y)=F_X(x)F_Y(y) for all x,yx,y.
Continuous-case criterion.
fX,Y(x,y)=fX(x)fY(y)f_{X,Y}(x,y)=f_X(x)f_Y(y) almost everywhere.
Discrete-case criterion.
pX,Y(x,y)=pX(x)pY(y)p_{X,Y}(x,y)=p_X(x)p_Y(y) for all x,yx,y.
Why is the CDF test sufficient, not just necessary?
Intervals (,x](-\infty,x] generate all Borel sets, so the product rule propagates to every A,BA,B.
Factorisation theorem condition.
Joint =g(x)h(y)=g(x)h(y) on a RECTANGULAR support ⇒ independent (g,h need not be marginals).
Does f=2f=2 on 0xy10\le x\le y\le1 give independence?
No — support couples x,yx,y; marginals' product 2\ne 2.
Independence implies what about expectation?
E[XY]=E[X]E[Y]\mathbb E[XY]=\mathbb E[X]\mathbb E[Y], so Cov=0\operatorname{Cov}=0.
Does Cov=0\operatorname{Cov}=0 imply independence?
No (e.g. Y=X2Y=X^2, XU(1,1)X\sim U(-1,1)); only for jointly Gaussian.
Two extra conditions to confirm independence from a formula.
Density factors AND support is a product (rectangle) set.

Connections

  • Joint distribution and marginals
  • Conditional distributions and conditional independence
  • Covariance and correlation
  • Jointly Gaussian random variables
  • Sums of independent random variables — convolution
  • Independence of events

Concept Map

extend to variables

holds for all Borel sets A,B

special sets minus inf to x

same slogan

intervals generate all Borel sets

difference at jumps

differentiate

leads to

normalising constant cancels

example 4xy

Event independence P of A and B = P A P B

RV independence general def

Joint prob factors into marginals

CDF factorisation

Joint object = product of marginals

Condition is sufficient not just necessary

Discrete PMF form

Continuous PDF form

Factorisation theorem g x times h y

X and Y independent

Spot independence instantly

Hinglish (regional understanding)

Intuition Hinglish mein samjho

Dekho, do random variables XX aur YY independent tab hote hain jab ek ka value jaan lene se doosre ke baare mein kuchh bhi naya pata nahi chalta. Formal baat yeh hai: har region A,BA,B ke liye P(XA,YB)=P(XA)P(YB)P(X\in A, Y\in B)=P(X\in A)\,P(Y\in B) — yaani joint probability marginals ka product ban jaati hai. Isi ko CDF mein likho toh FX,Y=FXFYF_{X,Y}=F_X\cdot F_Y, density mein fX,Y=fXfYf_{X,Y}=f_X\cdot f_Y, aur discrete mein pX,Y=pXpYp_{X,Y}=p_X\cdot p_Y. Teeno ek hi cheez hain — bas language alag hai.

Shortcut yeh hai ki agar joint density ko g(x)h(y)g(x)\,h(y) ke roop mein likh paao aur support ek rectangle ho, toh seedhe bol do ki independent hai. Lekin dhyan rakho: sirf formula factor ho jaana kaafi nahi. Jaise 0xy10\le x\le y\le 1 par f=2f=2 — yahan formula simple hai par support triangle hai, xx aur yy ek doosre ko bandh ke rakhte hain, isliye independent nahi hai. Support ka box hona zaroori condition hai.

Sabse common galti: log sochte hain "Cov=0\operatorname{Cov}=0 matlab independent". Ulta sach hai — independent ho toh covariance 0 hoti hai, par covariance 0 hone ka matlab independent nahi (jaise Y=X2Y=X^2, XU(1,1)X\sim U(-1,1), covariance 0 par poori tarah dependent). Yeh fark exam mein bahut important hai.

Yeh topic isliye important hai kyunki independence hi woh assumption hai jo bade-bade joint problems ko aasan product problems mein todti hai — expectation ka product, convolution se sums, sab isi par tika hai.

Go deeper — visual, from zero

Test yourself — Probability Theory & Statistics

Connections