Session6 Choice
Session6 Choice
• Homoscedasticity violated
• Negative predictions
• Predictions >1
• Bad fit
• This function is called the “logit function” and comes from utility theory
Raghunath Rao Marketing Research
5 & Methods @ BITSoM
Logit function
1
p(response)
exp 𝑎𝑎 + 𝑏𝑏 Income
𝑝𝑝 𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟𝑟 =
1 + exp 𝑎𝑎 + 𝑏𝑏 Income
0
X (income)
-0.1
-0.2
Standardized coefficients
-0.3
-0.4
-0.5
length
-0.6
-0.7
Variable
%
from \ to 0 1 Total correct
0 8 169 177 4.52%
1 5 840 845 99.41%
Total 13 1009 1022 82.97%
0.2
0.4
0.6
0.8
1.2
-0.8
-0.6
-0.4
-0.2
0
1
Male
Female
Home
Apt
Pregnancy Test
Birth Control
Feminine Hygiene
Folic Acid
Prenatal Vitamins
Body Pillow
PREGNANT / Standardized coefficients
Ginger Ale
Raghunath Rao Marketing Research & Methods @ BITSoM
Sea Bands
Standardized Effects
Cigarettes
Smoking Cessation
Wine
Maternity Clothes
19
Classification Matrix
True response
No Yes
Hit Rate=(TN+TP)/(TN+FN+FP+TP)
No Yes
No TN FN
Predicted increase x%
response
Yes FP TP
• AUC (Area Under the Curve) is the best way to summarize its
performance in a single number.
• ROC plots the True Positive Rate on the y-axis versus the False Positive Rate on the x-
axis.
– It calculates the TPR and the FPR for each classification “threshold”.
– The point above is critical. A standard misclassification matrix shows you errors in
classification only for a single threshold.
– A low threshold means you will increase your TPR, but also increase your FPR. A high
threshold means you reduce your TPR, but also reduce your FPR.
– Setting the threshold is a managerial decision, based on expected costs.
• Example 1: You are deciding whether to give a loan to an applicant or not. It is important that you
not give it to someone who is likely to default – you want to minimise the FPR. A high threshold
will do that.
• Example 2: You have an automatic trigger to flag credit card fraud. Here, it is vital that you
maximise the TPR. A low threshold will do that.
Raghunath Rao Marketing Research & Methods @ BITSoM 26
Area Under the Curve (AUC)
• Identify DV
• Identify IVs
• Maximize profits?
Raghunath Rao Marketing Research & Methods @ BITSoM 38
Expected profits