Logistic Regression Flashcards
(8 cards)
What is logistic regression?
Logistic regression models the probability of an instance to belong to a given class as a linear combination of the inputs
What is the formula for logit?
logit(p1) = ln(p1 / (1 − p1)) = wTx
What are the boundaries for class 1 and class 0 when using logit?
Class 1 >= 0
Class 0 < 0
Why do we use the logit function?
By taking logs in logit, we can map the space from [0,1] to [-infinity, infinity]
What is the decision boundary?
The equation wTx = 0 is the decision boundary when the hyperplane is 2-dimensional
What does the logit say about the position of the example according to the decision boundary?
Above the line if > 0
On the line if = 0
Below the line if < 0
What is the formula for p1 and p0?
p1 = e(wTx) / (1 + e(wTx))
p0 = 1 - p1 = 1 / (1 + e(wTx))
What are the boundaries for class 1 and class 0 when using p1?
Class 1 >= 0.5
Class 0 < 0.5