03. Conditional Probability
Definition¶
Conditional Probability is the probability of A if B occurs. Denoted by \(P(A|B)\).
A Die Is Rolled
Let A be the event of rolling greater than a three.
Let B be the event of rolling an even number.
\(\Omega=\{1,2,3,4,5,6\}\)
We are told that B happens. Now what is the probability of A?
\(\Omega_{\text{new}}=\{2,4,6\}\)
Given our \(\Omega_{\text{new}}\), \(A_{\text{new}}=\{4,6\}\)
The Formula¶
Reuven Has 2 Children
Let A be the event that Reuven has exactly 2 boys.
Let B be the event that Reuven has at least one boy.
Given that Reuven has at least one boy, what is the probability of Reuven having 2 boys?
Applying The Formula, \(P(A|B)=\frac{P(A\cap B)}{P(B)}\)
Since \(A\subseteq B\), \(\frac{P(A\cap B)}{P(B)}=\frac{P(A)}{P(B)}=\frac{\frac14}{\frac34}=\frac13\)
Independent Events¶
Events \(A\) and \(B\) are independent events if \(P(A|B)=P(A)\)
(Meaning, if knowing \(B\) happened has no effect on the probability of \(A\).)
Properties of Independent Events¶
- Independence is mutual.
- If \(P(A|B)=P(A)\), then \(P(B|A)=P(B)\).
- \(A, B\) are independent \(\iff P(A\cap B)=P(A)\cdot P(B)\)
- This extends to \(n\) mutually independent events.
Don’t mix this up with disjoint events!
Disjoint events are not the same thing as independent events.
In fact, if \(P(A),P(B)\not=0\), then if they are disjoint \(A,B\) must be dependent.
Evaluating Conditional Probabilities¶
Example
\(A=\) I visit New York
\(B=\) I visit the Statue of Liberty
Given \(P(A)=0.7\) and \(P(B|A)=0.4\), what is \(P(B)\)?
\(P(B)=P(B\cap A)\) because \(B\subseteq A\).
By definition: \(P(B|A)=\frac{P(B\cap A)}{P(A)}\).
Multiplying both sides by \(P(A)\) gives us:
Law of Total Probability (LTP)¶
Introductory Example¶
Given 2 jars
The probability of picking jar 1 is \(\frac14\), and picking jar 2 is \(\frac34\). A ball is selected at random from the chosen jar. What is the probability that I select a blue ball?
Define events:
We know \(P(A_1)=\frac14\), \(P(A_2)=\frac34\).
\(P(B\mid A_1)=\frac23\), \(P(B\mid A_2)=\frac13\).
So, how do we find \(P(B)\)?
Note that \(B=(B\cap A_1)\cup(B\cap A_2)\), which are disjoint events.
\(B\cap A_1\subseteq A_1\), hence, \(P(B\cap A_1)=P(A_1)\cdot P(B\mid A_1)\)
\(B\cap A_2\subseteq A_2\), hence, \(P(B\cap A_2)=P(A_2)\cdot P(B\mid A_2)\)
Let \(A_1,\dots A_n\) be disjoint events which partition \(\Omega\).
Let \(B\) be any event.
Then:
The Law¶
\(B\) is the union of the intersection of \(A_k\) and \(B\), for all \(k\):
\(B=(B\cap A_1)\cup(B\cap A_2)\cup\dots\cup(B\cap A_n)\)
Then,
Proof¶
This is very likely on the ProbabilityExam{: #ProbabilityExam .hash}
INCOMPLETE!
I’m a bit behind on notes and stuff. If this note been published more than 10 days ago (you can see on the footer), please let me know and I’ll be sure to finish this page up