Find a course

Module 3: Transparency, Privacy and SafetyLesson 6 of 1112 min

Transparency and Explainability

Distinguish transparency from explainability, see how explanations are produced for black box models, and judge what a meaningful explanation needs.

Step 1 of 12Learn

"The computer says no"

In 2019, a tech entrepreneur posted that his wife had been given a credit limit on a new store-branded credit card far lower than his, despite her having a better credit score and the couple sharing finances. Others reported similar experiences. When customers asked why, service staff said they couldn't explain: the decision came from an algorithm. A state regulator investigated and, in 2021, found no evidence of unlawful discrimination, but it criticized the lack of transparency and customer service, and recommended changes.

The episode shows that even a system that is lawful can lose public trust when nobody can explain its decisions. People affected by important decisions want, and in many places are legally entitled to, an understandable reason.

Two related ideas are often confused:

  • Transparency is openness about the system: that AI is being used at all, what it's for, what data it uses, who built it, how it was tested and what its limits are.
  • Explainability is the ability to give an understandable reason for a specific output: why this applicant was declined, why this transaction was flagged.

Both matter. Transparency lets society scrutinize a system; explainability lets an individual understand, and possibly challenge, a decision about them.

Step 2 of 12Practice · Sort into groups

Classify each item as an example of transparency or explainability.

Tap an item, then tap its group (or drag it there).

Step 3 of 12Learn

Black boxes and how we explain them

Some models are interpretable by design. A short decision tree, a scorecard or a simple linear model shows exactly how each input affects the output: "each missed payment subtracts 15 points." People can follow the logic directly.

Other models, such as deep neural networks or large ensembles of decision trees, involve millions or billions of parameters interacting in complex ways. These are often called black box models: they may be highly accurate, but no person can trace exactly why a particular output was produced.

To explain black boxes, researchers developed post-hoc explanation methods, which analyze a model's behavior from the outside:

  • Feature importance shows which inputs most influence predictions overall, or for a specific case. Popular methods such as SHAP and LIME estimate how much each feature pushed a prediction up or down.
  • Counterfactual explanations describe what would have to change for a different result: "If your annual income were $5,000 higher, or your credit card balance $2,000 lower, the loan would have been approved." These are often the most useful for the person affected, because they suggest what to do next.
  • Example-based explanations show similar past cases and their outcomes.

Post-hoc explanations are approximations. They can be unstable, simplified or even misleading, so they should be tested, not taken as a perfect window into the model.

Step 4 of 12Practice · Choose one

Which is a counterfactual explanation?

Step 5 of 12Practice · Diagram

Ways to explain a model

Tap the method that tells an applicant what to change next time.

Tap the shape that answers the question, then press Check.

Ways to explain a modelHierarchy diagram: Explaining AI decisions, Interpretable by design, Scorecards, Short decision trees, Post-hoc for black boxes, Feature importance, Counterfactuals, Similar examples.Explaining AI decisionsInterpretable by designScorecardsShort decision treesPost-hoc for black boxesFeature importanceCounterfactualsSimilar examples
Explaining AI decisions
Interpretable by design
Scorecards
Short decision trees
Post-hoc for black boxes
Feature importance

SHAP, LIME: which inputs pushed this result up or down.

Counterfactuals

What would have to change for a different result.

Similar examples

Step 6 of 12Learn

What makes an explanation meaningful

An explanation is only useful if it helps the person who receives it. A list of 240 feature weights is technically an explanation and practically useless to a loan applicant. A meaningful explanation is:

  • Understandable to its audience: plain language for the public, more detail for experts and auditors.
  • Accurate: it reflects what actually drove the decision, not a reassuring story.
  • Actionable where possible: it tells people what they could change or how to challenge the result.
  • Timely: it arrives when the person can still use it.

Different audiences need different explanations. Affected individuals need the main reasons and how to contest. Operators, such as caseworkers or doctors, need enough insight to judge whether to trust a particular output. Auditors and regulators need technical documentation about data, testing and performance across groups. Developers need detailed diagnostics to debug.

Some laws require explanations. In the US, lenders must give applicants the principal reasons for a credit denial, an obligation regulators have said applies even when complex algorithms are used. The EU's General Data Protection Regulation gives people rights around solely automated decisions with legal or similarly significant effects, including the right to human intervention and to contest the decision, and the EU AI Act adds a right to an explanation for certain high-risk decisions.

When a system can't be explained adequately for a high-stakes use, that's a strong argument for using a simpler, interpretable model instead.

Step 7 of 12Compare

Unhelpful vs meaningful explanation

AspectUnhelpfulMeaningful
Content240 feature weightsThe 2–3 main reasons, in plain words
Actionable?NoSays what could change the result
Fits the audienceWritten for engineersWritten for the person affected
Next stepNoneHow to correct data or ask for review

Step 8 of 12Note

Step 9 of 12Diagram

From glass box to black box

From glass box to black boxScale: Scorecard, Short decision tree, Linear model, Large tree ensemble, Deep neural network.InterpretableNeeds post-hoc tools02468101Scorecard2.5Short decision tree4Linear model7Large tree ensemble9.5Deep neural network
Rough ordering; a huge linear model or a deep tree can also be hard to read.
Scorecard

1

Short decision tree

2.5

Linear model

4

Large tree ensemble

7

Deep neural network

9.5

Step 10 of 12Practice · Match the pairs

Match each audience to the kind of explanation it needs most.

Tap an answer, then tap the place where it belongs (or drag it there).

  1. A person whose application was declined
  2. A doctor using a risk score
  3. A regulator or auditor
  4. The development team

Step 11 of 12Practice · What would you do?

What would you do?

A city agency wants to use a complex model to prioritize housing inspections. Residents of flagged buildings receive a letter saying: "Your building was selected by our AI system." What is the biggest transparency or explainability gap?

Step 12 of 12Practice · True or false

Post-hoc explanation methods such as feature importance give a perfectly accurate account of how a black box model reached its decision.