Question



Predicting Probabilities of New (X,Y) Using Naive Bayes

Would I be correct in guessing that we must manually use contingency tables and the probability formula to get the naive Bayes prediction,
since there is not a row in the table that corresponds with the question posed? Would it be possible/acceptable to create an additional row
in that table with the necessary values so that the using the package will caculate the probability automatically?






Answers and follow-up questions





Answer or follow-up question 1

Dear student,

`Would I be correct in guessing that we must manually use contingency tables and the probability formula to get the naive Bayes prediction,
since there is not a row in the table that corresponds with the question posed? '

Yes.


'Would it be possible/acceptable to create an additional row in that table with the necessary values so that the using the package will
caculate the probability automatically?'

If you do that, then the training data will change, so you won't get the right probability.
You can create a test set to make a prediction though, to verify your manual calculation.

Michel Ballings



Sign in to be able to add an answer or mark this question as resolved.