Independence and product measures
The lesson "Probability spaces and Kolmogorov's axioms" turned a probability into a measure of total mass 1 and showed that the binary digits of one uniform number behave like coin tosses, and "Expectation, variance and inequalities" turned averages into integrals and measured spread by the variance. Both looked at one random quantity at a time, but real questions involve several: two dice, the horizontal and vertical position of a dart, ten coins. This lesson makes the idea that one quantity carries no information about another precise under the name independence, first for events, then for σ-algebras and random variables. It shows that independence is the same thing as area being length times length, which leads to product measures and to Fubini's theorem for integrals over a product. From these come the rule , the covariance, the variance of a sum, and finally the proof, promised earlier, that the binary digits of a uniform number are independent fair coins.
Conditional probability in brief
Roll two fair dice and suppose you are told that the first shows 3. The 36 equally likely outcomes shrink to the six with first die 3, and the sum is 8 exactly when the second die shows 5. So the probability of a sum of 8 has become , while before the information it was . Conditioning is this shrinking: keep only the outcomes of the event known to have happened, and rescale so that carries total probability 1. For an event with , the conditional probability of given is
In words: of the probability that carries, the fraction that lies inside . For the dice, is "the sum is 8" and is "the first die shows 3". The intersection is the single outcome , so , and ; the quotient is . The division by is the rescaling; without it the restricted probabilities would add up to . For a fixed the map obeys the axioms of "Probability spaces and Kolmogorov's axioms": it is a probability measure again, the old one restricted to and rescaled. This lesson needs conditional probability only as far as independence requires it; a later lesson of this track treats conditioning in full.
Independent events
Two events are independent when learning that one of them happened does not change the probability of the other: . Substitute the definition of conditional probability and multiply by , and the condition becomes the product rule
The product rule is taken as the definition, because it needs no assumption and treats the two events symmetrically. It says that the share of the whole space taken by "both" equals the share of times the share of , exactly as the area of a rectangle is width times height.
Independence does not require two separate physical mechanisms. Take one fair die, "even" and . Then , and has probability . The events are independent, because the outcomes in are half even, the same fraction as in the whole die. Replace by and the property is gone: , but . Independence is a numerical relation between proportions inside the probability space. It usually arises because the events concern different dice or coins, but the definition only looks at the numbers.
An event of probability 0 or 1 is independent of every event, since both sides of the product rule are then 0 or . Independence also survives taking complements. If and are independent, so are and :
The first step is the rule from "Measuring the size of sets", the second is the product rule for and , and the third is . Applying the same step to and , and then to and , shows that all four pairs made of , and , satisfy the product rule.
Disjoint is not the same as independent; it is nearly the opposite. If and are disjoint and both have positive probability, then while . Learning that happened rules out completely, which is the strongest possible dependence.
Pairwise and mutual independence
With three or more events, independence of every pair is not enough. Toss two fair coins, so that the four outcomes HH, HT, TH, TT have probability each, and let
- = the first coin is heads ,
- = the second coin is heads ,
- = both coins show the same side .
Each of the three events has probability . Each pairwise intersection is the single outcome , with probability , so , then and are all independent pairs. But the triple intersection also has probability , while the product of the three probabilities is . The reason: if and both happened, both coins are heads and is certain, although neither nor alone says anything about .
Events are therefore called mutually independent if the product rule holds for every sub-collection:
For three events this means four equations, three for the pairs and one for the triple; for events it means . An infinite family is mutually independent when every finite sub-collection is. When a sequence of coin tosses is called independent, this is what is meant, and from here on "independent" without further qualification means mutually independent. Events that are independent only in pairs are called pairwise independent.
Independent σ-algebras and random variables
Often one wants to compare everything that can be asked about one quantity with everything that can be asked about another: the first die against the second, the horizontal position of a dart against its vertical position. Recall from "σ-algebras and Borel sets" that a σ-algebra is a collection of questions that can be answered, closed under complements and countable unions. Two σ-algebras and inside the event collection are independent if every question of one is independent of every question of the other:
Independence of two events and is the special case of the smallest σ-algebras and : the pairs involving , , and were settled in the previous section, and and have probabilities 0 and 1.
A random variable comes with the σ-algebra of "Measurable functions", made of all events for Borel sets , the questions that can be answered by looking at alone. Random variables and are independent if and are independent, that is, if
Checking every pair of Borel sets looks impossible, but half-lines are enough. The variables and are independent exactly when
where and are the distribution functions of "Random variables and their distributions". The reason is the argument that made length unique in "Lebesgue measure and null sets": half-lines are closed under intersection and generate the Borel sets, and the sets for which a product rule holds are closed under complements and countable disjoint unions, so a product rule that holds on half-lines holds on all Borel sets. This is an idea of the proof, applied once to each variable, not a full proof. For the two dice, , and . For variables that take countably many values, the condition reads for all values .
Independence passes through functions. If and are independent and , are measurable functions, then and are independent. The reason is that an event about is an event about : , and the preimage is a Borel set because is measurable. So , and a smaller σ-algebra of an independent pair stays independent. The parity of the first die and the square of the second die are independent for this reason. Finally, random variables are mutually independent if for all Borel sets, which is the same as mutual independence of the σ-algebras .
Product measures
The area of a rectangle in the unit square is : length times length. "Lebesgue measure and null sets" built area by covering sets with rectangles. The same recipe works for any two measure spaces. Take and and form the set of pairs . A rectangle is a set with and . The product σ-algebra is the σ-algebra generated by the rectangles, in the sense of "σ-algebras and Borel sets"; for with the Borel sets it is the Borel σ-algebra of the plane. The product measure is the measure on it that gives every rectangle its natural size,
Such a measure exists, by covering a set with rectangles and taking the smallest total, and it is unique for finite measures and for measures such as length on , which are countable sums of finite pieces. The uniqueness argument is the one used for length: the intersection of two rectangles, , is again a rectangle, so a measure is pinned down by its values on rectangles. Two examples. Counting measure on the six faces of a die, taken twice, gives counting measure on the 36 pairs, and with the uniform probability on each face every pair has probability . Length taken twice on gives area on the unit square.
Now the link to probability. Two random variables and on the same probability space have a joint distribution, the measure on the plane , which is the image measure of in the sense of "Measurable functions". On a rectangle it reads , and the definition of independence says that this equals . Since rectangles determine a measure, the two statements are the same:
In words, the joint distribution of independent variables is the product of their separate distributions, and nothing else can be said about a pair unless the pair is told to be independent. If and have densities and , the joint distribution of an independent pair has density , because is the integral of over the quadrant. Two independent uniform numbers on form exactly a point chosen by area on the unit square. The dart of "Probability spaces and Kolmogorov's axioms", thrown uniformly at the square, therefore has independent horizontal and vertical coordinates.
The joint distribution holds more information than the two separate distributions. The figure shows a point in the unit square in which both coordinates are uniform on , whatever the dependence. The event is the vertical strip of width , the event is the horizontal strip of height , and is the rectangle in the lower-left corner. The shading is the joint density , so that sets how strongly the coordinates are tied together. Start at : the shading is flat, the pair is two independent uniforms, and the rectangle with and holds . Move to : probability moves toward the lower-left and upper-right corners, the same rectangle now holds , and rises from to , so learning that is small makes small more likely. At the rectangle holds and . Throughout, and stay at and : the dependence is entirely in how the coordinates are tied together. (The family is known as Farlie–Gumbel–Morgenstern; the name is not needed.)
- ℙ(A)
- 0.6000
- ℙ(B)
- 0.5000
- ℙ(A ∩ B)
- 0.3000
- ℙ(A)ℙ(B)
- 0.3000
- ℙ(A | B)
- 0.6000
Slide a and b to resize the rectangle A × B and θ to tilt the density. At θ = 0 the shading is flat and the rectangle holds exactly ℙ(A)ℙ(B); for θ > 0 the lower-left and upper-right corners carry more mass, for θ < 0 the other two.
Fubini and Tonelli
A product measure lets you integrate over a product, and the way to do it is to slice. To find the area of a region in the square, add up the lengths of its vertical slices. In general, to integrate a function over the product, hold fixed, integrate over , and integrate the result over . For on the unit square,
Doing the -integral first gives as well. Two theorems say when the order does not matter. Tonelli's theorem: for a measurable on the product, both iterated integrals exist, possibly infinite, and both equal . Fubini's theorem: the same holds for every integrable , that is, when . The proof builds up in the order of "The Lebesgue integral": for the indicator of a rectangle the statement is the product rule; the uniqueness argument extends it to every set of the product σ-algebra; linearity gives simple functions; monotone convergence, from "Convergence theorems", gives non-negative functions; and gives integrable ones. This is an outline, not a proof.
Tonelli's theorem also explains a formula from earlier. Apply it to the indicator of the region under the graph, on the product of the space and . Integrating over first gives , integrating over first gives , so , the layer-cake formula of "The Lebesgue integral". With in place of it is the tail formula of "Expectation, variance and inequalities".
Now the consequence for probability. Let and be independent and integrable. The expectation of is the integral of the function against the joint distribution, which is the product measure . Tonelli applied to gives , so is integrable and Fubini applies:
For the two dice , which a sum over the 36 pairs confirms. Without independence the rule fails: take , and is larger than by the variance. The gap is exactly what the next section measures.
Integrability cannot be dropped from Fubini's theorem. The function on the unit square has the two iterated integrals and in the two orders; it is not integrable, since is infinite near the origin.
Covariance and correlation
For independent variables . The size of the gap measures how far a pair is from behaving like that. For and with finite variance, the covariance is
The two forms agree after expanding the product and using linearity of expectation. The second form shows what covariance records: it is positive when above-average values of tend to come with above-average values of , and negative when they come with below-average ones. Taking gives . Independence gives by the product rule for expectations.
Covariance is exactly what is missing in the variance of a sum. Write and ; the centred sum is . Then
The first line squares the sum and uses linearity; the second recognises the three expectations. For independent variables, or just uncorrelated ones, the covariance term vanishes and the variances add. The same holds for any number of pairwise uncorrelated variables.
Ten dice show how much this matters. One die has variance and standard deviation . The sum of ten independent dice has variance and standard deviation . If the ten dice were instead the same die copied ten times, the sum would be with standard deviation . Independent fluctuations partly cancel: a high value of one die is likely to meet a low value of another, so the spread of the sum grows like instead of . The average of the ten dice has standard deviation , a little under a third of the spread of a single die.
The result of the third and fourth steps looks surprising next to the first section, where learning the first die changed the probability of a sum of 8. A sum of 7 is special: whatever the first die shows, exactly one value of the second makes the sum 7, so the first die tells you nothing about whether the sum is 7. The sum of 8 is impossible after a first die of 1, and that is a piece of information.
Covariance depends on the units of measurement. The correlation removes them by dividing by the two standard deviations:
Correlation always lies in . This is the Cauchy–Schwarz inequality, , which is stated here without proof. It equals or exactly when is, almost surely, an increasing or a decreasing linear function of , and it is when the variables are uncorrelated. As an example let and be two independent dice and their sum. Then , because the second die is independent of the first, and , which is : the first die supplies half of the variance of the sum, and .
Uncorrelated variables that are not independent
Independence implies zero covariance, but the converse is false. Let be uniform on , each value with probability , and let . Then , and since for these values, , so
Yet is a function of , so the pair is about as dependent as a pair can be. The product rule fails at once: happens with probability and with probability , but forces , so , while .
The explanation is that covariance only detects a linear tendency: whether larger goes with larger on average. Here falls as rises from to and rises again from to , and the two trends cancel exactly. Independence is a statement about all pairs of events at once, correlation is one number computed from them, and zero correlation never proves independence.
Independent coin tosses inside one uniform number
"Probability spaces and Kolmogorov's axioms" modelled infinitely many coin tosses by the binary digits of a number drawn uniformly from , written here , and treated them as separate fair coins without proving that they are independent. The tools are now in place. The first digit is exactly on , so . The second digit is on , again of total length . In general on intervals of length , so every digit is a fair coin. Two digits together: has length .
The general case is the same computation. Fix the first digits to prescribed values. They determine one dyadic interval , where is the integer with those binary digits, of length , which is the product of factors . Digits at arbitrary positions are no harder. Let be the last position. The unconstrained digits among the first can take any of values, so the event is a union of dyadic intervals of length , with total length , which is again the product of factors . The product rule therefore holds for every finite set of digits: the digits are mutually independent, and each is a fair coin.
One uniform number therefore holds an infinite sequence of independent fair coins. It holds much more. Deal the digits of into two sequences, the odd positions and the even positions, and read each as a binary number: and . The first digits of are independent fair coins, so lands in each dyadic interval of length with probability , and since dyadic intervals are closed under intersection and generate the Borel sets, is uniform on ; likewise . The two sequences are built from disjoint groups of independent coins, and functions of disjoint groups of independent variables are independent, by the same argument as for functions of two variables. So and are independent uniforms, and by the previous sections is a point drawn by area on the unit square. The map carries length on onto area on the square. For the first eight digits give and the full expansions give .
Dealing the digits into countably many sequences, by the rows of a table, gives a whole sequence of independent uniform numbers from one. Applying the quantile function of "Random variables and their distributions" to each gives independent variables of any prescribed distributions. The interval with length is thus a sample space large enough for any sequence of independent random variables. That infinite products of probability measures exist in general is Kolmogorov's extension theorem; the construction above is a concrete instance. The next lesson, "Modes of convergence and the law of large numbers", uses independent tosses to show how frequencies settle down.
Summary
- Events are independent when , equivalently when conditioning on one leaves the other unchanged; for several events the product rule must hold for every sub-collection, since independence in pairs is not enough.
- σ-algebras are independent when all their events are; random variables are independent when and are, which can be checked on half-lines, and functions of independent variables stay independent.
- The product measure is the unique measure that gives every rectangle the product of the sides; area is length length, and the joint distribution of independent variables is the product of their distributions.
- Fubini and Tonelli let you integrate over a product in either order, and give for independent variables.
- , so variances of independent variables add; uncorrelated does not imply independent.
- The binary digits of a uniform number are independent fair coins, and dealing them into two sequences produces two independent uniform numbers.