Recorded presentation with the live scoring moment (about 11 minutes)

Video Download

The recorded presentation runs 10 minutes 38 seconds over the presentation slides. It opens with the decision and the money and follows the course's eight steps. In the live scoring moment it runs process 07 in AI Studio on screen, where the stored model, the one deployed, scores the applicant at 0.761 and the application is rejected, and it closes with the limits and the questions a reviewer asks. The narration is a synthetic voice reading the presentation script, and the screen capture is a real AI Studio run recorded on 2026-10-19.

Transcript

Every working day,
a bank's credit officers accept
or reject loan applications by judgment.
On the book's prices,
a model that ranks the
applicants is planned
at 14,250 Deutsche Marks
per 1,000 applicants,
from AI Studio's cross validation.
On held out data the Python fit earns
14,500 and AI Studio's stored model
28,000, where accepting
everyone loses 80,000.
This is German Credit,
a worked final project for
Machine Learning for Business Analytics.
It is an example from the book, case 23.2,
extended to everything the
final project asks for,
and it follows the course's
eight steps with the real
numbers from the package.
Step one is the business problem.
For every application,
a credit officer decides whether
to accept or reject the loan.
Today that decision is made by judgment,
from the application form.
The book puts a price on the decision.
A loan to a good credit
earns 100 Deutsche Marks,
and a loan to a bad credit loses 500.
A wrong accept costs five times
what a right accept earns.
The charter fixed two rules
before any model was scored.
The cutoff comes from
the book's cost table.
A model that is harder to explain than
a logistic equation must earn at least
5,000 Marks per 1,000 applicants more
in cross validation to replace it,
because a declined applicant is owed
the principal reasons for the decision.
The charter also named three risks.
The labels are the bank's past judgments,
the file meets the course's
minimum of 1,000 records exactly,
and four of its attributes cannot
lawfully be a basis for credit.
Steps two to four cover the data.
The book's file holds
1,000 past applicants and 30 attributes,
with 700 good credits and 300 bad.
The audit found no missing values.
One finding needs explaining.
Applicants with a critical credit history
have the highest good credit rate,
because the bank was already lending
to those accounts selectively.
Four attributes were set aside.
Sex, marital status and foreign worker
status cannot be used as a basis
for credit, so they leave the model
and are kept only for the fairness check.
The partition is 800 records for modeling,
with five fold cross validation,
and 200 held out for the final evaluation.
The leakage audit checked four
threats before any model was scored.
No attribute is recorded
after the decision.
The observation number
is a row identifier,
and it carries no signal about the
outcome, but it is set aside all the same.
Normalization and the naive Bayes bins
are fitted inside each training fold,
so no preprocessing sees
the records it later scores.
The cutoff comes from the cost table,
the settings were chosen by cross
validation, and the holdout was scored
once, after the choice.
Steps five and six are
the model tournament.
A baseline and seven model families
were run on the same five folds.
The entrants are a naive baseline,
logistic regression, k nearest neighbors,
naive Bayes, a decision tree,
a random forest, gradient boosted trees,
and the required neural network.
Each setting was swept by
cross validation in Python.
AI Studio's learners differ from Python's,
so all seven were swept
again in AI Studio,
and each RapidMiner process
holds the setting AI Studio kept.
Section 8 of the report
lists the differences.
The neural network finished behind
the random forest and naive Bayes,
tied with logistic
regression at a lower AUC,
and finished ahead of the other three.
With 800 records it does not
improve on the logistic equation.
All seven families were tuned,
and the choices are written down.
Logistic regression kept a
penalty of C equal to 0.01,
k nearest neighbors kept 61 neighbors,
and the tree kept a depth of 3.
The network kept one hidden layer of
16 units with a learning rate of 0.01.
At 0.001 most networks stopped early
and accepted almost nobody.
In AI Studio the network
was swept over 16 settings,
and 50 cycles at 0.001 were kept.
The forest was swept over 24 settings,
naive Bayes over 10,
k nearest neighbors over 6, the tree
over 7 depths and boosting over 18 pairs.
In AI Studio the network leads the
logistic regression by 2,375 Marks,
under the 5,000 Mark price
of a readable equation,
so logistic regression
deploys in both tools.
Step seven is evaluation.
The cost table assigns a value to
each cell of the confusion matrix,
and it puts the cutoff at 500 over 600,
which is 0.833.
An applicant is accepted when
the probability of good credit
is 0.833 or higher.
At 0.5 the logistic regression
accepts 875 per 1,000 and
loses 40,000 Deutsche Marks.
In Deutsche Marks, on the holdout,
the chosen model in the Python fit
earns 14,500 Marks per 1,000 applicants.
Accepting everyone loses 80,000.
The model accepts
26.5 percent of applicants,
and 92 percent of those are good credits.
The random forest led cross
validation by 1,125 Marks,
but the charter had set the value of
a readable equation at 5,000 Marks,
so logistic regression
is the model deployed.
A declined applicant must be given
the reasons for the decision,
and the logistic equation provides them,
one term per attribute.
The profit lift chart answers
the book's question of how
many applicants to accept.
Sorted by the model's score,
cumulative profit on the holdout
peaks after the third decile,
at 3,600 Marks on 200 applicants,
and it turns negative below the sixth.
The recommendation holds unless a bad
loan costs less than about 1.6 or more
than about 12 times
what a good loan earns.
Below that range,
lending to everyone pays more.
Above it, lending to no one pays more.
The book's five to one
sits inside the range.
Step eight is deployment,
with the live scoring moment.
The model deployed is the logistic
regression that AI Studio stores
in process 06, and process 07 scores
each new applicant with it.
A 35 year old skilled employee applies
for 3,000 Marks over 24 months,
with a small checking balance.
The Python fit scores the applicant
at 0.724, which is below the cutoff,
so the application is rejected
and goes to the credit officer's queue.
The same applicant with no checking
account, no savings account,
a critical history and a 12 month
term scores 0.941 in the Python
fit, and is accepted.
Here is the same applicant,
35 years old and asking for 3,000 Marks,
scored live in AI Studio.
Process 07 retrieves the stored logistic
model and the applicant's record,
scores the record,
and applies the cutoff of 0.833.
The warning signs are design-time checks,
and the run is clean.
The run takes about a second.
AI Studio returns a confidence
of 0.761 for good credit,
and the prediction is bad,
so the application is rejected
and goes to the credit officer's queue.
AI Studio's logistic regression
carries its own penalty,
so its score differs from
the Python figure of 0.724.
Both scores are below the cutoff,
and both reject.
In business terms,
at 0.761 the expected gain on the loan
is 76.1 Marks and the expected loss
is 119.5, so the loan is
worth about -43 Marks,
and declining it protects the bank.
The monitoring plan has five parts.
The metric watched is the bad
credit rate among accepted
loans, quarter by quarter.
The drift signal is the mix of
new applications moving away
from the modeling records.
The bank accepts a random share of
applications scored just below the cutoff.
If those loans repay above break even
after a year, the cutoff moves to 0.75.
The model is retrained yearly,
or at once if the bad rate
goes above 15 percent.
The owner is the head
of consumer credit risk.
The responsible ML assessment
asks who the model could harm.
The out of fold decisions were compared
by age band, by foreign worker status,
and by the sex and marital status flags.
The model sees age but none of the flags.
Acceptance rises with age,
from 9 percent under 25 to
43 percent at 60 and over,
and so does the good credit rate,
so older applicants are not scored down.
Leaving the protected
attributes out costs the bank
1,625 Marks per 1,000 applicants
in cross validation, which is about
the losses on three bad loans,
at 500 Marks each, per 1,000 applicants.
Every declined applicant receives the
principal reasons from the equation,
one term per attribute.
Because only accepted
loans produce outcomes,
the bank should accept a small random
share of applications scored just below
the cutoff, so the model
keeps seeing how they repay.
The limits are stated in the report.
1,000 records is the course's minimum,
so a handful of loans moves the
holdout profit by thousands of Marks.
The data describe one bank's
applicants three decades ago,
so the model would be rebuilt on
the bank's current book before use.
A reviewer asks three
questions of this project.
The first is why the
forest does not deploy,
and the answer is that its lead is
under the price of a readable equation.
The second is why the cutoff does not
move down to the profit peak at 0.75,
and the answer is that one loan
changing sides would close that gap,
so the cutoff stays where the cost
table puts it and the monitoring
plan watches the band.
The third is why the two
tools give different scores,
and the answer is that
each fits its own penalty,
while both reject this applicant
and both choose logistic regression.

Licensed CC BY-NC-ND 4.0: share with credit, no commercial use, no changes. The Project Shelf Team, Fall 2026.

Case 23.2, German Credit, from Shmueli, Bruce, Deokar and Patel, Machine Learning for Business Analytics (RapidMiner edition, Wiley, 2023), solved by the course instructor as a worked example.