Multinomial Logistic Regression
Multinomial Logistic Regression
Dinesh Kumar
Multiclass Classification
• Outcome of a sporting event – Win, Draw or Loss
𝜋𝑖
ln( ) = 𝛽0𝑖 + 𝛽1𝑖 𝑥1 + 𝛽2𝑖 𝑥2 +. . . +𝛽𝑘𝑖 𝑥𝑘
𝜋0
Multinomial LR equations with three
categories
P(Y = 1)
1 ( x) = ln = Z1 = 0 + 1 X 1
P(Y = 0)
P(Y = 2)
2 ( x) = ln = Z 2 = 0 + 1 X 1
P(Y = 0)
Probability Prediction Equations
1
P(Y = 0) = 0 + 1 X1 0 +1 X1
1+ e +e
0 + 1 X1
e
P(Y = 1) = 0 + 1 X1 0 +1 X1
1+ e +e
0 +1 X1
e
P(Y = 2) = 0 + 1 X1 0 +1 X1
1+ e +e
Interpretation of Beta
• Exp(Beta) is interpreted as the change in odds ratio when the
value of a feature is changed.
Model Validation and Selection
• Classification matrix
Akaike Information Criteria (AIC)
• Akaike information criteria (AIC) is used in model selection.
The smaller AIC value is better.
1
P(Y1 = 0) =
ln( 1 ) = Z1 = 0 + 1 HTGD = 0.20 + 0.799 HTGD 1 + e Z1 + e Z2
0
e Z1
P(Y1 = 1) =
ln( 2 ) = Z 2 = 0 + 1 HTGD = 0.470 + 2.206 HTGD 1 + e Z1 + e Z2
0
e Z2
P(Y1 = 2) =
1 + e Z1 + e Z2
Classification Table
Model with FGS (First Goal Scored as
Feature)
References
• D W Hosmer and S Lemeshow, “Applied Logistic Regression”,
Wiley Interscinece, 2000.