6 Intersection of events
We often like to calculate the joint probability of events; this will depend on whether they are independent or not:
Definition 8 Two events A and B are independent provided that their joint distribution is the product of their marginal distributions:
P(A∩B)=P(A)P(B)
We denote A and B independent as follows: A⊥⊥B
Another way to see this is to reorder the terms in the formula for conditional probability (as probability of event A is not affected by event B, that is
P(A∣B)=P(A)
P(A∣B)P(B)=P(A∩B)
P(A∣B)P(B)=P(A)P(B)=P(A∩B)
Note:
Probability of intersection of mutually independent events is the product of their probabilities.
Example 1:
We toss a fair coin three times. Consider the following events:
- A1: Event of obtaining Tails in the first toss.
- A2: Event of obtaining Tails in the second toss.
- A3: Event of obtaining Heads in the third toss.
- What is the probability of A1, A2, and A3 happening?
P(A1∩A2∩A3)=P(A1)⋅P(A2)⋅P(A3)
Since it is a fair coin:
P(A1∩A2∩A3)=21⋅21⋅21
Checking independence
To check two events are independent, just check that the joint probability is equal to the product of the marginal probabilities.
For instance: P(hot,sun)=0.4, P(hot)=0.5, P(sun)=0.5,
P(hot,sun)=P(hot)×P(sun).
If the events are not mutually independent, how do we calculate their joint probability?
From the conditional probability formula, we have:
P(A∩B)=P(A)P(B∣A)
We can extend it to three events, as follows:
P(A∩B∩C)=P(A∩B)P(C∣A∩B)=P(A)P(B∣A)P(C∣A∩B)
We call this formula the chain rule that is very useful to estimate the joint probability of non independent events in experiments involving a sequence of choices. We generalize the rule as follows:
Definition 9 (Chain rule): For any events A1,A2,...,An:
P(A1∩A2...∩An)=P(A1)P(A2∣A1)P(A3∣A1∩A2)...P(An∣i=1⋂n−1Ai)
An alternative way to write it is:
P(A1∩A2...∩An)=i=1∏nP(Ai∣A1∩...∩Ai−1)
Note:
The intersection of events is equivalent to the notion of conjunction. In other words, A1∩A2 means event A1 happened and event A2 happened. To express the disjunction between events, we will use the union, as defined in the next section.
7 Union of events
Events are sets. So, it follows that theorems or principles that apply to sets, such as the principle of inclusion-exclusion (PIE), which we used to calculate the size of unions of sets, also apply to events.
Here we are counting the size of the union proportionally to the size of the sample space.
P(A1∪A2∪A3)=P(A1)+P(A2)+P(A3)−P(A1∩A2)−P(A1∩A3)−P(A2∩A3)+P(A1∩A2∩A3)
More generally:
P(i=1⋃nAi)=i=1∑nP(Ai)+(−1)i<j∑P(Ai∩Aj)+i<j<k∑P(Ai∩Aj∩Ak)+...+(−1)n−1P(i=1⋂nAi)