TL;DR
Two events are independent when knowing that one happened leaves the chance of the other unchanged. Two random variables are independent when knowing the value of one tells you nothing about the value of the other. Independence is the assumption that lets us multiply probabilities of separate things and add up their variances.
Where you'll see it: in the assumption that repeated coin flips, repeated measurements or separate noise sources do not influence each other, and in the "iid" in almost every statistical model you will meet.
Intuition
Two coins that ignore each other
Flip a coin and then flip it again. The second flip does not care what the first one showed. Knowing the first came up heads does not make the second more or less likely to be heads. That lack of influence is independence.
Now compare two events in one draw from a deck: "the card is a heart" and "the card is red". Knowing the card is red changes the chance it is a heart (from 1/4 to 1/2). These two are not independent. Independence is about whether information moves from one to the other, not about whether the events can happen together.
Why does it matter? Multiplying probabilities is a shortcut that only works when the parts do not interfere. If you want the chance of ten heads in a row, you multiply ten copies of one half. That multiplication is only correct because each flip ignores the others.
flowchart LR
A[Learn B happened] --> B{Does P of A change?}
B -- No --> C[A and B are independent]
B -- Yes --> D[A and B are dependent]
C --> E[Multiply: P of A and B equals P of A times P of B]
The math
Independent events
Events and are independent when
Here is the event that both and happen, and is the probability of an event. When , this is the same as saying , which is the statement that [[conditional-probability|conditioning on ]] changes nothing. The product form is the one to use in calculations, because it does not need to be positive.
Independent random variables
Random variables and are independent when every event about is independent of every event about :
For continuous variables with a joint density , this is equivalent to the density factorising:
The factorised form is the one you check in practice. If the joint density cannot be written as a product of a function of and a function of , the variables are dependent.
Consequences for means and variances
Independence buys two results that you use constantly. For independent and :
The second one is why noise adds up the way it does. Variances add, not standard deviations, so two independent noise sources of standard deviation 3 and 4 combine to a standard deviation of , not 7. The first one is the statement that the covariance of independent variables is zero.
Mutual independence and iid
Three events can be pairwise independent without being mutually independent. Mutual independence needs the product rule for every subset, including the full set .
A sequence is iid (independent and identically distributed) when the variables are mutually independent and all share one distribution. Almost every standard model begins with "assume the samples are iid", because it turns a joint distribution over things into a product of simple ones.
Worked examples
Roll two fair dice. Let be "the first die shows 3" and be "the sum is 8".
- , because one face out of six is 3.
- , because are the five ways to sum to 8.
- is the single outcome , so .
- Compare with .
Interpretation: the numbers differ, so and are dependent. Knowing the first die is 3 raises the chance of a sum of 8 from to . Information flowed from one die to the sum.
Flip a fair coin ten times. Each flip is independent and has .
- The chance the first three flips are all heads is . The product rule applies because the flips are independent.
- The chance all ten are heads is .
- Whatever the first flip shows, the next nine flips keep the same probabilities. That is why the product in step 2 is valid.
Interpretation: a run of ten heads is rare, about one in a thousand, but every specific sequence of ten flips is exactly as rare. And after nine heads, the tenth flip is still 50-50, because independence means the coin has no memory.
A single fair die has mean and variance . Roll it 100 times, with every roll independent, and let be the average.
- The mean of the average is .
- The variance of the sum of 100 independent rolls is , by the rule applied 99 times.
- Dividing the sum by 100 divides the variance by , so .
- The standard deviation of the average is .
Interpretation: averaging 100 independent rolls shrinks the spread to about 0.17, so the average is usually within a fifth of a point of 3.5. If the rolls were dependent, for example if every roll were copied from the first, the variance would not shrink this way at all.
Tradeoffs and failure modes
Independence is almost always an assumption, not a fact you verify. It is cheap to assume and expensive to get wrong.
| Situation | What goes wrong | Better choice |
|---|---|---|
| Two servers share a power supply | Their failures are correlated, so "both fail" is far more likely than the product says | Model the shared cause explicitly, or use a joint distribution |
| Time series such as stock returns or sensor readings | Neighbouring values are related, so the mean and variance of the average are wrong | Use a [[markov-chain |
| Samples drawn from one group without replacement | Each draw changes the pool, so they are not independent | Treat the draws as dependent, or sample with replacement if the pool is large |
| Uncorrelated variables that are not independent | Zero correlation looks like "unrelated", so people wrongly multiply | Check the joint distribution, not just the correlation |
A concrete case: two servers each fail with probability 0.01 in a day. If they are independent, both fail with probability . If they share a power feed that fails with probability 0.005 and takes both down, then "both fail" is at least 0.005, which is fifty times larger. The independent calculation looked safe and was badly optimistic.
History
The multiplication rule for independent events was in use in the seventeenth century, when people analysed gambling problems. Independence was not given a precise general definition until the theory of probability was put on an axiomatic footing. Andrey Kolmogorov's 1933 axioms made events, random variables and their joint behaviour formal, and independence became a definition inside that framework rather than an informal idea about games.
The phrase "iid" became standard in statistics in the twentieth century, as the central limit theorem and the law of large numbers were proved under this assumption and then applied to samples. Its wide use reflects how often the assumption makes a model tractable, not how often it is true.
Check yourself
QuestionRecall: state the product rule that defines two independent events and .Show answer
and are independent exactly when . Equivalently, when , : knowing does not change the chance of .
QuestionA fair die and a fair coin are tossed. What is the probability the die shows an even number and the coin shows heads?Show answer
The die and coin are independent. and . So the probability is .
QuestionWhy does independence imply zero covariance, and why does zero covariance not imply independence?Show answer
If and are independent, , so the covariance is zero. The converse fails. Let take the values with equal probability and let . Then and , so the covariance is zero. But is completely determined by : , while . Covariance measures only linear association, and this relationship is not linear.
QuestionApplied: two independent sensors each misread a reading with probability 0.02. What is the probability both misread, and why might that number be too optimistic?Show answer
Under independence, . It is optimistic if the sensors share something that can affect both at once, such as a power supply, a calibration routine, or a physical vibration. Any shared cause puts a floor under the joint probability that the product rule ignores.