I was wondering, if I can apply naive bayes, to a regression problem and how will it be done. I have 4096 image features and 384 text features and, it won't be very bad if I assume independence between them. Can anyone tell me how to proceed?
2 Answers
Naive bayes is used for strings and numbers(categorically) it can be used for classification so it can be either 1 or 0 nothing in between like 0.5 (regression)
Even if we force naive bayes and tweak it a little bit for regression the result is disappointing; A team experimented with this and achieve not so good results.
Also in wikipedia naivebayes has closeness to logistic regression.
Relation to logistic regression: naive Bayes classifier can be considered a way of fitting a probability model that optimizes the joint likelihood p(C , x), while logistic regression fits the same probability model to optimize the conditional p(C | x).
So now you have two choices, tweak naive bayes formula or use logistic regression.
I say lets use logistic regression instead of reinventing the wheel.
References:
Wikipedia: https://en.wikipedia.org/wiki/Naive_Bayes_classifier#Relation_to_logistic_regression
Naive Bayes Regression Experiment: https://link.springer.com/content/pdf/10.1023%2FA%3A1007670802811.pdf

- 193
- 1
- 8
-
Logistic Regression is classification algorithm so it is not useful for regression problem. – dobrowol Sep 02 '22 at 07:53
Naive bayes doesn't make sense to me as a regression algorithm. Random forest regression might be a better fit for your problem. It should be able to handle mixed text and image features.

- 2,354
- 1
- 17
- 25
-
-
Can you exlain a bit, why would using naive-bayes like method for regression would be bad? – Deven Apr 30 '16 at 01:48
-
Naive bayes is typically used for doing classification problems. I don't see how it would be applied for a regression problem. – Aaron Apr 30 '16 at 02:17
-
-
1@Deven And that paper says *NB performs poorly* for regression – WestCoastProjects Jan 27 '18 at 14:28