Companion files

Machine Learning for Finance

A Practitioner’s Guide to Building, Validating and Defending a Credit Model That Decides

These are the companion files of Machine Learning for Finance by Julian R. Sterling.The book on Amazon →

The four Excel workbooks that go with the book, corrected where they were wrong. Every figure the book prints is reproduced in them by a live formula rather than a typed constant, the score is rebuilt row by row from the points table, and each workbook ends with a Checks sheet setting the printed figure beside the computed one: 156 controls in all, every one green. Around them: the same four models with the inputs emptied, thirteen working documents to print, forty questions that mark themselves, and three cases the book names and never takes to a number. Nothing is locked, protected or watermarked.

Free to download. No sign-up, no email address, nothing to fill in.

Everything on this page, in one archive

Download the ZIP2,097 KB

Eleven workbooks, the question book, the printable documents and the read-me. Each group below can also be downloaded on its own. Last revised 24 September 2026.

Get an email if these files are corrected

Optional. When a workbook on this page is corrected or a new worked case goes up, readers on the list get one email, plus a short note when a new book comes out. The downloads do not need it.

Join the reader list

Run by MailerLite, off this site. How your address is used.

The four workbooks

These carry the book’s own figures and its 8,400 applications, so that every number it prints can be traced to a live formula, and each closes on its checks sheet. Download these four1,196 KB

The same models, for your own book

The four workbooks with the 15 inputs of their shared Inputs sheet emptied. The checks sheets count what is still missing and test what holds for any inputs.

The documents the chapters describe

Thirteen pages to print and use. A4, with margins wide enough for US Letter.

Forty questions, marked by the file

A workbook that marks itself. Answer in the yellow cells; the marking fills in as you go.

Three cases the book does not work

New material, not a restatement. Three situations the chapters name and never take to a number. Each case is one workbook: the note is the first sheet, the model is the rest, and a checks sheet closes it. Type your own figures in and every finding recomputes.

Conventions used throughout

Blue texta hardcoded input — you may edit these
Yellow fillan input cell; everything else on the sheet is a formula
Black texta formula — do not overtype these
Checks sheetthe printed figure beside the computed one, with a PASS or a FAIL; in the blank set and the cases, each control states its own verdict and the file ends ALL OK
ADDEDa figure the book does not give, used in the cases and marked wherever it appears

Why the checks matter more than the models

A workbook that agrees with a book proves nothing on its own — the author wrote both. What the Checks sheets do is different: they force the model to reproduce, from a formula, a number that was printed before the model existed.

Two quantities are carried as data rather than recomputed, and both are flagged as inputs on the page itself. The eight fitted regression coefficients, because a logistic regression cannot be fitted in a spreadsheet. And the boosted-tree score on every row, because an ensemble of a hundred and eighty trees cannot be rebuilt in one either. Everything downstream of them — their area under the curve, their bands, their profit at every approval rate — is computed by the same live formulas as the card's, so the comparison is like for like.

Where two correct computations disagree, both are printed. The rank-sliced deciles put exactly 600 cases in every band; the fixed-boundary bands, which calibration and the stability index require, put 600, 599, 601, 600, 600, 598, 602, 600, 600 and 600, because scores repeat and ties have to fall on one side. Three non-bad cases move, one at the second boundary and two at the sixth (revised: the page said two). Neither table is wrong and the gap is not smoothed away.

Go beyond the companion files

Machine Learning for Finance develops the complete framework behind these models, with the assumptions, trade-offs and worked examples tied together.

View the book on Amazon Read the related analysis

Opening the files

The workbooks open in Microsoft Excel, LibreOffice Calc, Google Sheets and Numbers; the PDF prints on A4 or US Letter. They use no macros and no add-ins, so nothing needs to be enabled or trusted. If your spreadsheet asks to update links on opening, decline — there are none.

What changed, and when

24 Sep 2026The four workbooks corrected, 156 checks. The intercept shift of 0.573620, 16.55 points, is now solved on the Calibration sheet rather than only described; the fixed boundaries move three tied cases, not two; from 550 to 600 each default avoided costs 19.95 good loans against a break-even of 11.1408, not “nineteen and a half” against 12.1408; the accepted and declined split is the recorded decision, not rebuilt from the rules; the five areas under the curve span 0.2047, not 0.2141. Added: a blank set, thirteen working documents, forty questions that mark themselves, and three cases.

Articles on this book

Also by Julian R. Sterling

The other books with companion files. The full list of titles is on the author page.

If this book helped — or didn’t — a few lines on Amazon are worth more than they look: they are what the next reader goes on. Write a review. The workbook stays free either way.