Docsity

Logistic, Logit Regression - Basic Statistics for Behavioral Sciences - Lecture Notes, Study notes of Statistics for Psychologists

Toggle sidebar
bg1
Ch. 2: Logistic (Logit) Regression
I. Situation
A. One binary (0, 1) DV and multiple metric IVs.
A. Multiple Regression may give a DV-value which exceeds 1 or
0.
B. With a dichotomous Y variable, errors cannot be Gaussian or
have constant variance.
II. Terminology
A. Probability: The probability that the binary y-variable
value equals 1,
L
e
yP −
+
== 1
1
)1(
B. Odds favoring y=1
1.
)1( =yO
=
)1(1
)1(
=−
=
yP
yP
2. The
O
-value ranges from 0 to
∞
.
3. If P(y=1) = 1, then
)1( =yO
=
)1(1
)1(
=−
=
yP
yP
=
0
1
=
∞
.
4. If P(y=1) = 0, then
)
1( =y
O
=
1
0
= 0.
5. If P(y=1) = .20, then
)1( =yO
=
80.
20.
= .25,
It is stated that .25 to 1, or 1 to 4.
6. In case of #5, the odds against y=1 is Q(
1≠y
).
Q(
1≠y
) =
.
C. Logit, L
1. L =
)]}1(
1/[)
1(ln{
lnlog =
−===
yPy
POO
e
.
2. Logits range from
∞
−
(when P(y=1)=0) to
∞
(when
P(y=1)=1).
D. Logistic Regression
1. Li =
ipp
XXX
εββββ
+++++ ..
22110
.
2. Since Li is a linear function of Xs, P is a nonlinear
function of Xs.
3. Reversing the logit transformation yields predicted
probabilities for y=1.
L
e
P
−
+
=1
1
ˆ
.
4. A graph of
P
ˆ
with Xs can be shown below.
Docsity.com
pf3

Partial preview of the text

Download Logistic, Logit Regression - Basic Statistics for Behavioral Sciences - Lecture Notes and more Study notes Statistics for Psychologists in PDF only on Docsity!

Ch. 2: Logistic (Logit) Regression

I. Situation A. One binary (0, 1) DV and multiple metric IVs. A. Multiple Regression may give a DV-value which exceeds 1 or

B. With a dichotomous Y variable, errors cannot be Gaussian or have constant variance.

II. Terminology A. Probability: The probability that the binary y-variable

value equals 1, (^) L e

P y −

B. Odds favoring y=

  1. O ( y = 1 ) = 1 ( 1 )

P y

P y

  1. The O -value ranges from 0 to ∞.
  2. If P(y=1) = 1, then

O ( y = 1 ) = 1 ( 1 )

P y

P y

0

  1. If P(y=1) = 0, then

O ( y = 1 ) = 1

  1. If P(y=1) = .20, then

O ( y = 1 ) =

. 80

It is stated that .25 to 1, or 1 to 4.

  1. In case of #5, the odds against y=1 is Q( y ≠ 1 ).

Q( (^) y ≠ 1 ) = 4

. 25

Q y ≠

C. Logit, L

  1. L = log (^) e O = ln O = ln{ P ( y = 1 )/[ 1 − P ( y = 1 )]}.
  2. Logits range from − ∞(when P(y=1)=0) to ∞ (when P(y=1)=1). D. Logistic Regression

1. Li = β 0 + β 1 X 1 +β 2 X 2 +.. + β p Xp + ε i.

  1. Since Li is a linear function of Xs, P is a nonlinear function of Xs.
  2. Reversing the logit transformation yields predicted probabilities for y=1.

P = (^1) + e − L

  1. A graph of P ˆ^ with Xs can be shown below.

5. Given Li^ = β 0 + β 1 X 1 + β 2 X 2 ,

β 0 : Assuming X 1 = X 2 = 0, O =

e^ β^0 ,

P = (^) + e − β , (^0)

0

1

(^1) β

β −

−

e

e Q P , and Q

P

O =.

β 1 : Assuming other variables remain the same, one unit

increase in X 1 increases the odds ( O ) by e^ β^1.

III. Estimation (ML)

A. Given P(y=1) = 1 + e − Li

, and Q(y=1) = P( (^) y ≠ 1 ) = 1-P(y=1),

the likelihood function ( (^) L ) can be expressed as,

L = ∏

=

−

n

i

ny i

y Pi Q 1

B. Then we convert L to ln L (multiplication to addition),

ln L = ∑

=

n

i

y Pi n y Qi 1

[ ln ( )ln ].

C. To minimize the log likelihood function we take first the derivative with respect to each of the estimated parameters ( β s), then set these derivatives equal to zero.

D. Since there is no closed form solution for the equations, iterative procedures through numerical analysis (e.g. Newton- Raphson method) are adopted for approximations.

IV. Hypothesis testing

A. Ho: β 1 | other β s = 0 (Testing X 1 given other x-variables)

B. TS

χ obs^2 =− 2 ln L with df = 1

C. Rejecting Ho means X 1 is a significant predictor of Logit. D. Goodness-of-fit: Pseudo R^2 (Aldrich and Nelson, 1984)

PsR^2 = (^2) + n

2

, where χ 2 is χ 2 for the whole model and n =

sample size.

V. Interpretation

A. Given Li^ = β 0 + β 1 X 1 + β 2 X 2 , where Li^ = 

P

P

O

ln ln ,

  1. Assuming other things are equal, one unit increase in X 1

increases L 1 ^ by β 1.

  1. This means one unit increase in X 1 multiplies the odds by