Logistic Regression Flashcards

(8 cards)

1
Q

What is logistic regression?

A

Logistic regression models the probability of an instance to belong to a given class as a linear combination of the inputs

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is the formula for logit?

A

logit(p1) = ln(p1 / (1 − p1)) = wTx

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the boundaries for class 1 and class 0 when using logit?

A

Class 1 >= 0
Class 0 < 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Why do we use the logit function?

A

By taking logs in logit, we can map the space from [0,1] to [-infinity, infinity]

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the decision boundary?

A

The equation wTx = 0 is the decision boundary when the hyperplane is 2-dimensional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What does the logit say about the position of the example according to the decision boundary?

A

Above the line if > 0
On the line if = 0
Below the line if < 0

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What is the formula for p1 and p0?

A

p1 = e(wTx) / (1 + e(wTx))
p0 = 1 - p1 = 1 / (1 + e(wTx))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What are the boundaries for class 1 and class 0 when using p1?

A

Class 1 >= 0.5
Class 0 < 0.5

How well did you know this?
1
Not at all
2
3
4
5
Perfectly