The following problems appeared as a project in the edX course ColumbiaX: CSMM.102x Machine Learning. The following problem description is taken from the course project itself.
The following figure shows a first few rows of a sample training dataset with d=2 dimensions and K=5 class labels.
The following figure shows how the Bayesian Classifier can be first trained to estimate the Prior and the Class Conditional Gaussian Densities (as a Generative Model) and then using Bayes Rule the Posterior Probabilities for the class labels can be predicted on the new test dataset.
The following figures show the Gaussian class conditional densities learnt from the training dataset with MLE.
The following figure shows the predicted posterior probabilities on the test dataset.
The following figures show the decision boundaries learnt with the Bayesian Classsfier trained and tested on different sample datasets respectively.