For Naive Bayes in classification conditional probabilities for categories are calculated using the frequency values.For example in the below code:
nb <- naiveBayes(churn~.,churnTrain)
on seeing the output:
So for P( churn = “yes” |intl_plan = “yes” ) the conditional prob is drawn from the counts in the dataset.
The result is the same as the part marked in red in image 1.
But for a numeric/continuous variable like number_vmail_messages how is this calculated??
Can someone please clarify this to me.??