Skip to main content
Mathematics LibreTexts

10.2: Conditional Probability and Independent Events

  • Page ID
    97926
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    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. 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? 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\). Then for every event \(A⊆S\), we define the probability of \(A\), given \(B\), denoted \(P(A|B)\), by setting \(P(A|B) = P(A \cap B)/P(B)\).

    Discussion 10.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, P(A)=6/20\) and \(P(A∩B)=(9 \cdot 6)/380\), so that \(P(A|B)=\frac{54}{380} \frac{20}{9}=6/19\), which is of course slightly larger than \(6/20\). Alice is impressed.

    Example 10.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∩J_1) \cup (G∩J_2)\), and \((G∩J_1)+(G∩J_2)= \emptyset\). Furthermore, \(P(G|J_1)= \binom{5}{2} / \binom{20}{2}\) and \(P(G|J_2)=\binom{4}{2} / \binom{18}{2}\), while \(P(J_1)=P(J_2)=1/2\). Also \(P(G∩J_i)=P(J_i)P(G|J_i)\) for each \(i=1,2\). Therefore,

    \(P(G) = \dfrac{1}{2} \dfrac{\binom{5}{2}}{\binom{20}{2}} + \dfrac{1}{2} \dfrac{\binom{4}{2}}{\binom{18}{2}} = \dfrac{1}{2}(\dfrac{20}{380} + \dfrac{12}{306})\).

    That's about 4.6%.”

    Now Alice is speechless.

    10.2.1 Independent Events

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

    Example 10.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}\). On the other hand, \(P(A∩B)=\frac{1}{2} \frac{4}{18}\), so \(P(A∩B) \neq P(A)P(B)\), 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.

    Example 10.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, 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, P(B)=6/36\), and \(P(A∩B)=2/36\). So \(A\) and \(B\) are independent.


    This page titled 10.2: Conditional Probability and Independent Events is shared under a CC BY-SA 4.0 license and was authored, remixed, and/or curated by Mitchel T. Keller & William T. Trotter via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.

    • Was this article helpful?