Explain Numeric predictor variable
Bayesian classifier often works with categorical variables. But it is also possible to make classification in numeric data. But for such cases, we have to follow two approaches.
We have to bin and convert the numerical predictors to categorical variable and apply the Naïve Bayes algorithm
We have to use a probability model like the normal distribution model to estimate the conditional probability.
Let us explain how to convert numeric values into categorical by binning
In this dataset, the age can be binned into high,medium and low age
The ages of the patients in the dataset has been converted into categorical variable.