Learning outcomes

After this lesson, you will be able to:

Central questionWhen a credit application is declined, what do we want to understand: the model's general logic, the reason for one prediction, or the entire decision process? These are different objects of analysis.

1. What exactly is a model?

In machine learning, a model is a computational construct that transforms input data into a prediction, score, or other output after training. A credit-risk model, for example, receives application data and returns an estimated probability of default. Do not confuse the model with its surrounding system: the interface, bank policy, approval threshold, employee, and appeal process may affect the outcome without being part of the model itself.

Model interpretabilityThe degree to which a person can understand a model's structure and how its representations, parameters, or computations relate to its observable behaviour and outputs.

There is no single definition accepted by all researchers. State explicitly what is being interpreted and for whom. One specialist may mean understandable coefficients; another may mean tracing an individual decision; a third may mean testing behaviour across many cases.

2. Interpretability and explaining a prediction

Compare two questions: “How does the model work overall?” and “Why did it assign this application a high risk score?” The first concerns global understanding; the second concerns a local explanation of one result.

A linear model is relatively understandable by design: features are multiplied by coefficients and combined. Yet explaining one applicant still requires examining that instance's feature contributions. Conversely, a post-hoc local explanation can be generated for a complex neural network whose internal structure remains difficult to inspect.

Global and local analysisGlobal analysis studies overall model behaviour; local analysis explains one prediction.Two questions — two levels of analysisGlobal levelHow does the model behave overall?Where does it fail?Local levelWhy this prediction?How reliable is the explanation?Neither level replaces the other
Global understanding and local explanations complement one another, but answer different questions.

A post-hoc explanation analyses a trained model. It may estimate feature contributions, fit a local approximation, or show output sensitivity to inputs. This is an additional analysis procedure, not a transformation of the original model into a transparent one.

Key distinction. Interpretability concerns how understandable the model itself is. An explanation is a way to answer a specific question about a model or its output. Having an explanation does not prove that the model is fully understood.

3. Interpretability by design and post-hoc analysis

Linear regression, a small decision tree, or a model with a limited set of meaningful rules can be inspected directly: read coefficients, follow a branch, or test a rule. Yet a simple model family does not guarantee that a particular implementation is easy to understand. Many features, correlations, and complicated preprocessing can obscure it.

For ensembles, boosting models, and neural networks, analysts often use post-hoc methods. LIME fits a local surrogate around an instance. SHAP estimates feature contributions relative to a selected background distribution. Results depend on assumptions, sampling, perturbation schemes, and the definition of contribution.

It is inaccurate to say “the model is interpretable because we ran SHAP.” Say instead: “We generated a post-hoc SHAP explanation for this model and question, and separately examined its limitations.”

4. Dependence on audience and task

A developer wants to debug errors and understand transformations. A risk analyst checks behaviour across groups. A customer needs a concise, verifiable reason for a decline. An auditor needs documented procedures, controls, and reproducibility.

AudienceMain questionUseful output
DeveloperWhy does the model behave unexpectedly?Diagnostics of features, transformations, and errors
AnalystDoes behaviour align with policy?Global patterns and group checks
CustomerWhat influenced this decision?A concise, factually faithful local explanation
AuditorCan the process be verified?Documentation, reproducibility, and traceability

One explanation format need not serve everyone. A coefficient table may help an analyst but not a customer. “Income was insufficient” may be understandable, but does not prove that the model actually used income in that way.

Ask not only “How interpretable is this model?” but “How understandable is it to this audience, for this task, under these conditions?”

5. Running example: credit risk

A model estimates late-payment risk from debt burden, payment history, employment duration, and income. For one application it returns 0.72. The bank uses a 0.60 threshold and sends the application for additional review.

  1. System level. Who set the threshold? Which rules follow the prediction? Can an employee review it? These are process questions, not only model questions.
  2. Global level. Which features and relationships affect risk overall? Does behaviour differ across groups? Where do errors occur?
  3. Local level. Which inputs are associated with this 0.72 score? How does the prediction change under permissible input changes?
  4. Validation. Compare the explanation with actual model behaviour using controlled changes and stability tests.

If debt burden is identified as the main factor, this does not prove that reducing debt guarantees approval. The model may use feature interactions, the threshold may remain unchanged, and the proposed change may be unrealistic. Association with a prediction is not a real-world causal effect.

6. Assessing interpretation quality

  • Comprehensibility. Can the intended audience read the explanation correctly?
  • Faithfulness. Does it reflect actual model behaviour rather than a convenient story?
  • Stability. Does the main conclusion persist under small, permissible changes?
  • Scope. Is it clear whether the claim applies to one instance, a group, or the whole model?
  • Usefulness. Does it help debugging, auditing, decision-making, or communication?
  • Verifiability. Can the analysis be reproduced and checked experimentally?

Criteria can conflict. A concise explanation is readable but may omit interactions; a detailed one may overwhelm. Stability does not guarantee faithfulness: a method can consistently repeat an inaccurate approximation.

7. Common mistakes and limits

  • Confusing the model with the system: thresholds and human actions affect outcomes.
  • Treating a local explanation as a description of the entire model.
  • Taking a visualisation or feature ranking as proof.
  • Equating feature importance with causality.
  • Ignoring the audience, model version, and method settings.
Research rule. Define the question and object of analysis first, choose a method second, and interpret the result only then. Do not start with an attractive plot and invent a question it supposedly answers.

8. Practice: an explanation brief

Task

Choose a credit-risk, demand-forecasting, ticket-classification, or defect-detection model. Before selecting an XAI method, complete this brief:

  1. Name the object: model, individual prediction, or whole system.
  2. Formulate one global and one local question.
  3. Describe the audience and its decision.
  4. Suggest an analysis method and justify the choice.
  5. State two limitations and one validation method.

Self-assessment

You have distinguished the model from the threshold and process; separated global and local questions; identified the audience; avoided claiming causality from association; and proposed a faithfulness or stability check.

Takeaway

Interpretability is not a magical yes-or-no property. It is a relationship between model structure, the research question, the audience, and conditions of use. The next lesson will distinguish interpretability from explainability more precisely before we study models whose structures can be inspected directly.