Slides 8 Iu
Slides 8 Iu
▪ Other examples:
▪ choice of car (Y = Toyota, Honda, Suzuki, Mazda, KIA…)
▪ choice of specialization at university
▪ choice of occupation
𝑌𝑖 = 1,2,3, . . . , 𝐽
▪ Probability of occurrence of each alternative
1 probability = 𝑝i1
2 probability = 𝑝i2
𝑌𝑖 = 3 probability = 𝑝i3
... ...
𝐽 probability = 𝑝iJ
𝑝i1
𝑌𝑖 = 1 ℎi1 = log
𝑝𝑖𝐽
𝑝i2
𝑌𝑖 = 2 ℎi2 = log
THE LOGIT 𝑝𝑖𝐽
(LOG-ODDS RATIO) 𝑌𝑖 = 3 ℎi3 = log
𝑝i3
𝑝𝑖𝐽
... ...
𝑌𝑖 = 𝐽 ℎ𝑖𝐽 = 0
MODELLING THE LOGITS
▪ Given the choice variable with 𝐽 outcomes: 𝑌 = 1,2, … , 𝐽
▪ The corresponding probabilities of choosing these outcomes are 𝑝1 ,..., 𝑝𝐽
▪ Let’s choose 𝐽 as the base outcome (category)
▪ The logits (log-odd ratios)
𝑝1
log = 𝛽1 𝑋
𝑝𝐽
𝑝2
For J alternatives,
log = 𝛽2 𝑋
𝑝𝐽 there will be (J-1)
… set of estimated
𝑝𝐽 coefficients beta
log = 0
𝑝𝐽
THE PROBABILITIES
𝑝𝑗
▪ In general log = 𝛽𝑗 𝑋
𝑝𝐽
𝑝𝐽 = 1 − 𝑝𝑗
1
𝑝𝐽 = 1 − 𝑝𝐽 ∙ 𝑒 𝛽𝑗 𝑋
1
THE PROBABILITIES
▪ With some transformation we get
1
𝑝𝐽 = 𝐽−1 𝛽𝑗 𝑋
1 + σ1 𝑒
▪ Now using 𝑝𝑗 = 𝑝𝐽 ∙ 𝑒 𝛽𝑗 𝑋 again to recover all the probabilities
𝑒 𝛽𝑗 𝑋
𝑝𝑗 = 𝐽−1 𝛽𝑗 𝑋
1 + σ1 𝑒
THE PROBABILITIES
𝑒 𝑋𝑖𝛽1
1 probability = 𝑝i1 =
σ𝐽𝑘=1 𝑒 𝑋𝑖𝛽𝑘
𝑒 𝑋𝑖 𝛽2
2 probability = 𝑝i2 =
σ𝐽𝑘=1 𝑒 𝑋𝑖𝛽𝑘
𝑌𝑖 =
𝑒 𝑋𝑖 𝛽3
3 probability = 𝑝i3 =
σ𝐽𝑘=1 𝑒 𝑋𝑖𝛽𝑘
... ...
𝑒 𝑋𝑖𝛽𝐽
𝐽 probability = 𝑝iJ =
σ𝐽𝑘=1 𝑒 𝑋𝑖 𝛽𝑘
MAXIMUM LIKELIHOOD ESTIMATION
▪ MNL model is estimated by maximizing the log-likelihood function
𝑁 𝐽
0 if j is NOT chosen
▪ 𝑦𝑖𝑗 =
1 if j is chosen
EXAMPLE DATA
Vhlss 2012
▪ Dependent variable: choice of health care provider
▪ 1 = Commune health center
▪ 2 = Public hospital
▪ 3 = Private hospital
▪ 4 = Lang y
▪ 5 = Individual health care provider