Problem Description:

There are five attributes in the dataset Weather Dataset. The attribute "play" is treated as the target attribute and the other four the descriptive attributes.

Usually, the attributes temperature and humidity are treated as continuous ones. However, because there are only 14 instances, they can also be treated as categorical ones in this lab.

Your tasks:

Calculate the probilities required by a Naive Bayes Classifier using Laplace smoothing with k = 2.

For each data item in the training dataset, apply the Naive Bayes Classifier to make the prediction.

Compare your prediction with the actual result and draw the confusion matrix.