
Probability Rules & Bayes’ Theorem
2025-10-08
Please answer this poll before 10/20: https://piazza.com/class/mekmad7xwqw14d/post/13
Exam content will be up to 10/20 (more on Piazza, stay tuned)
PS2 posted yesterday (due 10/22)
Coding Assignment 1 will be posted by Friday
The probability of OR involves addition: \(P[A \text{ OR } B] = P[A] + P[B]− P[A \& B]\)
If two events are mutually exclusive: P[A & B] = 0
Therefore for mutually exclusive events: \(P[A OR B] = P[A] + P[B]\)
Probability that the sum of two dice is odd or between 6 and 8.

The General Multiplication principle (“this AND that”)
\[P[A \text{ & } B] = P[A] \times P[B|A]\]
The probability of “\(A \text{ & }B\)” equals:
the probability of one event times the probability of the other, conditioned on the first.
Read \(A\|B\) as “\(A \text{ given }B\)”
Independence:
Two events are independent if the occurrence of one gives no information about whether the second will occur.
\(A\) and \(B\) are independent if \(P[B | A] = P[B]\)
Probabilities for independent variables
General multiplication principle: \(P[A \text{ & } B] = P[A] × P[B | A]\)
If \(A\) & \(B\) are independent: \(P[B| A] = P[B]\)
So \(P[A\text{ & }B]=P[A]\times P[B]\)
I.e., if \(A\) & \(B\) are independent, the probability of “\(A \text{ AND }B\)” is the product of their probabilities.
Oguchi disease, also called congenital stationary night blindness, Oguchi type 1 or Oguchi disease 1, is an autosomal recessive form of congenital stationary night blindness associated with (…) abnormally slow dark adaptation (From: Wikipedia)
Autosomal: not sex chromosome;
Recessive: phenotype only expressed if two copies are present (in diploids).
Scenario 1: If both of parents have an affected chromosome but no disease, what’s the probability that their child will have Oguchi disease?
[work in pairs for a few mins]
Thinking:
A child has a ½ chance of inheriting mom’s affected chromosome AND a ½ chance of inheriting dad’s affected chromosome.
Answer
The probability that a given child of heterozygotes has the disease ½ x ½ = ¼.
If both of parents have an affected chromosome but no disease, what’s the probability that both of their children will have Oguchi disease?
[Work in pairs for a few minutes]

\(P[\text{Both kids have Oguchi}]=\)
\(P[\text{Child 1 has it}]\times P[\text{Child 2 has it}]\times\)
\(=1/4\times 1/4=1/16\)
Probability theory can be hard.
Being explicit about what you’re doing makes this easier.
Probability trees offer a simple way to follow accounting.
Write down all possible outcomes for event one, two… etc. and connect them.
Write down the probability of each outcome, conditional on their path.
Multiply each value down a path to find the probability of that path.
Repeat 1-3 for all paths.
Find probability: sum paths that lead to the same destination - i.e. the same outcome.
If both of parents have an affected chromosome but no disease, what’s the probability that none, one or both (three separate questions here) of their children will have Oguchi disease?
Let’s use probability trees!
\(P[2\text{Affected }] = 1/16\); \(P[1\text{ Affected }] = 6/16\) ; \(P[0 \text{ Affected }= 9/16]\)
Events are dependent when the probability of one event depends on the outcome of another.
E.g. The Probability of \(A\) depends on the value of \(B\).
If \(A\) depends on \(B\):
\[P[A\text{ & }B]\neq P[A]\times P[B]\]
Of the 2092 Adults on the Titanic
Hypothesis: If survival and sitting in 1st class are independent:
\[P[\text{ 1st class & survived }] = P[\text{ 1st class }] x P[\text{ survived }]\]
Expected number of 1st class adults to survive:
\(0.152\times0.312=0.047424 \times2092 = 99.7256\approx100\) 1st class adults would survive.
Expected number of non-1st class adults to survive: we expect
\(0.848\times0.312=0.2649 =0.26\times2092 \approx 554\) other adults would survive
More 1st class passengers survived than expected.
Fewer other passengers survived than expected.
The conditional probability of an event is the probability of that event occurring given that a condition is met.
\(P[X|Y]\) (read “\(|\)” as “given”.)
\(P[X|Y]\) means the probability of \(X\) if \(Y\) is true.
Hypothesis: If survival and sitting in 1st class are not independent
\(P[\text{ Survive| Adult in 1st class}] = 197/319 = 0.62\)
\(P[\text{ Survive| Adult NOT in 1st class}] = 457/1773 = 0.26\)
Convert conditional probabilities (\(P[X|Y_{i}\)]) to total probabilities (\(P[X]\)) by weighting conditional probabilities by the probability of the condition (\(Y_{i}\)) and summing over all conditions.
\[P[X]=\sum{(P[X|Y_{i}]\times P[Y_{i}])}\]
\(P[X]=\sum{(P[X|Y_{i}]\times P[Y_{i}])}\)
Of the 2092 Adults on the Titanic
319 [\(\approx0.152\)] sat in 1st class.
654 [\(\approx0.312\)] survived.
197 of the 319 people in 1st class survived. (\(\approx0.62\))
457 of the 1773 other passengers survived. (\(\approx0.26\))
\[P[X]=\sum{(P[X|Y_{i}]\times P[Y_{i}])}\]
\(P[\text{Survive}]=\sum{(P[\text{Survive}|\text{Class}_{i}]\times P[\text{Class}_{i}])}\)
\(P[\text{Survive}]=\sum{(P[\text{Survive}|\text{1st class}]\times P[\text{1st class}])}\)
\(+\)
\(P[\text{Survive}|\text{NOT 1st class}]\times P[\text{NOT 1st class}])\)
\(P[\text{Survive}]=(0.62\times 0.152)+(0.26\times 0.848)\)
\(P[\text{Survive}]=0.314\)
We recover \(P[\text{survive}]=0.094+0.220=0.314\)
The probability of “\(A\) given \(B\)” equals the probability of \(B\) given \(A\) times the probability of \(A\) divided by the probability of \(B\).
\[P[A|B]=\frac{P[B|A] \times P[A]}{P[B]}\]
Find the probability that an adult survivor was in 1st class.
319 of the 2092 adults on the Titanic where in 1st class.
197 of the 319 adults in 1st class survived.
457 of the other adults survived.
\(P[\text{1st class}|\text{Survive}]=?\)
[work in pairs]
\(P[\text{1st class}|\text{Survive}]=\frac{P[\text{Survive}|\text{1st class}]\times P[\text{1st class}]}{P[\text{Survive}]}\)
\(P[\text{1st class}|\text{Survive}]=\frac{197/319\times(319/2092)}{[(197+457)/2092]}=0.30\)
From: makeameme.org
B215: Biostatistics with R