Basics • Rules • Independence • Counting
P(Heads) ≈ --
Result: --
Each outcome is equally likely (1/8).
Result: 1
Possible Outcomes ($N=6$):
Definition: Everyone has the same FAIR chance.
Example: A Balanced Coin.
Definition: Can NOT happen at the same time.
Example: Coin landing Heads AND Tails.
Event ($E$): Subset of Sample Space.
Complement ($E^c$): Everything NOT in E.
Union ($\cup$): A OR B.
Intersection ($\cap$): A AND B.
--
The "OR" means union.
Hover over the diagram to see the parts.
Hover circles
We subtract the Overlap because it was added twice!
Independent Events:
One event does not affect the other.
Therefore: $P(A \cap B) = P(A) \cdot P(B)$
Click circles to reveal probability math.
Updating probability of a "Cause" given an "Effect".
Numerator: True Positives
Numerator + False Positives
Population: 100 Dots.
Sick (Red): 10% (10 dots).
False Positives: 10% of Healthy (9 dots).
True Positives: 100% of Sick (10 dots).
IF you test positive (Yellow Halo), are you sick?
--
Formula: $\frac{TP}{TP + FP}$
Multiply options.
Books on Shelf
Committees
--
Select a mode & Pick
# Factorial: 5!
factorial(5) # 120
# Combinations nCr: (10 choose 3)
choose(10, 3) # 120
# Permutations nPr:
factorial(10) / factorial(10 - 3)
# Sample Space (e.g., Coin)
outcomes <- c("H", "T")
# Draw 10 samples with replacement
sample(outcomes, size=10, replace=TRUE)
# Simulate 5! (Permutation)
prod(5:1)
Organizing data by two categorical variables.
| Intern | Junior | Senior | Expert | Total | |
| Morning | 5 | 15 | 20 | 10 | 50 |
| Afternoon | 10 | 20 | 15 | 5 | 50 |
| Night | 25 | 10 | 5 | 10 | 50 |
| Total | 40 | 45 | 40 | 25 | 150 |
1. P(Intern): (Marginal)
$40 / 150 = 0.27$
3. P(Senior | Morning): (Conditional)
Given "Morning", look ONLY at top row.
$20 / 50 = 0.40$
Next: Discrete Probability Distributions