Professional Documents
Culture Documents
Probability
Marginal and Joint Probabilities
If a probability is based on a single variable, it is a marginal
probability. The probability of outcomes for two or more variables
or processes is called a joint probability.
http://www.oswego.edu/~srp/stats/2_way_tbl_1.htm
Marginal probability
What is the probability that a patient relapsed?
P(relapsed) = 48 / 72 ~ 0.67
Outcome of Condition
interest
“|” is read as
given
Conditional probability
What is the probability that a patient relapsed given that they
received the antidepressant (desipramine)?
10%
= 72
24%
72
Conditional probability (cont.)
If we know that a patient relapsed, what is the probability that
they received the antidepressant (desipramine)?
The rule for complements also holds when an event and its
complement are conditioned on the same information:
𝑃 𝐴 𝐵 = 1 − 𝑃(𝐴Q |𝐵)
Examples:
𝑃 𝑑𝑒𝑠𝑖𝑝𝑟𝑎𝑚𝑖𝑛𝑒 𝑟𝑒𝑙𝑎𝑝𝑠𝑒 + 𝑃 𝑙𝑖𝑡ℎ𝑖𝑢𝑚 𝑟𝑒𝑙𝑎𝑝𝑠𝑒 + 𝑃 𝑝𝑙𝑎𝑐𝑒𝑏𝑜 𝑟𝑒𝑙𝑎𝑝𝑠𝑒
= 10⁄48 + 18⁄48 + 20⁄48 = 1
1. 𝑃 𝑝𝑎𝑟𝑒𝑛𝑡𝑠 𝑑𝑒𝑔𝑟𝑒𝑒 = ?
2. 𝑃 𝑡𝑒𝑒𝑛 𝑐𝑜𝑙𝑙𝑒𝑔𝑒 𝑎𝑛𝑑 𝑝𝑎𝑟𝑒𝑛𝑡𝑠 𝑑𝑒𝑔𝑟𝑒𝑒 = ?
3. 𝑃 𝑡𝑒𝑒𝑛 𝑐𝑜𝑙𝑙𝑒𝑔𝑒 𝑝𝑎𝑟𝑒𝑛𝑡𝑠 𝑑𝑒𝑔𝑟𝑒𝑒) = ?
Practice
Mathematically:
a(v hdi w)
The conditional probability formula states that 𝑃 𝐴 𝐵 =
a(w)
Breast Cancer:
In Canada, about 0.35% of women (over 40) will develop breast cancer in
any given year. A common screening test for cancer is the mammogram,
but the test is not perfect. In about 11% of patients with breast cancer,
the test gives a false negative. Similarly, the test gives a false positive
in 7% of patients without breast cancer.
Tree Diagrams
𝑃(𝑐𝑎𝑛𝑐𝑒𝑟)
𝑃(𝑛𝑜 𝑐𝑎𝑛𝑐𝑒𝑟)
The first branch for Truth is said to the primary branch. It shows the
marginal probability that a patient does, in truth, have breast cancer.
From the Breast Cancer data, we know: 𝑃 𝑐𝑎𝑛𝑐𝑒𝑟 = 0.35%
And we can calculate 𝑃 𝑛𝑜 𝑐𝑎𝑛𝑐𝑒𝑟 = 1 − 𝑃 𝑐𝑎𝑛𝑐𝑒𝑟 = 1 − .0035 = .9965
Tree Diagrams
𝑃(𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒|𝑐𝑎𝑛𝑐𝑒𝑟)
𝑃(𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒|𝑛𝑜 𝑐𝑎𝑛𝑐𝑒𝑟)
𝑃(𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒|𝑛𝑜 𝑐𝑎𝑛𝑐𝑒𝑟)
We may (and usually do) construct joint probabilities at the end of each
branch in our tree by multiplying the number we come across as we
move from left to right. These joint probabilities are computed using the
General Multiplication Rule:
𝑃 𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 & 𝑐𝑎𝑛𝑐𝑒𝑟 = 𝑃 𝑛𝑒𝑔𝑎𝑡𝑖𝑣𝑒 𝑐𝑎𝑛𝑐𝑒𝑟 ∗ 𝑃 𝑐𝑎𝑛𝑐𝑒𝑟 = .89 .0035 . 00312
Tree Diagrams
When a patient goes through breast cancer screening there are two competing
claims: patient had cancer and patient doesn't have cancer. If a mammogram
yields a positive result, what is the probability that patient actually has cancer?
Bayes Theorem is just a generalization of what we have done using the tree
diagram:
Variable 1: Truth à Outcome A: cancer
Variable 2: Mammogram à Outcome B: positive
The numerator identifies the joint probability of getting both 𝐴Jand B, aka
𝑃(𝑝𝑜𝑠𝑖𝑡𝑖𝑣𝑒 & 𝑐𝑎𝑛𝑐𝑒𝑟)
Step 1: Step 2:
Bayes’ Theorem