Logistic Regression Flashcards

1
Q

connections between glms and linear models

A

link function, iterative re-weighted least square, response function, weights, weighted residual sum of square, F- test of glms
https://www.sagepub.com/sites/default/files/upm-binaries/21121_Chapter_15.pdf

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

logistic regression: deal with perfectly separated data

A

maximum likelihood estimate is not well defined

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

assumption of logistic regression

A

log odd ratio between different class is a linear function of X
low correlations in X
observations independent with each other

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

how to estimate logistic regression parameters

A

Newton’s method (iterative re-weighted least square)

beta_new = beta_old - (Hessian)^-1 \partial(log likelihood)/\partial(beta_old)

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

estimate the variance-covariance matrix of logistic regression parameters (all glms)

A

use Fisher information, which is estimated as I(beta) = -Hessian. Var(beta) = I(beta)^-1

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

z test for logistic regression

A

Wald stastic hat(beta)/hat(se(beta)) ~ N(0, 1)
Use it as z-score to calculate the p-value
because the dispersion parameter for logistic and poisson models are fixed as 1. (variance and mean are correlated and no further estimate for variance is needed)

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

likelihood ratio test for logistic regression

A

LR = 2 (loglikelihood(model_large) - loglikelihood(model_small))
chi-square distribution with df=p_large - p_small

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

wald (chi-square) test for logistic regression

A

wald chi-square hat(beta)^2/hat(var(beta)) ~chi^2(1)
use a chi-square distribution to calculate the p-value
an approximation of likelihood ratio test

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

lagrange multiplier test (score test) for logistic regression

A

the gradient of the likelihood function—known as the score—evaluated at the hypothesized parameter value under the null hypothesis.
approximate chi-square distribution

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

roc curve

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

type-I error, type-II error

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

sensitivity, specificity

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