9 - Conditional Probability Continued

Alex John Quijano

10/29/2021

Previously on Conditional Probability…

Conditional Probability and Bayes’ Theorem

Fair Six-Sided Die

\[ \begin{align} P(\text{1 roll until 1st 6}) & = \frac{1}{6} \\ P(\text{2 rolls until 1st 6}) & = \frac{5}{6}\frac{1}{6} = \frac{5}{6^2} \\ & \vdots \\ P(\text{n rolls until 1st 6}) & = \frac{5^{n-1}}{6^n} \end{align} \]

Geometric Distribution

Geometric vs Binomial (1/2)

Geometric vs Binomial (2/2)

Dependence with Probability Urns (1/2)

\[P(A^C) = P(red,red,red) = \left(\frac{5}{10}\right) \left(\frac{4}{9}\right) \left(\frac{3}{8}\right) = \frac{1}{12}\]

Dependence with Probability Urns (2/2)

Notation: Let \(R_i\) be the red outcome on the \(i\)th draw and let \(P(R_{i+1} | R_i)\) be the conditional probability of the (\(i+1\))th roll given the \(i\)th roll has already occurred.

\[ \begin{align} P(R_1,R_2,R_3) & = P(R_1)P(R_2|R_1)P(R_3|R_2 \cap R_1) \\ & = \left(\frac{5}{10}\right) \left(\frac{4}{9}\right) \left(\frac{3}{8}\right) \\ & = \frac{1}{12} \end{align} \]

\[P(A^C) = P(R_1,R_2,R_3) = \frac{1}{12}\]

\[P(A) = 1 - P(A^C) = 1 – \frac{1}{12} = \frac{11}{12}\]

15.15-Minute Activity (1/3)

15:15

15.15-Minute Activity (2/3)

15.15-Minute Activity (3/3)

\[ \begin{align} P(A^C) & = P(R_1)P(R_2|R_1)P(R_3|R_1 \cap R_2) & \longrightarrow \color{red}{\{R_1,R_2,R_3\}} \end{align} \]

\[ \begin{align} P(A) & = P(R_1)P(R_2|R_1)P(B_3|R_1 \cap R_2) & \longrightarrow \color{blue}{\{R_1,R_2,B_3\}} \\ & + P(R_1)P(B_2|R_1)P(R_3|R_1 \cap B_2) & \longrightarrow \color{blue}{\{R_1,B_2,R_3\}} \\ & \vdots & \\ & + P(B_1)P(B_2|B_1)P(B_3|B_1 \cap B_2) & \longrightarrow \color{blue}{\{B_1,B_2,B_3\}} \\ P(A) & = \frac{11}{12} \end{align} \]

Law of Total Probability

Conditional Probability Notation (1/2)

Conditional Probability Notation (2/2)

Bayes’ Theorem (or Bayes’ Rule)

Image Source: ["Bayes’ rule with a simple and practical example" by Tirthajyoti Sarkar](https://towardsdatascience.com/bayes-rule-with-a-simple-and-practical-example-2bce3d0f4ad0){target=_blank}

Image Source: “Bayes’ rule with a simple and practical example” by Tirthajyoti Sarkar

Summary

Today, we discussed the following:

Next, we will discuss: