What is Logistic regression?
In Turkish: Lojistik regresyon · Topic: Math foundations
Despite its name, a method used for classification: it computes a probability from input features and uses it to place an example into one of two classes.
How does it work?
The model first computes a weighted sum of the features, just as linear regression does. That number is passed through an S-shaped function called the sigmoid, which squeezes it between zero and one so it can be read as a probability. If the probability is above a chosen threshold, often fifty percent, one class is chosen; otherwise the other. The weights are learned by reducing an error measure that rewards high probability for the true labels. Extended versions handle more than two classes.
Why does it matter?
Because it is fast, stable and interpretable, it is a common first choice for credit risk, medical diagnosis and email filtering. Producing a probability lets the threshold be tuned to business needs. The same structure underlies ideas used in the output layers of neural networks.
Example
A bank can calculate the probability that a loan will be repaid from an applicant's income and debt data, and route the application to extra review if that probability falls below a set threshold.
FAQ
Why is it a classification method if it is called regression?
The name comes from modeling a transformed version of the probability with a linear expression. Its goal is to make a class decision, not to predict a number.
Can the threshold be changed?
Yes. If false alarms are costly the threshold is raised, and if missed cases matter more it is lowered.