Beruflich Dokumente
Kultur Dokumente
( ) logit ln
1
p
p
p
=
Mofe: odds=1 p=0.5 ln(odds)=0
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 I0
ProbubiIities und odds
0
.1
.2
.3
.4
.5
.6
.7
.8
.9
1
P
r
o
b
a
b
i
l
i
t
y
-5 -4 -3 -2 -1 0 1 2 3 4 5
logit=ln(odds)
PIof0I
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 II
So modeIIing fhe Iog-odds is fhe some os modeIIing logit(p)
ond modeI from before couId be wriffen.
( )
0 1
logit p woman = +
( )
0 1
ln odds woman = +
ProbubiIities und odds
0oing from odds fo probobiIifies:
1
odds
p
odds
=
+
( )
( )
0 1
0 1
exp
1 exp
woman
p
woman
+
=
+ +
The modeI on probubiIity scuIe is :
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 IZ
Finding un odds rutio using Iogistic regresion
8ock fo finding fhe esfimofes.
In STATA:
cha sex|om1f]1
x1: 1og1f obese 1.sex
( ) ( )
0 1
logit ln p odds woman = = +
1.sex lsex1-2 {nafua11y coded lsex1 om1ffed}
lfeaf1on 0: 1og 11ke11hood = -1795.5437
lfeaf1on 3: 1og 11ke11hood = -1790.3703
Log1f esf1mafes Numbe of obs = 4690
Lk ch12{1} = 10.35
Pob > ch12 = 0.0013
Log 11ke11hood = -1790.3703 Pseudo k2 = 0.0029
-----------------------------------------------------------------------
obese | Coef. 5fd. L. z P>|z| |95x Conf. lnfeva1]
--------+-------------------------------------------------------------
lsex2 | .2674 .09972 3.19 0.001 .110631 .463073
cons | -2.06606 .070526 -29.59 0.000 -2.22435 -1.9437
-----------------------------------------------------------------------
Morten Frydenberg Thursday, 17 November 2005
Linear and Logistic Regression: Note 3 3
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 I3
Finding un odds rutio using Iogistic regresion
( ) ( )
0 1
logit ln p odds woman = = +
-----------------------------------------------------------------------
obese | Coef. 5fd. L. z P>|z| |95x Conf. lnfeva1]
--------+-------------------------------------------------------------
lsex2 | .2674 .09972 3.19 0.001 .110631 .463073
cons | -2.06606 .070526 -29.59 0.000 -2.22435 -1.9437
-----------------------------------------------------------------------
( ) 1
0
: fhe Iog odds for 4b yeor oId person.
1
: fhe Iog odds rutio, when comporing fwo persons who
differ I yeor in oge.
exp(
1
): fhe odds rutio, when comporing fwo persons who
differ I yeor in oge.
( ) ( ) ( )
0 1
logit ln 45 p odds age = = +
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 I7
The obesity und uge: version 1
Obfoining fhe esfimofes in STATA:
gene age45=age-45
1og1f obese age45
( ) ( ) ( )
0 1
logit ln 45 p odds age = = +
lfeaf1on 0: 1og 11ke11hood = -1795.5437
lfeaf1on 3: 1og 11ke11hood = -1772.339
Log1f esf1mafes Numbe of obs = 4690
Lk ch12{1} = 46.32
Pob > ch12 = 0.0000
Log 11ke11hood = -1772.339 Pseudo k2 = 0.0129
-----------------------------------------------------------------------
obese | Coef. 5fd. L. z P>|z| |95x Conf. lnfeva1]
------+----------------------------------------------------------------
age45 | .034023 .0051296 6.7 0.000 .024744 .044561
cons | -1.95922 .0463594 -42.4 0.000 -2.07675 -1.95059
-----------------------------------------------------------------------
Tesf for no ossociofion wifh age
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 I8
The obesity und uge: version 1
( ) ( ) ( )
0 1
logit ln 45 p odds age = = +
Esfimofe:
0
: 1.985 (2.0767;1.8951)
The odds for obesify for umong 4 yeur oId:
0.1373 (0.1253;0.1503)
The prevuIence of obesify for umong 4 yeur oId:
0.1207 (0.1114;0.1307)
Morten Frydenberg Thursday, 17 November 2005
Linear and Logistic Regression: Note 3 4
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 I9
The obesity und uge: version 1
( ) ( ) ( )
0 1
logit ln 45 p odds age = = +
Esfimofes:
1
: 0.0348 (0.0247;0.0449)
The odds rutio for being obese is 1.0354 (1.0251;1.0459)
when comporing fhe oId person fo fhe young person, if fhey
differ wifh one yeur in uge.
If fhey differ wifh 4, yeurs fhen fhe odds rofio is
1.0354
4.5
(1.0251
4.5
;1.0459
4.5
)= 1.17 (1.12;1.22)
In STATA:
1og1f obese age45,o ,o ,o ,o
wiII give you fhe OP for one yeor oge difference direcfIy.
-----------------------------------------------------------------------
obese | Odds kaf1o 5fd. L. z P>|z| |95x Conf. lnfeva1]
------+----------------------------------------------------------------
age45 | 1.035415 .0053113 6.7 0.000 1.025057 1.04577
-----------------------------------------------------------------------
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 Z0
( ) ( ) 1.98 l 6 0. n 45 0348 odds age = +
The obesity und uge: version 1
Esfimofed reIofionship:
-2.5
-2
-1.5
-1
lo
g
o
d
d
s
30 35 40 45 50 55 60 65 70
Age in Years
PIof0Z
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 ZI
.05
.1
.15
.2
.25
p
r
e
v
a
le
n
c
e
30 35 40 45 50 55 60 65 70
Age in Years
( ) ( )
( ) ( )
1.986 0.0348
1.986 0.034
e
8
xp 45
1 exp 45
age
prevalence
age
+
=
+ +
0
: fhe Iog odds in reference group~fhe youngesf.
i
: fhe Iog odds rutio, when comporing one person in oge
group i wifh one in fhe reference group~fhe youngesf.
cha agegp7|om1f]0
x1: 1og1f obese 1.agegp7 Nof a11 oufpuf Nof a11 oufpuf Nof a11 oufpuf Nof a11 oufpuf
-------------------------------------------------------------------------
obese | Coef. 5fd. L. z P>|z| |95x Conf. lnfeva1]
-------------+-----------------------------------------------------------
lagegp71 | .5433 .23915 2.29 0.022 .079603 1.017061
lagegp72 | .5160 .24193 2.14 0.032 .0444155 .99277
lagegp73 | .65766 .24179 2.72 0.007 .137537 1.13157
lagegp74 | .97900 .2339 4.11 0.000 .5117642 1.44625
lagegp75 | .96446 .2424 3.97 0.000 .44941 1.440436
lagegp76 | 1.41737 .2523 5.62 0.000 .922701 1.912032
cons | -2.66056 .21567 -12.34 0.000 -3.032 -2.23739
-------------------------------------------------------------------------
( )
0
6
1
ln
i
i
od a i ds ge
=
= +
x1: 1og1f obese 1.agegp7,o Nof a11 oufpuf Nof a11 oufpuf Nof a11 oufpuf Nof a11 oufpuf
-------------------------------------------------------------------------
obese |Odds kaf1o 5fd. L. z P>|z| |95x Conf. lnfeva1]
------------+------------------------------------------------------------
lagegp71 | 1.730365 .413201 2.29 0.022 1.0257 2.765057
lagegp72 | 1.679677 .4063746 2.14 0.032 1.045417 2.69747
lagegp73 | 1.930274 .4667295 2.72 0.007 1.20172 3.100522
lagegp74 | 2.66112 .6345592 4.11 0.000 1.66232 4.247159
lagegp75 | 2.62334 .637006 3.97 0.000 1.6296 4.22253
lagegp76 | 4.126254 1.041397 5.62 0.000 2.516095 6.76625
-------------------------------------------------------------------------
The OP befween fhe second oIdest ond fhe youngest:
2.62 (1.63;4.22)
8efween o 63 ond 322 percenf increuse in odds.
SmoII prevoIence: 63 ond 322 percenf increuse in prevoIence.
A sfofisficoI significonf difference in prevoIencel
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 Zo
The obesity und uge: version Z
The oufpuf confoins si tests of no difference in risk -
comporing eoch of fhe six groups wifh fhe reference (fhe
youngesf) group.
The commond: fesfpam lagegp"
wiII give o "WuId test" of no difference befween fhe seven
groups .
{ 1} lagegp71 = 0
{ 2} lagegp72 = 0
{ 3} lagegp73 = 0
{ 4} lagegp74 = 0
{ 5} lagegp75 = 0
{ 6} lagegp76 = 0
ch12{ 6} = 55.26
Pob > ch12 = 0.0000
HighIy significonf
differences
( )
0
6
1
ln
i
i
od a i ds ge
=
= +
0
: fhe Iog odds for 4b yeor oId mun.
1
: fhe Iog odds rutio, when comporing o womon fo o mon of
fhe some oge.
2
: fhe Iog odds rutio, when comporing fwo persons of fhe
some sex, where fhe firsf is one yeor oIder fhon fhe
ofher.
2
^age: fhe Iog odds rutio, when comporing fwo persons of
fhe some sex, where fhe firsf is age yeors oIder fhon
fhe ofher.
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 3Z
Obfoining fhe esfimofes in STATA:
x1:1og1f obese 1.sex age45
1.sex lsex1-2 {nafua11y coded lsex1 om1ffed}
lfeaf1on 0: 1og 11ke11hood = -1795.5437
lfeaf1on 3: 1og 11ke11hood = -1767.7019
Log1f esf1mafes Numbe of obs = 4690
Lk ch12{2} = 55.6
Pob > ch12 = 0.0000
Log 11ke11hood = -1767.7019 Pseudo k2 = 0.0155
----------------------------------------------------------------------
obese | Coef. 5fd. L. z P>|z| |95x Conf. lnfeva1]
--------+--------------------------------------------------------------
lsex2 | .2743977 .090335 3.04 0.002 .0973375 .45145
age45 | .0344723 .0051354 6.71 0.000 .0244072 .0445374
cons | -2.147056 .072191 -29.74 0.000 -2.2561 -2.00555
-----------------------------------------------------------------------
( ) ( )
0 1 2
ln 45 odds woman age = + +
Tests: Mo ossociofion wifh sex Mo ossociofion wifh age
PrevoIence is b07 omong 4b yeor oId men
The obesity se und uge : version 1
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 33
x1:1og1f obese 1.sex age45, o , o , o , o
obese | Odds kaf1o 5fd. L. z P>|z| |95x Conf. lnfeva1]
--------+--------------------------------------------------------------
lsex2 | 1.31573 .1161 3.04 0.002 1.102232 1.5706
age45 | 1.035073 .0053155 6.71 0.000 1.024707 1.045544
-----------------------------------------------------------------------
( ) ( )
0 1 2
ln 45 odds woman age = + +
OP for women compored fo men "odjusfed for oge" :
1.32 (1.10;1.57)
The unudgusted wos 1.33 (1.12;1.59).
OP for one yeur uge difference "odjusfed for sex" :
1.04 (1.02;1.05)
The unudgusted wos 1.04 (1.03;1.05)
Mof much hos chongedl
The obesity se und uge : version 1
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 34
-3
-2.5
-2
-1.5
-1
l
o
g
o
d
d
s
30 35 40 45 50 55 60 65 70
Age in Years
men
women
.05
.1
.15
.2
.25
p
r
e
v
a
l
e
n
c
e
30 35 40 45 50 55 60 65 70
Age in Years
men
women
The esfimofed reIofionship
The obesity se und uge : version 1
( ) ( )
0 1 2
ln 45 odds woman age = + +
PIof0o
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 3b
This is bosed on one ussumptions:
ProportionuIty on Iogit scuIe: The confribufion oge is
proportionuI fo if is voIue.
If con be wriffen in jusf one formuIo (wifh inferocfion):
The obesity se und uge: version Z
A more compIicofed modeI on the Iogit scuIe wouId be:
( ) ( )
( ) ( )
0 1
0 1
ln 45
ln 45
men:
women:
odds age
odds age
= +
= +
( ) ( ) ( )
0 1 2 3
ln 45 45 odds woman age woman age = + + +
0 0 1 2
0 0 1 1 2 3
= =
= + = +
Where:
Thof is:
1 0 0 3 1 1
= =
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 3o
The obesity se und uge: version Z
Esfimofes Iog odds:
( ) ( ) ( )
0 1 2 3
ln 45 45 odds woman age woman age = + + +
x1: 1og1f obese 1.sex"age45
-------------------------------------------------------------------------
obese | Coef. 5fd. L. z P>|z| |95x Conf. lnfeva1]
-------------+-----------------------------------------------------------
lsex2 | .116797 .095034 1.23 0.219 -.069467 .303061
age45 | -.005649 .00372 -0.6 0.497 -.022095 .010725
lsexXage4~2 | .06503 .01074 6.13 0.000 .044747 .065
cons |-2.03041 .070643 -29.49 0.000 -2.22149 -1.94453
-----------------------------------------------------------------------
Men
Difference befween women ond men
Esfimofes odds rofios:
obese | Odds kaf1o 5fd. L z P>|z| |95x Conf. lnfeva1]
-------------+-----------------------------------------------------------
lsex2 | 1.12391 .1060 1.23 0.219 .93290 1.353997
age45 | .994331 .0032 -0.6 0.497 .97147 1.01073
lsexXage4~2 | 1.06016 .01147 6.13 0.000 1.045763 1.090743
-------------------------------------------------------------------------
Morten Frydenberg Thursday, 17 November 2005
Linear and Logistic Regression: Note 3 7
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 37
-3
-2.5
-2
-1.5
-1
-.5
l
o
g
o
d
d
s
30 35 40 45 50 55 60 65 70
Age in Years
men
women
0
.1
.2
.3
.4
p
r
e
v
a
l
e
n
c
e
30 35 40 45 50 55 60 65 70
Age in Years
men
women
The esfimofed reIofionship
The obesity se und uge: version Z
( ) ( ) ( )
0 1 2 3
ln 45 45 odds woman age woman age = + + +
PIof07
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 38
The cuse controI eumpIe
fabodds cance age, o
------------------------------------------------------------------------
age | Odds kaf1o ch12 P>ch12 |95x Conf. lnfeva1]
------+-------------------------------------------------------------
25-34 | 1.000000 . . . .
35-44 | 2.74736 1.76 0.143 0.579474 13.025660
45-54 | 15.97604 24.1 0.0000 3.5609 71.123412
55-64 | 26.554217 41.14 0.0000 5.3471 120.50133
65-74 | 30.094340 43.99 0.0000 6.27745 144.24362
>=75 | 24.32251 29.40 0.0000 4.402342 134.30270
------------------------------------------------------------------------
fabodds cance age
------------------------------------------------------------------------
age | cases confo1s odds |95x Conf. lnfeva1]
------+-------------------------------------------------------------
25-34 | 2 116 0.01724 0.00426 0.06976
35-44 | 9 190 0.04737 0.02427 0.09244
45-54 | 46 167 0.27545 0.1975 0.3175
55-64 | 76 166 0.4573 0.3499 0.60061
65-74 | 55 106 0.517 0.37463 0.7164
>=75 | 13 31 0.41935 0.21944 0.013
----------------------------------------------------------------------
Few evenfs in reference group~ wide CI's
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 39
The cuse controI eumpIe
fabodds cance age, o base{3} base{3} base{3} base{3}
-------------------------------------------------------------------------
age | Odds kaf1o ch12 P>ch12 |95x Conf. lnfeva1]
------+---------------------------------------------------------------
25-34 | 0.062594 24.1 0.0000 0.014060 0.27660
35-44 | 0.17196 25.6 0.0000 0.079661 0.371235
45-54 | 1.000000 . . . .
55-64 | 1.662127 5.54 0.016 1.0344 2.54952
65-74 | 1.3716 7.32 0.006 1.1169 3.00209
>=75 | 1.522440 1.30 0.2546 0.734799 3.154365
-------------------------------------------------------------------------
fabodds cance age
------------------------------------------------------------------------
age | cases confo1s odds |95x Conf. lnfeva1]
------+-------------------------------------------------------------
25-34 | 2 116 0.01724 0.00426 0.06976
35-44 | 9 190 0.04737 0.02427 0.09244
45-54 | 46 167 0.27545 0.1975 0.3175
55-64 | 76 166 0.4573 0.3499 0.60061
65-74 | 55 106 0.517 0.37463 0.7164
>=75 | 13 31 0.41935 0.21944 0.013
----------------------------------------------------------------------
'Mony' evenfs in reference group~ norrow CI's
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 40
The cuse controI eumpIe
cha age |om1f]1 11 1
x1:1og1f cance 1.smoke 1.age,o
1.smoke lsmoke0-1 {nafua11y coded lsmoke0 om1ffed}
1.age lage1-6 {nafua11y coded lage1 om1ffed lage1 om1ffed lage1 om1ffed lage1 om1ffed}
lfeaf1on 0: 1og 11ke11hood = -496.5562
lfeaf1on 1: 1og 11ke11hood = -437.55133
lfeaf1on 2: 1og 11ke11hood = -429.6007
lfeaf1on 3: 1og 11ke11hood = -42.9933
lfeaf1on 4: 1og 11ke11hood = -42.94473
lfeaf1on 5: 1og 11ke11hood = -42.94432
lfeaf1on 6: 1og 11ke11hood = -42.94432
Log1f esf1mafes Numbe of obs = 977
Lk ch12{6} = 135.23
Pob > ch12 = 0.0000
Log 11ke11hood = -42.94432 Pseudo k2 = 0.1362
-------------------------------------------------------------------------
cance | Odds kaf1o 5fd. L. z P>|z| |95x Conf. lnfeva1]
-----------+------------------------------------------------------------
lsmoke1 | 2.350 .451303 4.45 0.000 1.613342 3.424472
lage2 | 2.32 2.2436 1.31 0.19 .5995103 13.379
lage3 | 16.5 12.1737 3.2 0.000 3.93226 69.91422
lage4 | 27.9 20.32374 4.57 0.000 6.691356 116.3235
lage5 | 34.79 25.59029 4.3 0.000 .231516 147.0764
lage6 | 27.71 21.9267 4.21 0.000 5.917 130.3509
-------------------------------------------------------------------------
"Mony" iferofions
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 4I
The cuse controI eumpIe
cha age |om1f]3 33 3
x1:1og1f cance 1.smoke 1.age,o
1.smoke lsmoke0-1 {nafua11y coded lsmoke0 om1ffed}
1.age lage1-6 {nafua11y coded lage3 om1ffed lage3 om1ffed lage3 om1ffed lage3 om1ffed}
lfeaf1on 0: 1og 11ke11hood = -496.5562
lfeaf1on 1: 1og 11ke11hood = -437.55133
lfeaf1on 2: 1og 11ke11hood = -429.6007
lfeaf1on 3: 1og 11ke11hood = -42.9933
lfeaf1on 4: 1og 11ke11hood = -42.94473
lfeaf1on 5: 1og 11ke11hood = -42.94432
Log1f esf1mafes Numbe of obs = 977
Lk ch12{6} = 135.23
Pob > ch12 = 0.0000
Log 11ke11hood = -42.94432 Pseudo k2 = 0.1362
-------------------------------------------------------------------------
cance | Odds kaf1o 5fd. L. z P>|z| |95x Conf. lnfeva1]
-----------+-------------------------------------------------------------
lsmoke1 | 2.3504 .451303 4.45 0.000 1.613343 3.424469
lage1 | .0603 .0442767 -3.3 0.000 .0143051 .254271
lage2 | .170 .0652397 -4.63 0.000 .007999 .3610977
lage4 | 1.626 .37011 2.37 0.01 1.093327 2.5953
lage5 | 2.094 .504262 3.0 0.002 1.31025 3.36091
lage6 | 1.6713 .6277714 1.37 0.171 .005146 3.49699
-------------------------------------------------------------------------
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 4Z
Things to Iook out for in the output
In generoI:
Wide CI's or Iurge stundurd errors in o Iogisfic regression
indicofes fhof of Ieosf one group hos few eventsl
Muny iterutions in o Iogisfic regression indicofes fhof some
of fhe purumeters ure hurd to estimute.
Morten Frydenberg Thursday, 17 November 2005
Linear and Logistic Regression: Note 3 8
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 43
Compuring two modeIs: the IikeIihood rutio test
EorIier we sow how one couId use o WuId fo fesf if severoI
coefficienfs couId be ;ero .
An ofher woy fo "compore" fwo modeIs is by o IikeIihood
rutio test.
In fhe Iogisfic regression oufpuf from STATA we find o
IikeIihood rofio fesf comporing fhe fitted modeI wifh fhe
modeI wifh no dependenf voriobIes fhe constunt odds modeI:
Lk ch12{6} = 135.23
Pob > ch12 = 0.0000
The concIusion: The modeI wifh smoker ond oge is stutisticuI
significunt beffer, fhon o modeI ossuming fhe some odds, risk
for everybody.
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 44
Compuring two modeIs: the IikeIihood rutio test
One con compore fwo modeIs wifh o IikeIihood rofio fesf if:
The fwo modeIs ore fiffed on exocfIy fhe sume dutu set.
The fwo modeIs ore nested, i.e. one con go from one modeI
fo fhe ofher by seffing some coefficienfs fo ;ero.
In STATA fhe fesf is found in fhis woy:
x1:1og1f cance 1.smoke 1.age
esf1mafes sfoe mode11 esf1mafes sfoe mode11 esf1mafes sfoe mode11 esf1mafes sfoe mode11
x1:1og1f cance 1.smoke
esf1mafes sfoe mode12 esf1mafes sfoe mode12 esf1mafes sfoe mode12 esf1mafes sfoe mode12
1fesf 1fesf 1fesf 1fesf mode11 mode12 mode11 mode12 mode11 mode12 mode11 mode12
Oufpuf:
11ke11hood-af1o fesf Lk ch12{5} = 120.2
{Assumpf1on: mode12 nesfed 1n mode11} Pob > ch12 = 0.0000
i.oge odds stutisticuI significunt informofion fo fhe modeI
onIy confoining smokingl
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 4b
This is bosed on fhree ossumpfions:
u, Additivity on Iog-odds scuIe: The confribufion from eoch
of fhe independenf voriobIes ore udded.
b,ProportionuIty: The confribufion from independenf voriobIes
is proportionuI fo if is voIue (wifh o focfor )
c, No effectmodificution: The confribufion from one
independenf voriobIes is the sume whofever fhe voIues ore
for fhe ofher.
Mofe u, con oIso be formuIofe os muItipIicutivity on odds scuIe
Logistic regression modeI in generuI
( )
0
1
ln
k
p
p
p
odds x
=
= +
1 2
0 1 2
k
x x
k
x
odds OR OR od O ds R =
Morfen Frydenberg Lineor ond Logisfic regression - Mofe 3 4o
If one consider fwo persons who differ wifh
x
1
in x
1
, x
2
in x
2
, ond x
k
in x
k
fhen difference in fhe Iog odds is :
1
p
k
p
p
x
=
1 2
1 2
k
x x x
k
OR OR OR OR
=
Note fhe modeI mighf oIso be formuIofed:
( ) [ ] ( )
0
1
0
1
exp
ln ln Pr 1
1 exp
p
p p
k
p
p
k
p
x
p Y
x
=
=
+
= = =
+ +