can we use Logistic regession for regression problem
- User
can we use Logistic regession for regression problem
- Assistant
Logistic regression is specifically designed for binary classification problems, not for regression tasks. In logistic regression, the dependent variable is categorical (usually binary), representing classes or categories (e.g., 0 or 1, yes or no, true or false). It predicts the probability that an instance belongs to a particular class.
In contrast, regression problems typically involve predicting continuous numerical outcomes. For such problems, you would use techniques like:
- Linear Regression: For predicting continuous values based on linear relationships.
- Polynomial Regression: For capturing non-linear relationships between variables.
- Ridge or Lasso Regression: For linear regression with regularization to prevent overfitting.
- Support Vector Regression (SVR): For complex relationships where you want to use support vector machines for regression.
- Decision Trees and Random Forests: For non-linear relationships in regression tasks.
If you mistakenly apply logistic regression to a regression problem, you will end up predicting probabilities rather than continuous values, which won't yield meaningful results for continuous target variables.