Logistic regression Flashcards

1
Q

For the binary classification problem, define the log ratio as:

a = log [(p(C1|x) / p(C2|x)]
= log[(p(x|C1)p(C1) / p(x|C2)p(C2)
What is sigmoid(a) = 1/(1 + exp(-a))

A

sigmoid(a) = p(C1|x)

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

How can we generalize logistic regression to K classes ?

A

Use softmax,

p(Ck|x) = p(x|Ck)p(Ck) / sum[p(x|Ci)p(Ci)]

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

In the usual binary logistic regression setting, what kind of distribution is the likelihood?

A

Bernoullli

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

What is the NLL (Negative log likelihood) of the binary logistic regression?

A
  • sum y_i log (mu_i) + (1 - y_i) log ( 1 - mu_i)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the derivative of the sigmoid, o(z)?

A

o(z) ( 1 - o(z))

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

What is the gradient of the NLL for binary logistic regression?

A

(y - my)^T*X

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

Does the NLL of binary logistic regression have a unique global optimum?

A

Yes, but no closed for solutions exist

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

How can we solve the problem that under Bayesian logistic regression, the integral of the marginal likelihood is intractable?

A

Use approximations, for example using the laplace approximation by expanding -log p_hat(x) using the second order taylor expansion around the mode, recognizing the mean and covariance matrix in the resulting normal distrubution.

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