Bayesian Math
Probability
What is the probability of blindly grabbing a blue marble?
Probability
What is the probability of blindly grabbing a blue marble?
Probability Given Data
What is the probability of grabbing a blue marble given the marble has an 'X' inscribed on it?
X
X
X
X
Z
Z
Z
Z
Z
Z
Probability Given Data
What is the probability of grabbing a blue marble given the marble has an 'X' inscribed on it?
X
X
X
X
Z
Z
Z
Z
Z
Z
Probability of n-Features
What is the probability of a blue marble given the marble has an 'X' inscribed on it and white border?
X
X
X
X
Z
Z
Z
Z
Z
Z
X
X
X
X
Z
Z
Z
Z
Z
Z
*Confused myself at this point.*
Here's Bayes Rule
So what does this mean?
We need the probability of each class
# of rows with class / # of rows total
We need the probability of each feature (word), given each class
# or rows with word & class / # of rows with class (for each class)
We need the top half of the equation for all classes summed before we can finish our full calculation
Gotchas to watch out for
If a single feature does not exist for a single class, the probability gets nuked to zero (zero times anything is zero)
Not all features are independent, nor are all features relevant
Bayesian Math
By Nick Ferraro
Bayesian Math
- 487