I'm trying to apply Naive bayes to the following supervised problem:
- It's a binary classification problem
- The classes are unbalanced. The target class represents the 0.004266432 of the total and the mayoritary class the 0.995733568.
There is also an unbalanced cost scheme given by the following formula:
Profit = 5000 * TP - 100 * FP
TP: True Positive - FP: False Positive
The objective is to maximize the Profit function.
I'm using the klaR
package in R to fit the model, so it's posible to adjust the priors.
Questions:
1) Is it posible using the prior probabilities to improve the model taking in consideration the asymetric cost scheme or/and the class inbalance?
2) The predict() function outputs a class prediction and a probability. The problem is that the probabilities of the minoritary class are too small. Is it posible to use the priors or scale the probabilities in a clever way to get a better cut off point?
So far, the results I get using Bayes are half as good compared to other methods (random forest, lasso). So I'm pretty sure there is a way to improve the naive bayes approach.