Logistic Regression
Logistics regression
Classification is a kind of problem in machine learning in which a machine learning model assigns the respective class to unseen data based on feature value. If the deciding classes are only two then the problem is known as a binary classification problem. If the classes are more than 2, then it is a multiclass logistic regression problem.
sigmoidal function
where
undetermined values:
This is a specific function that converts the values of Z from to in logistic regression. This function returns a value between 0 and 1 (probabilistic).

In linear regression , is the output variable which gives a numerical value by using the sigmoidal function . We can turn the value between 0 and 1.
where
Odd can be defined as:
Where is the probability of the occurrence of .
This means:
where
Taking of both sides
In logistic regression, we obtain a value between 0 and 1, which is a probability value, and then we decide on a threshold value.
if
V (value)
T (Threshold)
Then a particular class is assigned to z, otherwise the other class.
is 0. If the result is greater than class A, otherwise class B
Binomial logistic regression.
If the number of assigned classes is two, then the logistic regression is binomial logistic regression; if the number of assigned classes is more than two, then it is multinomial logistic regression.
Logistic Regression
Logistic Degrees models are used in Binary classification and multi-classification. They are widely used in email categorization, disease detection, fraud detection, and text emotion analysis
Measurement of the performance of the machine learning model metric
confusion matrix
accuracy
precision
recall
F1 score (harmonic mean)
Cow +ve
Deer -ve
Actual Class | Cow | Cow | Deer | Deer | Cow | Deer | Cow | Deer | Cow | Cow |
Predicted Class | Deer | Cow | Deer | Deer | Deer | Cow | Cow | Cow | Cow | Deer |
FN | TP | TN | TN | FN | FP | TP | FP | TP | FN |
