Specialty Digest

Global English editionLearners’ Study Dashboard — in development
The Knowledge Library for All

Flashcards: open the module flashcards (end-of-module review with workplace questions).

Online Courses / University Track / Learning from Data

Module 7 · Lab

Lab: audit a lending model

Compare error rates between groups, find a leaked feature, trigger a drift alert and draft a short model card.

  • 50 minutes
  • 16 marks
  • Self-marked

50 minutes. Self-marked against the rubric. 16 marks. In the full course this counts toward the labs and cases share (15% of the course grade). Write your answers in the boxes, then open the model answer and tick each mark you earned honestly. Nothing is sent or stored.

Scenario (invented)

A lender (invented) uses a model to decide which applicants to refuse. The model was tested on applicants who in fact turned out to be creditworthy, and the table shows how many were wrongly refused.

GroupCreditworthy applicantsWrongly refused
X40040
Y10030

The model uses five features: income, existing debt, years in current job, a flag “account closed for non-payment” and postcode. Its monthly accuracy after launch was 91%, 90%, 88%, 83% and 79%. The lender's alert level is 85%.

Tasks

Task 1 (4 marks)

Find the wrongful-refusal rate for each group and for everyone, and comment.

Private: nothing you type here is sent or stored.

Task 2 (5 marks)

Name the feature most likely to be a leak and explain why. Name another that may be a proxy for something else and say what you would check.

Private: nothing you type here is sent or stored.

Task 3 (3 marks)

In which month does the alert fire, and what should the lender do?

Private: nothing you type here is sent or stored.

Task 4 (4 marks)

Write four lines of a model card for this model: purpose, data, performance by group, and limits or owner.

Private: nothing you type here is sent or stored.

Rubric and model answer

Task 1: group error rates (4 marks)

Model: X 40 ÷ 400 = 10%; Y 30 ÷ 100 = 30%; overall 70 ÷ 500 = 14%. Group Y is wrongly refused three times as often, a gap the overall 14% hides.

Task 2: leakage (5 marks)

Model: “account closed for non-payment” is recorded after default, so it is not known at the moment of the decision and is a leak. Postcode may act as a proxy for a group; compare refusal rates by area and group before keeping it.

Task 3: drift (3 marks)

Model: month 4, when accuracy 83% falls below 85%. Investigate, then retrain, repair or retire the model; month 5 at 79% confirms the trend.

Task 4: model card (4 marks)

Model: purpose, support human review of refusals and not refuse automatically; data, applications with outcomes and source dates; performance, wrongful refusal 10% for X and 30% for Y; limits, leak to remove, postcode to check, monthly accuracy alert at 85% with a named owner.

Marks so far: 0 of 16

Review with flashcards

Test yourself on this module with workplace flashcards and detailed answers.

Open the module flashcards