Linear Regression Vs Logistic Regression
Linear Regression Vs Logistic Regression
In logistic
In Linear regression,
Regression, we
we predict the value
predict the values of
of continuous
categorical
variables.
variables.
Maximum
Least square
likelihood
estimation method
estimation method
is used for
is used for
estimation of
estimation of
accuracy.
accuracy.
In logistic
In linear regression,
regression, there
there may be
should not be
collinearity between
collinearity between
the independent
the independent
variables.
variable.
2. Precision
Precision is a measure of how accurate a model’s positive predictions are. It is
defined as the ratio of true positive predictions to the total number of positive
predictions made by the model.
Precision= TP/(TP+FP)
Recall
Recall measures the effectiveness of a classification model in identifying all
relevant instances from a dataset. It is the ratio of the number of true positive
(TP) instances to the sum of true positive and false negative (FN) instances.
Recall = TP/(TP +FN)
F1-Score
F1-score is used to evaluate the overall performance of a classification model.
It is the harmonic mean of precision and recall,
F1-Score = 2*Precision*Recall/Precision+Recall
Specificity
Specificity is another important metric in the evaluation of classification
models, particularly in binary classification. It measures the ability of a model
to correctly identify negative instances. Specificity is also known as the True
Negative Rate. Formula is given by:
Specificity = TN/(TN+FP)
Ensemble methods are techniques that aim at improving the accuracy of results in
models by combining multiple models instead of using a single model. The combined
models increase the accuracy of the results significantly.
Bagging, or bootstrap