Bayes’ theorem is used to describe the probability of an event. It is defined as:
How do I use it?
In order to use bayes theorem to guess the class of each data point in a given dataset, we need to estimate
- The class priors: where is the size of our dataset.
- Unconditional Class Probabilities: . This too is easy to calculate, since it does not require any assumptions.
- The class conditional probability: . In order to calculate this one, we need to make an assumption for the distribution of each class .
Usually, for the class conditional, gaussian distribution is used. The dimensionality of the distribution depends on the dimensions of each data point .