4 April 2026
Mixed Naïve Bayes Classifier
What I have learnt about the Naïve Bayes Classifier
Machine Learning
There are two types of data, continuous and categorical.
- For continuous, estimate the mean and variance for each continuous feature, i.e., and
The conditional probabilities are given by
For categorical features
Compute the following
- which is the number of instances of category from feature (Pilot, from Occupation) with of class , i.e.,
income >=50. - We apply a small smoothing parameter
- is the number of instances of class
- is the number of distinct values of feature (Number of occupations in occupation column)
Then, we can compute asjdnajs
The prior probability for each class is
To classify an instance, we compute the posterior for each class
and then, we select the class with the highest posterior