1
votes

Can some please help me understand, if I can use linear regression if I have 100 classes to predict. The calue to predict is discrete in nature like 1 to 100.

How do i decide if linear is better than logistic regression.

Appreciate your kind help.

1
Linear is for regression, logistic for classification. You need a regression here - yatu
Your requirement here is prediction (based on what information you have provided). Hence Linear Regression is your answer, Logistics Regression is only for classification. - a_r

1 Answers

0
votes

Linear regression should be used when the outcome is continuous, whereas logistic regressions should be used when the outcome is discrete.

Since your outcome is discrete in nature, you need logistic regression.

Check this stack overflow question for a more in-depth discussion of the difference between linear and logistic regression.