Chapter 5
Chapter 5
Tim Ederer
Mini 2, 2024
Tepper Business School
Introduction
1 / 21
Binary Outcomes
Linear Probability Model
2 / 21
Latent Outcomes
Examples
• Choice: yi∗ could be the utility/valuation of a specific product
• Credit default: yi∗ could be the solvency of a company
• yi∗ is normalized such that you buy the product or you default when yi∗ ≥ 0
3 / 21
Adapting the Linear Regression Model
yi∗ = xi′ β + εi
4 / 21
Assumptions
5 / 21
Probit
6 / 21
Logit
exp{xi′ β} 1
P(yi = 1|xi ) = and P(yi = 0|xi ) =
1 + exp{xi′ β} 1 + exp{xi′ β}
7 / 21
What About Inference?
8 / 21
Maximum Likelihood Estimation
Likelihood
Qn
Likelihood of the sample: i=1 l(β; yi , xi )
• How likely it is given a value of β that I observe (yi , xi ) for all i = 1, ..., n?
• If this value is small, the model fits poorly =⇒ we should change β!
9 / 21
Maximum Likelihood Estimator
MLE is the value of β that maximizes the log of the likelihood of the sample
• We take the log for mathematical and computational tractability
Pn
Log-Likelihood of the sample: L(β; y , X ) = i=1 log l(β; yi , xi )
• Allows to transform product into a sum =⇒ easier to compute in R
10 / 21
Examples: Logit and Probit
11 / 21
Illustration in R: MLE with Probit Model
12 / 21
Properties of MLE
13 / 21
Recap
14 / 21
Categorical Outcomes
Categorical Outcomes
15 / 21
Discrete Choice Model
Goal: study the relationship between consumer choice yi and (z1 , z2 , ..., zJ )
• zj : product j’s characteristics (i.e. price, quality)
16 / 21
Latent Utility Model
Define yi as a function of uij the utility consumer i gets from buying product j
1
if ui1 ≥ uij for all j
2 if ui2 ≥ uij for all j
yi = ..
.
J if uiJ ≥ uij for all j
17 / 21
Conditional Logit
Assumptions needed
• As always we need EXO and RANK
• Fix distribution of ε: εij ∼ Gumbel(0, 1)
exp{zj′ β}
P(yi = j|z1 , ..., zJ ) = PJ
′
k=1 exp{zk β}
18 / 21
Estimation of Conditional Logit Model
Likelihood of individual i
J
!1{yi =j}
Y exp{zj′ β}
l(β; yi , z1 , ..., zJ ) = PJ
j=1 k=1 exp{zk′ β}
19 / 21
Summary
20 / 21
Thank you and good luck!
21 / 21