|
|
Golfer | P(Golfer | Spy = True) |
---|---|
T | 4/5 = .8 |
F | 1/5 = .2 |
Golfer | P(Golfer | Spy = False) |
---|---|
T | 7/15 ≈ .47 |
F | 8/15 ≈ .53 |
Fedora |
P(Fedora | Spy = True) |
---|---|
T | 2/5 = .4 |
F | 3/5 = .6 |
Fedora |
P(Fedora | Spy = False) |
---|---|
T | 10/5 ≈ .66 |
F | 5/15 ≈ .33 |
We could apply (non-naive) Bayes rule:
How to handle zeros for some attributes?
Solution: Laplace Smoothing (Add-one smoothing)
Example: If we never saw "Golfer=True, Spy=True" in training: