Linear And Logistic Regression
Linear regression and logistic regression are simple and effective linear techniques for regression and classification tasks, respectively.
Assumptions of linear regression:
- A linear relationship exists between the independent and the dependent variables.
- The residuals are normally distributed.
- The residuals are homoskedastic.
- There should be little to no multicollinearity among the independent variables.
- The independent variables are not auto-correlated.
Assumptions of logistic regression:
- The dependent variable is binary or ordinal, as the case may be.
- The observations are independent of each other.
- There should be little to no multicollinearity among the independent variables.
Loss funcitons
Linear regression uses a Mean Squared Error (MSE) for the loss function while logistic uses log loss as the loss function.