Classification Problems: - Outcome Is Categorical - E.G. Customer Responds or Not
Classification Problems: - Outcome Is Categorical - E.G. Customer Responds or Not
• Outcome is categorical
• e.g. Customer responds or not
• Defaults or not
• Churns or Not churns
• Binary classification tasks
𝑃 𝑌=1
• 𝑙𝑛 = 𝑍 = 𝛽0 + 𝛽1 𝑋1 + 𝛽2 𝑋2 +……. +𝛽𝑚 𝑋𝑚
1−𝑃 𝑌=1
0.8
0.6
0.4
0.2
0
0 5 10 15 20 25 30 35
INCOME ($000) LINE FIT PLOT
Purchase Predicted Purchase Linear (Predicted Purchase)
1.2
0.8
0.6
PURCHASE
0.4
0.2
0
0 5 10 15 20 25 30 35
-0.2
-0.4
-0.6
INCOME ($000)
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
-30 -20 -10 0 10 20 30 40
A model that fits better-Logit Function
Probability
Of Event
7
Estimation-Maximum Likelihood Function
• Iterative
• Finds the value of coefficients (βo,β1) such that the predicted
probabilities are as close to the observed probabilities as
possible.
8
To Interpret ! - We work backwards
• Model estimates log(Odds)
𝑃 𝑌=1
• 𝑙𝑛 = 𝑍 = 𝛽0 + 𝛽1 𝑋1 + 𝛽2 𝑋2 +……. +𝛽𝑚 𝑋𝑚
1−𝑃 𝑌=1
• => Get the antilog to derive the Odds
𝑃 𝑌=1
• = exp 𝑍 = exp( 𝛽0 + 𝛽1 𝑋1 + 𝛽2 𝑋2 +……. +𝛽𝑚 𝑋𝑚 )
1−𝑃 𝑌=1