# What Is Explainable AI? Checking What a Credit-Risk Model Relies On

Canonical: https://yourcloudblog.com/blog/what-is-explainable-ai/
Published: 2026-11-17
Author: YourCloudGroup · Publisher: YourCloudGroup · Category: Model Integrity
Tags: explainable ai, permutation importance, model evaluation, credit risk, fairness

> Explainable AI shows which inputs drive a model's predictions. Measured on 1,000 credit applicants: what two explanation methods agree on, and where they mislead.

**Short answer:** Explainable AI is the set of methods for showing which inputs a model relies on and how. On 1,000 public credit applications, two different models and two explanation methods agreed that checking-account status mattered most. The predictions from YourCloudGroup Model Manager's certified credit model show the same pattern: it flagged 16 of 29 applicants with an overdrawn account as high risk, and 1 of 33 with no checking account.
**Explainable AI is the set of methods for showing which inputs a model relies on, and how they push its predictions.** A model that predicts credit risk, churn or demand can be accurate and still rely on the wrong things: an input that leaks the answer, a quirk of the training data, or a characteristic you are not allowed to use. Explanations are how you find out before the model is used.

**Measured example:** on 1,000 public credit applications, two different models and two different explanation methods agreed that **the state of the applicant's checking account** was the input the models relied on most. YourCloudGroup Model Manager's certified model shows the same pattern in its own predictions: it flagged **16 of 29** applicants with an overdrawn account as high risk, and **1 of 33** with no checking account.

## Two kinds of explanation

- **Models that are readable by design.** A logistic regression is a weighted sum of its inputs; each weight says which way an input pushes the prediction and how hard. A small decision tree can be read as rules.
- **Explanations added after the fact.** Gradient boosting, random forests and neural networks are not readable directly. Model-agnostic methods probe them from outside. The simplest is **permutation importance**: shuffle one input across the held-out rows, so it no longer carries information, and measure how much the model's score drops. A large drop means the model relied on that input.

## A measured example: German credit applications

We used the public [Statlog German Credit](https://doi.org/10.24432/C5NC77) dataset from the UCI Machine Learning Repository: 1,000 loan applicants described by 20 inputs (checking-account status, loan duration and amount, credit history, purpose, savings, employment, age and others), 300 of them rated a bad credit risk. We trained a logistic regression and a gradient-boosting model on 800 applicants and tested on the other 200 (60 bad).

The logistic regression scored **76.4% [balanced accuracy](https://yourcloudblog.com/glossary/#balanced-accuracy)** on the held-out applicants; gradient boosting scored **67.4%**. The more complex model was not the better one.

Permutation importance: how many points of balanced accuracy each model lost when one input was shuffled (average of 30 shuffles):

| Input | Logistic regression | Gradient boosting |
|---|---:|---:|
| Checking-account status | 10.3 | 4.5 |
| Loan duration | 3.1 | 3.3 |
| Credit amount | 3.0 | 1.9 |
| Credit history | 2.8 | 1.5 |
| Purpose of the loan | 5.4 | 1.1 |

Both models put checking-account status first, and both use duration, amount and history. They disagree about purpose. Explanations describe a particular model, not the world: two models can reach similar decisions for partly different reasons.

## Where explanations mislead

**Big weights are not the same as importance.** In the logistic regression, one of the ten largest weights belongs to the foreign-worker flag. But only 37 of the 1,000 applicants are in the smaller group, so the input rarely changes a prediction: shuffling it cost **0.5 points**, with a spread larger than that across the 30 shuffles. A weight describes how hard an input pushes; importance describes how often that matters.

**Small test sets give noisy explanations.** With 200 held-out applicants, several importances in the table are within their own spread of zero. Gradient boosting's 1.9 points for credit amount varied by about 2.1 points from one shuffle to the next. Treat the order of inputs near the bottom as uncertain.

**Explanations are not causes.** A model that relies on checking-account status has found that it predicts default in this data. It does not show that the account causes default, or that changing it would change the outcome.

**Sensitive inputs show up.** The dataset includes a combined sex and marital-status field and the foreign-worker flag. In our logistic regression, shuffling the sex and marital-status field cost 1.3 points: small, but not zero. That is exactly what an explanation is for: making visible what a model uses, so that a person can decide whether it may.

## What Model Manager's certified model shows

Model Manager's [sample-data demonstration](https://yourcloudgroup.com/try/credit) on the same public dataset built 12 models and certified the winner, a neural network, as **MODERATE**: **73.9% balanced accuracy** on held-out rows that took no part in choosing it, against 50.0% for a baseline. A neural network has no readable weights, but the run publishes every held-out applicant with the inputs, the actual outcome and the model's prediction. Grouping those 100 predictions by checking-account status gives a model-agnostic view of what it relies on:

| Checking account | Applicants | Predicted high risk | Actually bad |
|---|---:|---:|---:|
| Overdrawn (below 0) | 29 | 16 | 18 |
| 0 to below 200 | 28 | 13 | 13 |
| 200 or more | 10 | 1 | 0 |
| No checking account | 33 | 1 | 4 |

The model's predictions track the same input the explanation methods ranked first, and the actual outcomes show why. Its predictions file also lists the inputs it was given: 18 of them, without the sex and marital-status field or the foreign-worker flag. These are 100 applicants, so the counts per group are small.

## Takeaway

Explainable AI shows what a model relies on, so that a person can check it before trusting the predictions. On public credit data, different models and methods agreed on the main driver, disagreed on smaller ones, and showed why weights, noisy importances and correlations need care. Explanations are only as good as the held-out rows they are computed on, and they describe the model, not the world.

**See it on sample data:** [Which applicants are a higher credit risk](https://yourcloudgroup.com/try/credit) shows how Model Manager tested a model on the public Statlog German Credit (UCI) dataset: the verdict, the measured figures and the predictions to download.

## Sources

- Hofmann, H. Statlog (German Credit Data) [Dataset]. UCI Machine Learning Repository. [doi:10.24432/C5NC77](https://doi.org/10.24432/C5NC77). CC BY 4.0.
- Experiment script: `explainable_credit.py` (stratified 80/20 split, seed 42, scikit-learn logistic regression and gradient boosting, permutation importance with 30 repeats on held-out rows).
- YourCloudGroup Model Manager sample-data run: [yourcloudgroup.com/try/credit](https://yourcloudgroup.com/try/credit) (verdict, certificate and predictions file).
