LOGISTIC REGRESSION Flashcards

1
Q

What is the distribution of a logistic regression?

A

Bernouilli

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

What’s the formula that is the essence of logistic regression?

A

log[p/(1-p)]

also, odds = p/(1-p)

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

What is the range of odds?

A

0 to infinity

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

What is the range of log(odds)?

A
  • infinity to + infinity
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

So why do we use logit?

A

Because it enables to go from probabilities (0,1) to the range of log, that are infinite both ways, making this a more natural space for a linear model
(we’re not transforming the outcome, but the probability)

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

Key assumptions of logistic model (2)

A
  • Outcome is binary

- Observations are independent

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

Probability =

A

exp(b0+bx)/[1+exp(b0+bx)]

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

How do we estimate the coefficients?

A

With a maximum likelihood function, which looks the set of coefficients that make the observed responses maximally likely

Unlike least squares, no closed-form solution to problem, so it’s found by trial and error

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

When does the explanatory variable as a significant effect?

A

When the beta is more than 2 standard errors away from 0
- but since p is not linear with X, the same change has a more drastic impact on p towards the center of the p-range than in the extremes

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

The deviance of a model is…

A

-2*loglikelihood of the data under the model considered

  • the smaller the deviance, the better the fit
  • decreases when we add parameters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

We can get the RR by…

A

Predicting the risk of the outcome

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