liveBook · Manning

Scorecard

As explained in Financial AI in Practice

A credit-scoring model that assigns point contributions to applicant characteristics to produce a credit score.

A credit scorecard converts applicant characteristics into points. It maps features to bins, fits logistic regression on the bin IDs, and scales the output to a familiar range, such as 300–850. section 6.1.2

OptBinning automates numeric and categorical binning and can apply statistical constraints, such as minimum information value or maximum p-value. A fitted scorecard assigns points to bins, making contributions inspectable. section 6.1 section 6.1.2

Listing 6.3 Creating and fitting the scorecard
estimator = LogisticRegression(solver="lbfgs", max_iter=1000)
scorecard = Scorecard(
    binning_process=binning_process,
    estimator=estimator,
    scaling_method="min_max",
    scaling_method_params={"min": 300, "max": 850}  # BFSI range
)

scorecard.fit(X, y)
print("Scorecard fitted on X, y.")

See the OptBinning setup for fitting logistic regression on binned features and scaling scores to 300–850. section 6.1.2

Inspect scorecard tables to validate contributions and support review:

  • The summary table lists variables, bins, and points, helping identify disproportionate contributions. section 6.1.2
  • The detailed table adds bin counts, event rates, WoE, IV, logistic coefficients, and assigned points. section 6.1.2
Listing 6.5 Viewing the detailed scorecard table
sc_detailed = scorecard.table(style="detailed")
print(sc_detailed)

See the detailed-table call for inspecting bin-level statistics, coefficients, and points. section 6.1.2

Reviewing score contributions

If one variable contributes disproportionately to the score, revisit its binning logic or scaling parameters. Detailed bin statistics can also help identify unexpected coefficient jumps or investigate performance drops after deployment. section 6.1.2

How Financial AI in Practice covers it

How deep it goes
Fits logistic regression on bin IDs, scales scores, and exposes bin-level points and diagnostic statistics.
Examples
Uses OptBinning with logistic regression, a 300–850 scale, and summary or detailed bin tables.
What it assumes
Requires binned features and labeled outcomes for fitting; the example supplies a binning process and X, y.
What you can do after
Apply it via OptBinning to fit a scaled scorecard and inspect bin-level contributions.
How it connects
Connects logistic regression, Weight of Evidence, automated binning, and scorecard monitoring.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Financial AI in Practice. The section links point to the parts of the book it draws on.