SlideShare a Scribd company logo
Age(years)
Explaining	Machine	Learning
Model	Predictions
Scott	Lundberg
Why	do	we	care	so	much	about	explainability
in	machine	learning?
model 55%
chance	John	will	have	
repayment	problems
John,	a	bank	customer
No	loan
Why?!
Why?! AI	magic!
Interpretable Accurate
Complex	model ✘ ✔
Simple model ✔ ✘
Interpretable	or	accurate:	choose	one.	
😀	⚖ 💰
3
Complex	models	are	
inherently	complex!
But	a	single	prediction	involves	only	a	
small	piece	of	that	complexity.
Input	value
Output	value
5
6
How	did	we	get	here?
Base	rate Prediction	for	John
20% 55%
7
Base	rate
Work	experience	=	1	yr
20% 35%
Day	trader Open	accounts	=	1
70%
Capital	gains
90%55%
8
The	order	matters!
Work	experience	=	1	yr
Day	trader
Nobel	Prize	in	2012
Lloyd	Shapley
9
SHapley Additive	exPlanation (SHAP)	values
Age	=	20
Day	trader
Shapley	values	result	from	averaging	over	all	N!	possible	orderings.
(NP-hard)
10
Mortality	risk	model
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Mortality	risk	model
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Mortality	risk	model
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Mortality	risk	model
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Mortality	risk	model
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Mortality	risk	model
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Mortality	risk	model
Reveal	rare	high-magnitude	mortality	effects
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Conflates	the
prevalence of	an	effect
with	the
magnitude of	an	effect
Mortality	risk	model
Reveal	rare	high-magnitude	mortality	effects
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Reveal	rare	high-magnitude	mortality	effects
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Rare	high	magnitude	effects
Reveal	rare	high-magnitude	mortality	effects
Global feature importance Local explanation summary(A)
(log relative risk of mortality)
Mortality model
(F/M)
Lots	of	ways	to	die	young…Not	many	ways	to	live	longer…
Dependence	plots	reveal	the	increased	
danger	of	early	onset	high	blood	pressure (C)
SHAPvalueforsystolicbloodpressure
withouttheageinteraction
(logrelativeriskofmortality)
Sys
(B)
(logrelativeriskofmortality)
Systolic blood pressure (mmHg)
Age(years)
Kidney model
=
Vertical	dispersion	is
driven	by	interaction	effects
21
The	varying	risk	of	sex	over	a	lifetime
22
23
Model	Monitoring
Model	monitoring
Time
Training	performance Test	performance
Can	you	find	where	we	introduced	the	bug?
24
Model	monitoring
Now	can	you	find	where	we	introduced	the	bug?
25
False True
Model	monitoring
Time
Transient	electronic	medical	record
Time
26
False True
Model	monitoring
Time
Gradual	change	in	atrial	fibrillation
ablation	procedure	durations
Time
27
False True
Don’t	take	my	word	for	it,	try	it	yourself	J
github.com/slundberg/shap
github.com/slundberg/shap
…
Don’t	take	my	word	for	it,	try	it	yourself	J
30
Important	questions	to	ask	when	using	SHAP:
1. If	you	are	using	a	model	agnostic	explainer,	have	you	drawn	
enough	samples?
2. What	background	population	are	you	using	to	estimate	the	
effect	of	a	feature	being	“missing”?
3. What	model	output	are	you	explaining?	(log-odds,	
probability,	rank-order,	etc.)
4. Are	you	perturbing	a	model	in	ways	that	don’t	make	sense?	
(dealing	with	tightly	correlated	features)
Thanks!

More Related Content

PDF
Rsqrd AI: Making Conversational AI Work for Everybody
PDF
Rsqrd AI: Application of Explanation Model in Healthcare
PDF
Rsqrd AI: Recent Advances in Explainable Machine Learning Research
PDF
Rsqrd AI: Incorporating Priors with Feature Attribution on Text Classification
PDF
Rsqrd AI: Discovering Natural Bugs Using Adversarial Perturbations
PPTX
Rsqrd AI: A Survey of The Current Ecosystem of Explainability Techniques
PPTX
Rsqrd AI: Explaining ML Models w/ Geometric Intuition
PDF
Rsqrd AI: Errudite- Scalable, Reproducible, and Testable Error Analysis
Rsqrd AI: Making Conversational AI Work for Everybody
Rsqrd AI: Application of Explanation Model in Healthcare
Rsqrd AI: Recent Advances in Explainable Machine Learning Research
Rsqrd AI: Incorporating Priors with Feature Attribution on Text Classification
Rsqrd AI: Discovering Natural Bugs Using Adversarial Perturbations
Rsqrd AI: A Survey of The Current Ecosystem of Explainability Techniques
Rsqrd AI: Explaining ML Models w/ Geometric Intuition
Rsqrd AI: Errudite- Scalable, Reproducible, and Testable Error Analysis

Recently uploaded (20)

PPTX
Big Data Technologies - Introduction.pptx
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
Cloud computing and distributed systems.
DOCX
The AUB Centre for AI in Media Proposal.docx
PPT
Teaching material agriculture food technology
PPTX
20250228 LYD VKU AI Blended-Learning.pptx
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
MIND Revenue Release Quarter 2 2025 Press Release
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
Big Data Technologies - Introduction.pptx
Review of recent advances in non-invasive hemoglobin estimation
Diabetes mellitus diagnosis method based random forest with bat algorithm
gpt5_lecture_notes_comprehensive_20250812015547.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Dropbox Q2 2025 Financial Results & Investor Presentation
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Cloud computing and distributed systems.
The AUB Centre for AI in Media Proposal.docx
Teaching material agriculture food technology
20250228 LYD VKU AI Blended-Learning.pptx
Encapsulation_ Review paper, used for researhc scholars
MIND Revenue Release Quarter 2 2025 Press Release
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
A comparative analysis of optical character recognition models for extracting...
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Agricultural_Statistics_at_a_Glance_2022_0.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
Ad
Ad

Rsqrd AI: Exploring Machine Learning Model Predictions