Skip to content

Chapter 1.11 — Explainability, interpretability and fairness

🎯 Objective

Cover SHAP, LIME, PDP and the limits of these techniques — as well as fairness.

🧠 Concepts

  • Global interpretability — explanations that hold for the whole model.
  • Local interpretability — explanations for a specific prediction.
  • SHAP — approximate Shapley values, based on game theory.
  • LIME — a local linear model approximating the behavior around an instance.
  • PDP (Partial Dependence Plot) — the average effect of a feature.

⚠️ Limits

  • SHAP and LIME are approximations — they are not "the truth" of the model.
  • They can be unstable (same model, different explanations).
  • They do not replace human auditing in critical decisions.

🧠 Fairness

Common metrics:

  • Demographic parity — equal positive rate across groups.
  • Equalized odds — equal TPR and FPR across groups.
  • Calibration parity — equal calibration across groups.

Trade-off: not all metrics can be satisfied simultaneously. The choice is normative, not technical.

📌 Checklist

  • [ ] Are per-segment metrics reported?
  • [ ] Is fairness documented in the model card?
  • [ ] Is there human review for critical decisions?

📚 References