UThe University of Utah · David Eccles School of BusinessACCTG 6155
Week 11, Supervised Learning: Classification
Last week you predicted how many days each Summit Gear account takes to pay. This week asks a yes or no question about the same 2,200 accounts: will this account default? A logistic regression gives each account a probability of default, and you choose the cutoff that turns those probabilities into a credit review list, using what each kind of mistake costs. Nov 9 to 15.
DueSunday, November 15, 11:59 PM MTLab 11 and Homework 11. Do the lab first.
Live session, optional and recordedMon, Nov 93:40 to 5:00 PM MT. Both sections are welcome. The Wednesday, Nov 11 session is cancelled.
The week at a glance
438 of 2,200
accounts defaulted, a base rate of 19.9%. Each square is about 22 accounts. A model that says nobody defaults is right about 80% of the time and catches none of them.
A probability
A logistic regression turns an account's columns into a probability of default, always between 0 and 1.
A cutoff
Accounts at or above the cutoff go on the credit review list. Everyone else's order ships on terms.
Right and wrong calls
On accounts the model has not seen, count the defaults it caught, the false alarms, the misses, and the accounts it rightly cleared.
What the mistakes cost
A review costs about $400 and a missed default about $2,000, so the cheapest cutoff usually sits well below 0.5, near the break-even probability of 0.20.
This week
Work through the week in this order: the videos, the deck, the trainers, the lab, then the homework.
Videos for this weekIn Canvas
Mac Gaulin's classification module, on the Videos page in the Week 11 module. Three are encouraged, about 53 minutes.
Why last week's regression struggles with a yes or no outcome, then probability and odds, fitting and reading a logistic regression, cutoffs, the confusion matrix, precision and recall, and what each mistake costs. The Ask AI tutor is built in.
Flag accounts for credit review at Summit Gear. One notebook, three exercises: specify and fit, turn probabilities into calls on accounts the model has not seen, and choose a cutoff on the training accounts from what the mistakes cost, then see what it costs on the test accounts.
Open it, then File, then Save a copy in Drive, and work in your copy. Run every cell top to bottom and upload it as <uID>_lab_11.ipynb.
Homework 11, Reading a Classifier Someone Else FitIn Canvas
Fourteen multiple-choice questions on a logistic output, a confusion matrix, and a table of cutoffs with what each one costs. Every table you need is inside the quiz. One attempt.
Probability, odds and log-odds, the S-curve, reading an odds ratio, one account's probability, and a first cutoff. Goes with slides 6 to 12 and Lab 11 Exercise 1.
Slide the cutoff and watch the 2×2, precision, recall, total cost and the ROC point move. Guess where the cost curve bottoms out before it appears. Goes with slides 13 to 21 and Lab 11 Exercises 2 and 3.
From Week 10. How a category column like segment enters a model, and why one category becomes the base case. It works the same way in a logistic regression. Not graded.
The same 2,200 business customers as last week, one row each. This week's target is defaulted. The notebook loads it for you; this link is for a spreadsheet or your own code.