Skip to main content
Engineering LibreTexts

3.2: Conditional Probability

  • Page ID
    47233
    • Franz S. Hover & Michael S. Triantafyllou
    • Massachusetts Institute of Technology via MIT OpenCourseWare
    \( \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}}\)

    If a composite event \(M\) is known to have occurred, a question arises as to the probability that one of the constituent simple events Ai occurred. This is written as \(P(A_j |M)\), read as ”the probability of \(A_j\), given \(M\),” and this is a conditional probability. The key concept here is that \(M\) replaces \(S\) as the event space, so that \(p(M) = 1\). This will have the natural effect of inflating the probabilities of events that are part of event \(M\), and in fact

    \[p(A_j | M) = \dfrac{p(A_j \cap M)}{p(M)}. \]

    Referring to our die example above, if \(M\) is the event of an even result, then we have

    \begin{align*} M = A_2 \cup A_4 \cup A_6 \\[4pt] p(M \cap A_2) = p(A_2) = 1/6 \\[4pt] p(M) = 1/2 \longrightarrow \\[4pt] p(A_2 | M) = \dfrac{1/6}{1/2} = 1/3. \end{align*}

    Given that an event result was observed (composite event \(M\)), the probability that a two was rolled is 1/3. Now if all the \(A_j\) are independent (simple) events and \(M\) is a composite event, then we can write an opposing rule:

    \[ p(M) = p(M|A_1) \, p(A_1) \, + \, . \, . \, . + \, p(M|A_n) \, p(A_n). \]

    This relation collects conditional probabilities of \(M\) given each separate event \(A_i\). Its logic is easily seen in a graph. Here is an example of how to use it in a practical problem. Box A has 2000 items in it of which 5% are defective; box B has 500 items with 40% defective; boxes C and D each contain 1000 items with 10% defective. If a box is picked at random, and one item is taken from that box, what is the probability that it is defective? \(M\) is the composite event of a defective item, so we are after \(p(M)\). We apply the formula above to find

    \[ p(M) = 0.05 \times 0.25 + 0.40 \times 0.25 + 0.10 \times 0.25 + 0.10 \times 0.25 = 0.1625. \nonumber \]


    This page titled 3.2: Conditional Probability is shared under a CC BY-NC-SA 4.0 license and was authored, remixed, and/or curated by Franz S. Hover & Michael S. Triantafyllou (MIT OpenCourseWare) via source content that was edited to the style and standards of the LibreTexts platform; a detailed edit history is available upon request.