Shapley Values are a solution concept that assigns a unique, fair payout to each player in a cooperative game by calculating the weighted average of their marginal contribution to every possible coalition they could join. The method exhaustively considers all permutations of players, measuring how much the total payoff changes when a specific player is added to a subset, ensuring the final attribution satisfies axioms of efficiency, symmetry, dummy, and additivity.
Glossary
Shapley Values

What is Shapley Values?
A foundational concept in cooperative game theory used to fairly distribute a collective outcome among contributing players based on their average marginal contribution across all possible coalitions.
In explainable fraud detection, Shapley Values form the mathematical backbone of SHAP, where the 'game' is the prediction task, the 'players' are the input features, and the 'payout' is the model's anomaly score. This provides a theoretically rigorous method to decompose a transaction's risk score, showing precisely how much each feature—such as transaction velocity or device fingerprint—contributed to pushing the prediction away from the average, enabling auditors to validate blocking decisions.
Key Properties of Shapley Values
Shapley Values are the only feature attribution method that uniquely satisfies four fundamental axioms from cooperative game theory, ensuring a mathematically fair and consistent distribution of a model's prediction among its input features.
Efficiency (Local Accuracy)
The sum of all feature attributions equals the difference between the model's prediction for a specific instance and the average prediction. This property guarantees completeness—the explanation accounts for the entire prediction output, leaving no residual unexplained variance.
- Additive property:
f(x) = ϕ₀ + Σ ϕᵢwhereϕ₀is the base value andϕᵢare Shapley values - Ensures the explanation is a true decomposition of the prediction
- Critical for regulatory compliance where full accountability is required
Symmetry (Fairness)
If two features contribute identically to every possible coalition, they receive identical Shapley values. This equal treatment property prevents bias in attribution and ensures that features with the same predictive influence are assigned the same importance.
- Eliminates arbitrary ordering effects present in simpler methods
- Guarantees consistent ranking of feature importance
- Essential for auditing models in lending and hiring where fairness is legally mandated
Dummy (Null Player)
A feature that contributes nothing to the prediction—regardless of which other features are present—receives a Shapley value of exactly zero. This null effect property ensures that irrelevant features do not receive spurious attribution.
- Automatically zeroes out non-predictive variables
- Prevents misleading explanations that highlight noise features
- Useful for feature selection by identifying truly inert inputs
Additivity (Linearity)
If a prediction is the sum of two separate model outputs, the Shapley value for a feature is the sum of its Shapley values from each model. This linear consistency property enables explanations for ensemble models like random forests and gradient boosted trees.
- Allows decomposition of ensemble predictions into component model contributions
- Ensures explanations remain consistent when models are combined
- Foundational for SHAP's ability to explain any model architecture
Marginal Contribution Calculation
Shapley values compute a feature's importance by averaging its marginal contribution across all 2ᴺ possible feature coalitions. For each subset of features, the model's prediction is evaluated with and without the target feature, and the difference is weighted by coalition size.
- Weighting formula:
|S|!(n - |S| - 1)! / n!whereSis the coalition - Accounts for feature interactions by considering all possible orderings
- Computationally expensive—exact calculation requires
O(2ⁿ)model evaluations
Uniqueness Guarantee
Shapley values are the only attribution method that simultaneously satisfies efficiency, symmetry, dummy, and additivity. This uniqueness theorem, proven by Lloyd Shapley in 1953, provides the theoretical foundation for why SHAP is the gold standard in model explainability.
- No other method can claim this axiomatic completeness
- Provides a defensible mathematical basis for regulatory submissions
- Contrasts with heuristic methods like LIME that lack formal guarantees
Frequently Asked Questions
Clear, concise answers to the most common questions about Shapley values and their application in machine learning explainability and fraud detection.
Shapley values are a game-theoretic solution concept that fairly distributes the total payout of a cooperative game among its players based on their average marginal contribution across all possible coalitions. In machine learning, the 'game' is the prediction task, the 'players' are the input features, and the 'payout' is the difference between the model's prediction for a specific instance and the average prediction. A Shapley value for a feature is computed by evaluating the model's prediction with and without that feature, averaged over all possible subsets of other features. This exhaustive consideration of feature interactions ensures the attribution satisfies four axioms: efficiency (contributions sum to the prediction difference), symmetry (identical contributions yield equal values), dummy (zero-contribution features get zero value), and additivity (values combine across games). The computational complexity is exponential—requiring 2^N model evaluations for N features—which is why practical implementations like SHAP use approximation methods such as kernel-based sampling or TreeSHAP for tree-based models.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Related Terms
Shapley Values form the theoretical backbone of modern model explainability. These related concepts extend, operationalize, or provide alternatives to Shapley-based feature attribution in fraud detection workflows.
SHAP (SHapley Additive exPlanations)
The direct computational implementation of Shapley Values for machine learning. SHAP unifies six existing attribution methods under a single game-theoretic framework, assigning each feature an importance value for a specific prediction. In fraud detection, SHAP values explain exactly why a transaction scored 0.92 on a risk model—for example, revealing that transaction amount contributed +0.15 and device fingerprint mismatch contributed +0.40 to the anomaly score. The KernelSHAP variant is model-agnostic, while TreeSHAP provides exact, fast computations for gradient-boosted trees commonly used in anti-fraud systems.
LIME (Local Interpretable Model-agnostic Explanations)
A perturbation-based alternative to Shapley methods that explains individual predictions by locally approximating the black-box model with an interpretable surrogate, such as a sparse linear model or decision tree. LIME generates synthetic samples around the instance being explained and weights them by proximity. While computationally lighter than exact Shapley calculations, LIME's explanations can be unstable—two nearby transactions may yield different explanations due to sampling variance. Fraud analysts often use LIME for rapid, approximate debugging before applying the more rigorous SHAP framework.
Integrated Gradients
A model-specific attribution method designed for deep neural networks that satisfies the completeness axiom—the sum of feature attributions equals the difference between the model's output and a baseline prediction. It computes contributions by integrating gradients along a straight-line path from a baseline input (often a zero-vector or average transaction) to the actual input. In fraud detection, this is particularly useful for explaining recurrent neural networks that process transaction sequences, identifying which specific steps in a payment history triggered the anomaly flag.
Counterfactual Explanations
Instead of assigning importance scores, counterfactuals answer: 'What would need to change for this transaction to be classified as legitimate?' They identify the minimal set of feature perturbations that flip the model's decision. For a flagged wire transfer, a counterfactual might state: 'If the beneficiary account age were 3 years instead of 2 days, this transaction would not be blocked.' This approach aligns naturally with adverse action reason codes required by financial regulators and provides actionable guidance for investigators reviewing false positives.
Permutation Feature Importance
A global model inspection technique that measures feature importance by randomly shuffling each feature's values and observing the decrease in model performance. Unlike Shapley Values, which provide local explanations per transaction, permutation importance gives a single ranking of features across the entire validation set. A significant drop in AUC-ROC after shuffling 'transaction velocity' indicates that feature is globally critical. However, this method can be misleading when features are correlated—a limitation that Shapley-based approaches address through coalitional game theory.
Partial Dependence Plots (PDP)
A global visualization tool showing the marginal effect of one or two features on the model's predicted fraud probability, averaged over all other features. A PDP for 'transaction amount' might reveal a sharp increase in fraud risk above $10,000. While intuitive for regulators, PDPs assume feature independence—a problematic assumption in financial data where account balance and transaction amount are correlated. The Shapley framework avoids this pitfall by explicitly modeling feature interactions through coalitional marginal contributions.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us