# Section10.2Conditional Probability and Independent Events¶ permalink

A jar contains twenty marbles of which six are red, nine are blue and the remaining five are green. While blindfolded, Xing selects two of the twenty marbles random (without replacement) and puts one in his left pocket and one in his right pocket. He then takes off the blindfold.

The probability that the marble in his left pocket is red is $6/20\text{.}$ But Xing first reaches into his right pocket, takes this marble out and discovers that it is blue. Is the probability that the marble in his left pocket is red still $6/20\text{?}$ Intuition says that it's slightly higher than that. Here's a more formal framework for answering such questions.

Let $(S,P)$ be a probability space and let $B$ be an event for which $P(B)>0\text{.}$ Then for every event $A\subseteq S\text{,}$ we define the probability of $A\text{,}$ given $B$, denoted $P(A|B)$, by setting $P(A|B)=P(A\cap B)/P(B)\text{.}$

##### Discussion10.8

Returning to the question raised at the beginning of the section, Bob says that this is just conditional probability. He says let $B$ be the event that the marble in the right pocket is blue and let $A$ be the event that the marble in the left pocket is red. Then $P(B)=9/20\text{,}$ $P(A) = 6/20$ and $P(A\cap B)=(9\cdot6)/380\text{,}$ so that $P(A|B)= \frac{54}{380}\frac{20}{9}=6/19\text{,}$ which is of course slightly larger than $6/20\text{.}$ Alice is impressed.

##### Example10.9

Consider the jar of twenty marbles from the preceding example. A second jar of marbles is introduced. This jar has eighteen marbles: nine red, five blue and four green. A jar is selected at random and from this jar, two marbles are chosen at random. What is the probability that both are green? Bob is on a roll. He says “Let $G$ be the event that both marbles are green, and let $J_1$ and $J_2$ be the event that the marbles come from the first jar and the second jar, respectively. Then $G= (G\cap J_1)\cup (G\cap J_2)\text{,}$ and $(G\cap J_1)+(G\cap J_2)=\emptyset\text{.}$ Furthermore, $P(G|J_1)=\binom{5}{2}/\binom{20}{2}$ and $P(G|J_2)=\binom{4}{2}/\binom{18}{2}\text{,}$ while $P(J_1)=P(J_2)=1/2\text{.}$ Also $P(G\cap J_i)=P(J_i)P(G|J_i)$ for each $i=1,2\text{.}$ Therefore, \begin{equation*} P(G)=\frac{1}{2}\frac{\binom{5}{2}}{\binom{20}{2}}+ \frac{1}{2}\frac{\binom{4}{2}}{\binom{18}{2}}=\frac{1}{2}\left(\frac{20}{380}+ \frac{12}{306}\right). \end{equation*} That's about $4.6$%.”

Now Alice is speechless.

# Subsection10.2.1Independent Events

Let $A$ and $B$ be events in a probability space $(S,P)\text{.}$ We say $A$ and $B$ are independent if $P(A\cap B)=P(A)P(B)\text{.}$ Note that when $P(B)\neq 0\text{,}$ $A$ and $B$ are independent if and only if $P(A)=P(A|B)\text{.}$ Two events that are not independent are said to be dependent. Returning to our earlier example, the two events ($A\text{:}$ the marble in Xing's left pocket is red and $B\text{:}$ the marble in his right pocket is blue) are dependent.

##### Example10.10

Consider the two jars of marbles from Example 10.9. One of the two jars is chosen at random and a single marble is drawn from that jar. Let $A$ be the event that the second jar is chosen, and let $B$ be the event that the marble chosen turns out to be green. Then $P(A)=1/2$ and $P(B)=\frac{1}{2}\frac{5}{20}+ \frac{1}{2}\frac{4}{18}\text{.}$ On the other hand, $P(A\cap B)=\frac{1}{2} \frac{4}{18}\text{,}$ so $P(A\cap B)\neq P(A)P(B)\text{,}$ and the two events are not independent. Intuitively, this should be clear, since once you know that the marble is green, it is more likely that you actually chose the first jar.

##### Example10.11

A pair of dice are rolled, one red and one blue. Let $A$ be the event that the red die shows either a $3$ or a $5\text{,}$ and let $B$ be the event that you get doubles, i.e., the red die and the blue die show the same number. Then $P(A)=2/6\text{,}$ $P(B)=6/36\text{,}$ and $P(A\cap B) = 2/36\text{.}$ So $A$ and $B$ are independent.