Naïve bayes classifier is a probabilistic Generative Model that Learns likelihood and prior probabilities then calculate the classes condition probability
$$ p(c_1|x) = \frac{p(x|c_1)p(c_1)}{p(x)} $$ Defining the likelihood of the data as the probability of observing the data under the assumptions:
-
Gaussian distribution for class-conditional densities
-
Shared covariance matrix for all classes (so that the posterior probability would be a linear function of the input data)
-
Input data points independence (so that the likelihood function would be the product of the joint probabilities of the input data and their given classes)
The used data is the Credit Card Approvals The correlation matrix of the data features shows that there is a high correlation between Married and Bank Customer
Features, so I discarded the Married -since it has lower correlation with the approval outcome- so that the 3rd assumption becomes valid
the class conditional probabilities for both classes and the decision boundary for the shared covariance solution
the class conditional probabilities for both classes and the decision boundary for the separate covariance solution