Experiment 5B - Minor
Experiment 5B - Minor
Experiment No.5B
Prerequisites: python.
Theory:
Logistic Regression is one of the most simple and commonly used Machine Learning algorithms
for two-class classification. It is easy to implement and can be used as the baseline for any
binary classification problem. Its basic fundamental concepts are also constructive in deep
learning. Logistic regression describes and estimates the relationship between one dependent
binary variable and independent variables.
Logistic regression is a statistical method for predicting binary classes. The outcome or target
variable is dichotomous in nature. Dichotomous means there are only two possible classes. For
example, it can be used for cancer detection problems. It computes the probability of an event
occurrence.
It is a special case of linear regression where the target variable is categorical in nature. It uses a
log of odds as the dependent variable. Logistic Regression predicts the probability of occurrence
of a binary event utilizing a logit function.
Classification Report:
The classification report displays the Precision, Recall , F1 and Support scores for the model.
Precision score means the the level up-to which the prediction made by the model is precise.
Recall is the amount up-to which the model can predict the outcome.
Confusion matrix:
Confusion matrix is a table which describes the performance of a prediction model. A confusion
matrix contains the actual values and predicted values. we can use these values to calculate the
accuracy score of the model.
Conclusion: -
In this experiment, we studied how to use logistic Regression to predicts output.