Fact-checked by Grok 2 weeks ago

Shapley value

The Shapley value is a solution concept in that fairly distributes the total payoff of a coalition among its players according to their average marginal contributions over all possible coalitions. Introduced by American mathematician and economist Lloyd S. Shapley in his 1953 PhD dissertation at , the Shapley value provides a unique imputation for transferable utility games, satisfying four fundamental axioms: efficiency (the sum of values equals the grand coalition's worth), symmetry (identical players receive equal shares), additivity (the value of combined games is the sum of individual values), and the dummy axiom (non-contributing players get zero). These properties ensure a balanced and equitable allocation, making it a cornerstone of in n-person games. Shapley, who worked at the from 1954 to 1981 and later at UCLA, developed this concept amid early advances in following and Oskar Morgenstern's foundational work. Shapley's contributions to , particularly the theory of stable allocations, earned him half of the 2012 Nobel Memorial Prize in Economic Sciences, shared with for "the theory of stable allocations and the practice of market design." The is one of his seminal earlier contributions to , profoundly influencing the understanding of cooperative behaviors in . Beyond its origins, the Shapley value has been applied to measure voting power through the Shapley-Shubik index, analyze cost-sharing in and , and evaluate market equilibria in exchange economies. In contemporary fields, the Shapley value extends to machine learning for model interpretability, where it attributes predictions to input features via marginal contributions to model output, as unified in frameworks like SHAP (SHapley Additive exPlanations). This adaptation supports feature selection, data valuation, and explainable AI by providing consistent, axiomatically grounded importance scores. Its versatility underscores its enduring impact across economics, operations research, and artificial intelligence.

Definition and Formalism

Axiomatic Characterization

In , a cooperative game is formally defined as a pair (N, v), where N is a of and v: 2^N \to \mathbb{R} is the that maps every subset () S \subseteq N to a v(S), representing the maximum worth or payoff the coalition can achieve independently of the other players, with the convention v(\emptyset) = 0. The Shapley value is introduced as the unique solution concept for such games that satisfies a set of four fundamental axioms, providing a fair allocation of the total value v(N) among the players based on their contributions. These axioms are:
  • Efficiency: The sum of the individual values equals the value of the grand coalition, \sum_{i \in N} \phi_i(v) = v(N). This ensures the entire payoff is distributed without surplus or .
  • Symmetry: If two players i and j are interchangeable—meaning v(S \cup \{i\}) = v(S \cup \{j\}) for all coalitions S \subseteq N \setminus \{i, j\}—then they receive equal values, \phi_i(v) = \phi_j(v). This axiom rewards players equally for equivalent contributions across coalitions.
  • Dummy (null player): If a player i contributes nothing to any coalition—i.e., v(S \cup \{i\}) = v(S) for all S \subseteq N \setminus \{i\}—then \phi_i(v) = 0. This prevents allocation to non-contributors.
  • Additivity (linearity): For any two games (N, v) and (N, w), the value of their sum (N, v + w), where (v + w)(S) = v(S) + w(S) for all S, is the sum of their values, \phi(v + w) = \phi(v) + \phi(w). This allows decomposition of complex games into simpler ones.
These axioms uniquely characterize the Shapley value as the only imputation satisfying all four simultaneously. To see this, consider the of all cooperative games on N, which has $2^{|N|}. The games u_T for nonempty T \subseteq N, defined by u_T(S) = 1 if T \subseteq S and $0 otherwise, form a basis for this space. For each game u_T, symmetry and imply that \phi_i(u_T) = 1/|T| for i \in T (equal sharing among essential players) and the dummy axiom implies \phi_i(u_T) = 0 for i \notin T. Any game v can be uniquely expressed as a v = \sum_{T \subseteq N} \alpha_T u_T, where the coefficients \alpha_T are determined by the \alpha_T = \sum_{S \subseteq T} (-1)^{|T| - |S|} v(S). Additivity () then extends the value uniquely to v by \phi_i(v) = \sum_{T \subseteq N} \alpha_T \phi_i(u_T), and holds by construction on the basis and linearity. Thus, no other solution satisfies the s.

Marginal Contribution Formula

The marginal contribution of a i to a S \subseteq N \setminus \{i\} in a cooperative game (N, v) is defined as the incremental value added by i's participation, given by v(S \cup \{i\}) - v(S). This difference quantifies the player's specific contribution to the coalition's worth, capturing potential synergies or complementarities among players, as positive marginal contributions indicate that i enhances the coalition's outcome beyond what it achieves without i. The Shapley value \phi_i(v) for player i is the average of these marginal contributions, weighted by the proportion of permutations in which the coalition S forms before i joins. Explicitly, it is formulated as \phi_i(v) = \frac{1}{|N|!} \sum_{S \subseteq N \setminus \{i\}} |S|! \left(|N| - |S| - 1\right)! \left[ v(S \cup \{i\}) - v(S) \right], where the summation is over all subsets S of the set N excluding i, and the factorial terms |S|! \left(|N| - |S| - 1\right)! / |N|! represent the probability that the players in S precede i in a random ordering of all players. This averaging ensures a fair distribution by considering every possible order of coalition formation equally likely. Probabilistically, the Shapley value can be interpreted as the expected marginal contribution of player i when players join the coalition in a randomly permuted order: for a uniform random permutation \pi of N, \phi_i(v) = \mathbb{E} \left[ v(P^\pi_i \cup \{i\}) - v(P^\pi_i) \right], where P^\pi_i is the set of players preceding i in \pi. This view underscores the value's role in equitably attributing contributions based on positional randomness, aligning with the game's cooperative structure. This explicit formula is uniquely derived from the core axioms of , , , and additivity, as it satisfies these properties for any transferable utility and is the only concept to do so. The structure ensures by summing to v(N), by treating identical players equally, the dummy axiom by assigning zero to null players, and additivity by over decompositions, thereby establishing its to the axiomatic .

Historical Development

Origins in Cooperative Game Theory

Cooperative game theory emerged as a foundational framework in the seminal 1944 book Theory of Games and Economic Behavior by and , which formalized the analysis of strategic interactions among rational agents capable of forming coalitions to achieve joint outcomes. Central to this approach was the form, representing the maximum payoff a coalition could secure independently, thereby highlighting the dynamics of coalition formation and the challenges of equitably dividing resulting payoffs among members in transferable utility settings. This addressed economic scenarios where players could bind agreements, contrasting with noncooperative models and laying the groundwork for solution concepts that ensure stable and fair allocations. Building on von Neumann and Morgenstern's foundations, sought to develop a principled method for imputing payoffs in n-person cooperative games with transferable utility, motivated by the absence of a unique, axiomatic solution for fairly distributing coalition values. In a 1951 RAND Corporation memorandum, Shapley proposed an initial formulation of this value concept, emphasizing average marginal contributions to reflect each player's equitable share based on their incremental impact across all possible coalition orderings. This effort addressed the core problem of imputation—assigning individual utilities that sum to the grand coalition's value while satisfying intuitive fairness criteria—extending earlier partial solutions for specific game classes. During the 1940s and 1950s, precursors to Shapley's value appeared in related domains, including voting theory, where Lionel Penrose's 1946 analysis of majority voting introduced probabilistic measures of individual influence akin to marginal contributions in coalitions. Similarly, allocation problems in settings, such as apportioning shared expenses among participants, drew on analogous principles of equitable division, prefiguring formal applications of value-based methods. The Shapley value also found historical resonance in resolving the bankruptcy problem, a classic fair division scenario involving the allocation of a limited estate among claimants with established entitlements. and Michael Maschler demonstrated in 1985 that the Talmudic rulings on such disputes from the Babylonian (circa 500 CE) align precisely with the Shapley value of an associated cooperative game, providing a game-theoretic justification for these ancient precedents of proportional and constrained egalitarian division. This connection underscored the value's role in bridging historical heuristics with modern axiomatic theory.

Key Publications and Evolutions

Lloyd Shapley introduced the concept of the in his foundational paper "A Value for n-Person Games," originally prepared as a memorandum and published in the edited volume Contributions to the Theory of Games, Volume II, where he formally defined the as a solution to games and established its axiomatic basis through , , , and the null player property. In a related early contribution, Shapley's paper "Markets as Games" extended game-theoretic analysis to settings, introducing concepts that linked the value to allocations by exploring balanced collections of coalitions and their implications for stable outcomes in economies. Subsequent theoretical advancements in the late refined the axiomatic foundations of the Shapley value through properties. Faruk Gul's paper "Bargaining Foundations of the Shapley Value" provided a non-cooperative model that implements the value as the unique outcome, emphasizing its robustness in dynamic settings. Complementing this, Sergiu Hart and Andreu Mas-Colell's work "Potential, Value, and " offered a novel axiomatization by deriving the value from a operator applied to potential functions, demonstrating that the value preserves across reduced games and unifying it with weighted variants. The enduring impact of Shapley's contributions was recognized in 2012 when he shared the Nobel Memorial Prize in Economic Sciences with for their foundational work on stable allocations and the theory of cooperative games, highlighting the value's role in and market design. Early literature in the 1960s also addressed computational challenges, as noted in Irving Mann and Shapley's 1960 analysis of large-scale voting games, where exact computation proved infeasible due to complexity, prompting initial explorations of sampling-based approximations to estimate marginal contributions.

Illustrative Examples

Glove Game

The glove game serves as a classic illustrative example in to demonstrate the Shapley value's allocation based on players' marginal contributions to coalitions. In a standard three-player variant, the players are L (possessing a left glove), R1 (possessing a right glove), and R2 (possessing another right glove). The characteristic function v assigns values reflecting the of glove pairs: v(\emptyset) = 0, v(\{L\}) = 0, v(\{R1\}) = 0, v(\{R2\}) = 0, v(\{R1, R2\}) = 0, v(\{L, R1\}) = 1, v(\{L, R2\}) = 1, and v(\{L, R1, R2\}) = 1. This setup captures the complementarity between left and right gloves, which alone or in same-type coalitions yield no value, while including the left glove with at least one right glove allows forming one pair for full utility. To compute the Shapley values \phi_i(v) for each player i \in \{L, R1, R2\}, the marginal contribution is applied: \phi_i(v) = \frac{1}{n!} \sum_{\pi \in \Pi} \left[ v(P_i^\pi \cup \{i\}) - v(P_i^\pi) \right], where n = 3 is the number of , \Pi is the set of all $3! = 6 \pi of the , and P_i^\pi is the set of preceding i in permutation \pi. This averages the marginal contributions across all possible coalition formation orders. The six permutations and corresponding marginal contributions are:
  • Permutation L-R1-R2: Marginal for L = v(\{L\}) - v(\emptyset) = 0; for R1 = v(\{L, R1\}) - v(\{L\}) = 1; for R2 = v(\{L, R1, R2\}) - v(\{L, R1\}) = 0.
  • L-R2-R1: Marginal for L = 0; for R2 = v(\{L, R2\}) - v(\{L\}) = 1; for R1 = v(\{L, R2, R1\}) - v(\{L, R2\}) = 0.
  • Permutation R1-L-R2: Marginal for R1 = 0; for L = v(\{R1, L\}) - v(\{R1\}) = 1; for R2 = v(\{R1, L, R2\}) - v(\{R1, L\}) = 0.
  • Permutation R1-R2-L: Marginal for R1 = 0; for R2 = v(\{R1, R2\}) - v(\{R1\}) = 0; for L = v(\{R1, R2, L\}) - v(\{R1, R2\}) = 1.
  • Permutation R2-L-R1: Marginal for R2 = 0; for L = v(\{R2, L\}) - v(\{R2\}) = 1; for R1 = v(\{R2, L, R1\}) - v(\{R2, L\}) = 0.
  • Permutation R2-R1-L: Marginal for R2 = 0; for R1 = v(\{R2, R1\}) - v(\{R2\}) = 0; for L = v(\{R2, R1, L\}) - v(\{R2, R1\}) = 1.
Averaging these yields \phi_L(v) = (0 + 0 + 1 + 1 + 1 + 1)/6 = 2/3, \phi_{R1}(v) = (1 + 0 + 0 + 0 + 0 + 0)/6 = 1/6, and \phi_{R2}(v) = (0 + 1 + 0 + 0 + 0 + 0)/6 = 1/6 (by with R1). The values to v(N) = 1, satisfying . This allocation highlights the asymmetric nature of the contributions: L receives the largest share because it is essential for creating any value, contributing 1 in four out of six orders (whenever L joins after at least one R or before both, but actually as calculated), while each R contributes only when joining immediately after L without the other R present. The symmetric rights each get equal but smaller shares, underscoring the Shapley value's ability to equitably distribute based on average marginal impact in interdependent settings.

Business Partnership Scenario

Consider a business partnership involving three partners, A, B, and C, who collaborate to generate profits for their firm. The characteristic function v represents the profit produced by any subset of partners, with v(\{A\}) = v(\{B\}) = v(\{C\}) = 0, v(\{A,B\}) = 50, v(\{A,C\}) = 60, v(\{B,C\}) = 40, and v(\{A,B,C\}) = 100. This setup illustrates asymmetric contributions, where pairs involving A yield higher profits than those without, reflecting varying skills or resources each partner brings, such as A's expertise in market expansion or C's operational efficiency. The Shapley value divides the total of 100 units fairly by averaging each partner's marginal contributions over all possible orders in which partners could join the . For three partners, there are 6 equally likely , and the marginal contribution of a partner in a given order is the increase in they add when they join the existing . The table below summarizes these marginal contributions:
PermutationMarginal Contribution of AMarginal Contribution of BMarginal Contribution of C
A, B, C05050
A, C, B04060
B, A, C50050
B, C, A60040
C, A, B60400
C, B, A60400
Averaging the columns yields the Shapley values: \phi_A = \frac{0 + 0 + 50 + 60 + 60 + 60}{6} \approx 38.33, \phi_B = \frac{50 + 40 + 0 + 0 + 40 + 40}{6} \approx 28.33, and \phi_C = \frac{50 + 60 + 50 + 40 + 0 + 0}{6} \approx 33.33. These values sum to 100, ensuring the entire is allocated. This allocation highlights fairness in handling unequal contributions: A receives the largest share due to consistently high marginal impacts, especially in the pairwise coalition with C (adding 60 units) and when joining B and C (also adding 60 units), underscoring A's pivotal role in maximizing overall . B gets the smallest share, as their additions are lower on , such as only 40 units when joining A and C. Such a division acknowledges that no single partner generates alone but rewards incremental in different contexts. In real-world business partnerships, the Shapley value resolves profit-sharing disputes by providing an , axiomatically grounded that accounts for interdependent contributions, reducing conflicts over subjective assessments and fostering long-term , as seen in applications to multinational allocation.

Axiomatic Properties

Efficiency and Symmetry

The axiom requires that the Shapley values fully distribute the total value generated by the grand coalition, ensuring no resources are left undistributed or over-allocated. Formally, for a cooperative game (N, v) with player set N and v, the axiom states \sum_{i \in N} \phi_i(v) = v(N). This property promotes fairness by guaranteeing that the of individual allocations matches the collective output, aligning incentives for full . To verify this axiom using the marginal contribution formula, consider \phi_i(v) = \sum_{S \subseteq N \setminus \{i\}} \frac{|S|! (n - |S| - 1)!}{n!} \left[ v(S \cup \{i\}) - v(S) \right], where n = |N|. Summing over all players yields \sum_{i \in N} \phi_i(v) = \frac{1}{n!} \sum_{\sigma \in \Pi_N} \sum_{i \in N} \left[ v(P_i^\sigma \cup \{i\}) - v(P_i^\sigma) \right], with \Pi_N denoting all permutations of N and P_i^\sigma the predecessors of i in permutation \sigma. The inner double sum telescopes for each \sigma, equaling v(N) - v(\emptyset) = v(N), so the overall expression simplifies to v(N). Under the probabilistic interpretation, players join the coalition in a uniformly random order, and \phi_i(v) is the expected marginal contribution of i. Efficiency follows because the expected total marginal contributions across all players sum to the expected value of the grand coalition, which is v(N). The symmetry axiom mandates equal treatment of players with identical contributions to all coalitions, stating that if v(S \cup \{i\}) - v(S) = v(S \cup \{j\}) - v(S) for all S \subseteq N \setminus \{i, j\}, then \phi_i(v) = \phi_j(v). This ensures impartiality, assigning the same value to indistinguishable players and reflecting the game's intrinsic structure rather than arbitrary labels. The marginal contribution formula satisfies because the weights \frac{|S|! (n - |S| - 1)!}{n!} depend only on sizes, and the identical marginals for i and j imply equal weighted averages over the same sets S. In the permutation view, the of sizes preceding i or j is identical due to interchangeability, yielding equal expected marginals. Probabilistically, holds as the random arrival order treats interchangeable players equivalently, leading to the same expected contribution. Together, and underpin the Shapley value's fairness by conserving total value while equitably rewarding equivalent roles, forming core elements of its axiomatic foundation alongside .

Linearity and Null Player

The axiom, also known as additivity, requires that the Shapley value for the of two equals the of the individual Shapley values, and that scaling a game by a constant factor scales the Shapley value accordingly. Formally, for any player i, v and w, and scalar \alpha \geq 0, \phi_i(v + w) = \phi_i(v) + \phi_i(w), \quad \phi_i(\alpha v) = \alpha \phi_i(v). This property holds for the Shapley value because it is defined as the average of marginal contributions, and averaging preserves linearity: the marginal contribution to a scaled or summed game is simply the scaled or summed marginal contribution to the original game. The null player axiom states that if a player i contributes nothing to any coalition—meaning v(S \cup \{i\}) = v(S) for all coalitions S not containing i—then their Shapley value is zero: \phi_i(v) = 0. This follows directly from the formula, as all marginal contributions of such a player are zero, yielding an average of zero. These axioms have key implications in . Linearity ensures that the Shapley value behaves homogeneously under scaling, making it suitable for analyzing proportional or scalable scenarios, such as where payoffs grow linearly with input levels. The null player axiom allows straightforward identification of non-contributors, assigning them zero payoff and focusing distributions on active participants, which simplifies analysis in games with redundant players. Together with the and axioms, and the null property uniquely characterize the Shapley value as the only concept satisfying all four.

and Monotonicity

The property of the Shapley value stipulates that the allocation to is invariant under any relabeling or of the set, depending solely on the game's coalition structure rather than arbitrary player names. This invariance arises directly from the symmetric formulation of the Shapley value, which averages marginal contributions over all possible orderings of with equal probability, treating all equivalently in the computation. The Shapley value also satisfies monotonicity: if two games v and w satisfy v(S) \geq w(S) for every S, then the Shapley value allocation for v dominates that for w componentwise, i.e., \phi_i(v) \geq \phi_i(w) for all players i. This property holds because marginal contributions in the Shapley value formula are non-negative when one game dominates another, preserving the ordering in the averaged allocations. Additional derived properties further underscore the Shapley value's fairness. ensures that each player's allocation is precisely the of their marginal contributions across all s, reflecting incremental impacts without bias toward specific coalition sizes. The stand-alone test provides that if all other players are (i.e., v(S) = 0 for any coalition S not containing player i), then \phi_i(v) = v(\{i\}), directly attributing the full individual output to that player. These properties extend the core axioms—such as —by adding robustness against labeling conventions, ensuring consistent ordering preservation across comparable games, and reinforcing the value's reliance on verifiable contributions, thereby enhancing its applicability in diverse settings.

Computation Methods

Exact Calculation Algorithms

Exact calculation algorithms for Shapley values rely on exhaustive , making them suitable only for games with a small number of players, typically up to around 20, where or time complexities remain tractable. These methods compute the exact value by directly applying the axiomatic formula through either permutation-based or coalition-based approaches, assuming access to the v. Computing the Shapley value is in general, underscoring the inherent hardness even for enumeration-based exact methods. The brute-force permutation enumeration, as originally defined, calculates the Shapley value for each i by averaging their marginal contributions across all n! possible orderings of the player set N. For a given \pi, the marginal contribution of i is v(S_\pi \cup \{i\}) - v(S_\pi), where S_\pi is the set of players preceding i in \pi; the value is then \phi_i(v) = \frac{1}{n!} \sum_{\pi} [v(S_\pi \cup \{i\}) - v(S_\pi)]. This requires evaluating v up to n! times per player, yielding a of O(n \cdot n! \cdot t_v), where t_v is the time to evaluate v(S); in the worst case, if v demands full assessment, this escalates to O(n! \cdot 2^n). A more practical exact method for general games is coalition enumeration, which leverages the equivalent formula to iterate over all $2^{n-1} excluding i. The Shapley value is \phi_i(v) = \sum_{S \subseteq N \setminus \{i\}} \frac{|S|! (n - |S| - 1)!}{n!} [v(S \cup \{i\}) - v(S)], weighting each marginal contribution by the probability of S forming before i in a . This approach demands $2^{n-1} evaluations of v per , resulting in O(n \cdot 2^n \cdot t_v) total time; when t_v = O(1), it outperforms permutation enumeration since shows n! \approx \sqrt{2\pi n} (n/e)^n > 2^n for n > 1. Optimized exact algorithms further refine computation through recursive or dynamic programming techniques, particularly when the permits structured evaluation. Recursive methods using Möbius inversion decompose the game into basis functions, enabling incremental computation of contributions via the inversion \mu(S) = \sum_{T \subseteq S} (-1)^{|S| - |T|} v(T), though this is most effective for games with supermodular or structures. Dynamic programming can precompute aggregated terms over in O(n 2^n) total time for all players when t_v = O(1), by enumerating all and accumulating the weighted marginal contributions for each i: for each S not containing i, add \frac{|S|! (n - |S| - 1)!}{n!} [v(S \cup \{i\}) - v(S)] to \phi_i. These optimizations reduce redundancy in evaluations compared to naive . For illustration, consider a three-player game with N = \{1, 2, 3\} using coalition enumeration for player 1. The subsets S \subseteq \{2,3\} are \emptyset, \{2\}, \{3\}, \{2,3\}, with weights \frac{0! \cdot 2!}{3!} = \frac{1}{3}, \frac{1! \cdot 1!}{3!} = \frac{1}{6}, \frac{1! \cdot 1!}{3!} = \frac{1}{6}, and \frac{2! \cdot 0!}{3!} = \frac{1}{3}, respectively. The value is \phi_1 = \frac{1}{3} [v(\{1\}) - v(\emptyset)] + \frac{1}{6} [v(\{1,2\}) - v(\{2\})] + \frac{1}{6} [v(\{1,3\}) - v(\{3\})] + \frac{1}{3} [v(\{1,2,3\}) - v(\{2,3\})]. The following pseudocode implements this for n=3:
function shapley_n3(v):  # v is a function or table for coalitions
    phi = [0, 0, 0]  # for players 1,2,3 (0-indexed optional)
    # For player 1 (i=0)
    marginals = []
    # S = empty
    marginals.append(v({1}) - v(set()))
    # S = {2}
    marginals.append(v({1,2}) - v({2}))
    # S = {3}
    marginals.append(v({1,3}) - v({3}))
    # S = {2,3}
    marginals.append(v({1,2,3}) - v({2,3}))
    weights = [1/3, 1/6, 1/6, 1/3]
    phi[0] = sum(w * m for w, m in zip(weights, marginals))
    # Similarly for player 2 and 3 by symmetry or explicit enumeration
    # (Omit full code for brevity; repeat subset iteration excluding i)
    return phi
This extends naturally to larger n via full subset iteration, though practicality diminishes rapidly.

Approximation and Sampling Techniques

Computing the exact Shapley value requires evaluating the value function over all 2^n subsets for n players, which becomes intractable for large n, necessitating approximation methods that leverage sampling to estimate the average marginal contributions. Monte Carlo sampling approximates the Shapley value by randomly generating a subset of permutations or coalitions and computing the average marginal contribution of each player across these samples. In permutation sampling, introduced for general cooperative games, a random ordering of players is sampled, and the marginal contribution of each player is calculated as the difference in coalition value before and after their inclusion in the permutation; this process is repeated for k samples to estimate the expectation. The estimator's error is bounded using concentration inequalities such as Hoeffding's, ensuring that with high probability, the approximation error decreases as O(1/√k) for k samples, where the constant depends on the range of the value function. Coalition sampling variants similarly draw subsets uniformly and average marginals but can exhibit higher variance without careful design. To mitigate variance in these estimators, stratified sampling groups coalitions or permutations by size (e.g., number of players) and allocates samples proportionally within each stratum, reducing the overall estimation error compared to uniform sampling. This approach exploits the structure of the Shapley value formula, where marginal contributions are weighted by coalition sizes, leading to more stable approximations with fewer total samples. For instance, stratifying by coalition cardinality ensures balanced representation across the binomial coefficients in the denominator of the exact formula, improving efficiency in high-dimensional settings. Recent advances include sampling variants that refine sample selection for faster , maintaining the O(1/√k) error rate while adapting to game-specific properties. In contexts, Kernel SHAP provides a fast by framing feature attributions as a weighted problem over sampled coalitions, enabling efficient computation for models with dozens of features. These techniques involve inherent trade-offs between accuracy and computational cost: while increasing the number of samples k improves precision, it linearly scales the evaluation budget, making approximations feasible for n > 50 players where exact computation is impossible, often achieving reasonable error with k on the order of 10^4 to 10^5.

Generalizations and Variants

Aumann–Shapley Value

The Aumann–Shapley value extends the Shapley value to non-atomic cooperative games, where the set of players is modeled as a continuous measure space rather than a finite discrete set, allowing for the analysis of games with infinitely many indistinguishable players or smooth characteristic functions. This generalization is particularly suited to scenarios involving divisible resources or continuum of agents, such as cost-sharing problems where contributions are proportional to continuous quantities. For a non-atomic game with a smooth characteristic function v, the value allocated to player i (or a measure of players) is given by the formula \phi_i(v) = \int_0^1 \frac{\partial v}{\partial x_i}(t \mathbf{x}) \, dt, where \mathbf{x} is the of player measures (with \|\mathbf{x}\| = 1) and the is taken along the ray from the origin to \mathbf{x}. This form arises in cost-sharing contexts, where it computes the marginal contribution averaged over scaled versions of the total input, assuming the game starts from a zero baseline. The Aumann–Shapley value satisfies adapted versions of the core Shapley axioms for non-atomic settings: (the total value sums to v(\mathbf{x})), (indistinguishable receive equal shares), and (the value is linear in the ). It is derived as the limit of the Shapley value applied to finer partitions of the player space, ensuring consistency as the number of approaches . This value was originally developed in the 1974 book Values of Non-Atomic Games by Robert J. Aumann and Lloyd S. Shapley, which provides an axiomatic foundation for valuing such games. In applications, it is widely used for fair cost allocation in settings with continuous goods, such as apportioning production costs among multiple outputs in manufacturing or allocating transmission costs in public utilities like networks, where each unit of demand contributes proportionally to the total infrastructure expense.

Coalition and Interaction Generalizations

The coalition value extends the Shapley value to attribute payoffs to entire subsets of treated as unified blocks in a cooperative game (N, v), where N is the set of players and v is the . For a S \subseteq N, the coalition value \phi_S(v) is the average marginal contribution of S across all possible orders in which S joins as a single unit after subsets of N \setminus S. This marginal contribution to a subset T \subseteq N \setminus S is v(T \cup S) - v(T), weighted by the probability that T forms before S in a treating S as indivisible. The explicit formula is \phi_S(v) = \sum_{T \subseteq N \setminus S} \frac{|T|!(n - |S| - |T|)!}{(n - |S| + 1)!} \left[ v(T \cup S) - v(T) \right], where n = |N|. This construction ensures efficiency within the quotient game where coalitions like S act as super-players, providing a fair allocation for group contributions in settings such as organizational hierarchies. Interaction indices generalize the Shapley value to quantify synergies or redundancies among multiple players, focusing on pairwise effects in the first instance. For players i and j, the discrete interaction or Möbius transform is defined as \Delta_{i,j} v(S) = v(S \cup \{i,j\}) - v(S \cup \{i\}) - v(S \cup \{j\}) + v(S) for any S \subseteq N \setminus \{i,j\}, capturing the change in marginal contribution when both join together versus separately. The Shapley interaction index I_{i,j}(v) averages this over all relevant coalitions with weights reflecting the probability in random orders: I_{i,j}(v) = \sum_{S \subseteq N \setminus \{i,j\}} \frac{|S|!(n - |S| - 2)!}{(n-1)!} \Delta_{i,j} v(S). Positive values indicate synergy (supermodularity), while negative values suggest redundancy (submodularity); zero implies independence. This index satisfies axioms of linearity (additivity over games), dummy (zero for non-interacting players), and symmetry (invariance to player relabeling), extending the core properties of the Shapley value to pairs. It has been axiomatized as a unique solution under these properties plus recursive decomposability. Higher-order extensions exist for larger subsets, but pairwise indices are foundational for analyzing two-way interactions in discrete games. Owen's generalization addresses multilevel coalition structures, where players are partitioned into a priori unions (e.g., parties or teams) that form in stages, treating internal and external s hierarchically. In a game with coalition structure \mathcal{B} = \{B_1, \dots, B_m\} partitioning N, the Owen value first computes the Shapley value on the quotient game of blocks B_k, then distributes within each block using the Shapley value on induced subgames, reflecting priorities in formation order. For multilevel setups, such as games with nested s (e.g., voters within parties within alliances), this extends to iterative applications: values are propagated from grand coalitions down through levels, weighting marginal contributions at each tier. This approach, particularly applied to multilevel systems, ensures fairness in hierarchical by averaging over orders respecting the structure. Seminal formulations appear in Owen's work on extensions for structured games.

Player-to-Player Value Measures

The -to- value measure extends the to quantify the directed contribution of one to another in a , particularly useful in asymmetric settings where interactions between specific players matter. Extending earlier work such as Hausken and Mohr (2001), in a transferable (N, v) with set N and v, the value of i to j, denoted \phi_{i \to j}(v), is defined as the weighted average of i's marginal contribution to j's across all coalitions containing both players. This captures how i's presence affects j's share of the coalition's worth, providing a pairwise of overall contributions. The formula for the player-to-player value (for i \neq j) is given by \phi_{i \to j}(v) = \sum_{\substack{S \subseteq N \\ i,j \in S \\ i \neq j}} \frac{|S|! (n - |S| - 1)!}{n!} \left[ \phi_j(S, v) - \phi_j(S \setminus \{i\}, v) \right], where n = |N|, and \phi_j(S, v) denotes the standard Shapley value of player j in the restricted to S. This weighting ensures efficiency and fairness, analogous to the original Shapley axioms but applied pairwise. The measure is symmetric such that \phi_{i \to j}(v) = \phi_{j \to i}(v) due to the underlying game's structure, with values differing across asymmetric pairs, highlighting directional dependencies in non-symmetric games. This pairwise measure relates to the standard Shapley value by decomposing it fully: for each player i, \phi_i(v) = \sum_{j \in N} \phi_{i \to j}(v), where the self-contribution \phi_{i \to i}(v) captures the player's standalone value in . Such decompositions enable finer of interdependencies, extending coalition-based generalizations by focusing on bilateral effects. In applications, player-to-player values are employed in network games to assess influence flows, such as voting power in the , where they reveal how one member's participation boosts another's pivotal role. Similarly, in models, they measure dependency between firms, aiding decisions on mergers or resource sharing by quantifying one entity's contribution to another's profitability in joint s. These uses emphasize the measure's role in modeling asymmetric interactions without requiring full coalition enumerations.

Applications

In Economics and Attribution Models

In , the Shapley value has been widely applied to cost allocation problems, particularly in scenarios involving shared resources among multiple agents. A prominent example is the allocation of costs, where the Aumann-Shapley value—a of the Shapley value for nonatomic —enables proportional distribution based on usage intensities. In a 1979 study, this approach was used to determine fair internal billing rates for telephone services purchased in bulk by numerous users, ensuring efficiency and full cost recovery while treating users as a to handle large-scale interactions. The Shapley value also plays a key role in resolving problems, where an must be divided among creditors with conflicting claims. In the , game-theoretic analysis of ancient Talmudic rules for such divisions revealed connections to cooperative solution concepts, with the Shapley value providing an approximation through the random-arrival rule, which assigns shares based on average marginal contributions under sequential claims. This method ensures fairness by simulating arrivals in random order, offering a practical for division that aligns with axiomatic efficiency and symmetry, though the Talmudic prescriptions more precisely match the . In voting systems, the Shapley-Shubik power index measures legislative influence by quantifying a voter's average marginal contribution to passing motions across all possible orderings, extending early ideas on probabilistic pivotal roles from Penrose's work on majority voting statistics and related to Banzhaf's critical voter count. This index assesses power in weighted committees, such as parliaments or councils, where a player's index reflects the of coalitions they critically sway. Applications include evaluating influence in bodies like the , revealing disparities between nominal weights and actual decisiveness. The Shapley value exhibits consistency with the core in market equilibrium settings, where the core represents stable allocations immune to coalitional deviations. In cooperative market games, the value approximates competitive equilibrium payoffs in large economies with transferable utility, as the core converges to equilibrium prices and the value lies within or near it. This link, established through axioms like reduced-game consistency, underscores the value's role in ensuring fair divisions that mimic market outcomes in nonatomic trader settings. More recently, in 2025, the Shapley value has been applied to financial and , facilitating fair allocation of risk across assets to identify both risk-increasing and risk-reducing components.

In Machine Learning and Explainability

In , the Shapley value is employed to explain black-box models by framing attribution as a game, where individual act as players and the v(S) denotes the model's output (such as a ) based solely on the subset of S. This approach allows for quantifying each 's average marginal contribution across all possible coalitions, enabling interpretable insights into how influence outcomes in complex models like neural networks or ensembles. A seminal development is the SHAP (SHapley Additive exPlanations) framework, proposed by Lundberg and in 2017, which computes additive feature attributions using Shapley values to decompose predictions into contributions that sum to the model's output. Kernel SHAP serves as a model-agnostic approximation method, estimating values through weighted regressions on coalitions to handle arbitrary models efficiently. For tree-based ensembles such as , TreeSHAP provides an exact, polynomial-time algorithm that propagates attributions through tree structures, ensuring consistency and local accuracy while outperforming prior methods in speed and fidelity. The axiomatic foundation of Shapley values underpins their appeal for explainability, as they uniquely satisfy key properties including (attributions sum to the total prediction), (equally contributory features receive equal shares), (non-contributory features get zero attribution), and additivity (explanations compose linearly for model combinations), justifying their use for both local instance-level insights and global model understanding in applications like neural networks and machines. Recent extensions address limitations in handling and . Distributional Shapley values, introduced in 2024, generalize the for probabilistic outputs by defining values as random variables that track distributional shifts (e.g., probability mass changes or class flips), enabling finer-grained explanations for models in and with analytic forms for common distributions like Gaussian and Categorical. Complementing this, Shapley curves, developed in 2024, provide a nonparametric for local variable importance as smoothed functions over the covariate space, supporting via minimax-optimal estimators and wild bootstrap confidence intervals to assess feature effects in predictive modeling.

In Regression and Marketing Analysis

In statistical , the Shapley value is applied to decompose the , R^2, into contributions attributable to individual predictor variables, providing a measure of their relative importance in linear models. This approach, known as Shapley value , treats variables as players in a cooperative game where the total R^2 represents the value generated by the full coalition, and each variable's Shapley value quantifies its average marginal contribution across all possible subsets of predictors. Originally proposed for handling and enhancing interpretability in ordinary least squares (OLS) , this method ensures that the sum of individual contributions equals the overall R^2, offering a fair and additive attribution. The adaptation of the Shapley value formula to involves computing the contribution \phi_i for variable i as the average increase in R^2 (denoted \Delta R^2) when that variable is added to each possible of the remaining variables: \phi_i = \frac{1}{2^{p-1}} \sum_{S \subseteq N \setminus \{i\}} \left( R^2(S \cup \{i\}) - R^2(S) \right), where N is the set of all p predictors, and S ranges over all $2^{p-1} excluding i. This formulation extends naturally to generalized linear models (GLMs) by replacing R^2 with analogous pseudo-R^2 measures, such as deviance-based metrics, to assess marginal improvements in model fit. Recent updates emphasize its robustness in key-driver analysis, comparing it favorably to traditional under conditions of mild . In marketing analysis, particularly , Shapley values enable attribution of outcomes like sales or revenue to various channels (e.g., television, ), accounting for their interdependent effects in multi-touch attribution scenarios. For instance, in a hospitality study of South Cyprus hotels, Shapley values were used to decompose the explained variance in guest recommendation rates, revealing the relative importance of attributes such as , , and amenities, with contributions averaging across attribute coalitions to inform targeted improvements. This application supports data-driven allocation by quantifying how much each incrementally contributes to conversions, beyond simplistic last-click models. Compared to traditional variance partitioning methods, which allocate based on isolated variances and often over- or under-state importance due to ignoring correlations, Shapley values incorporate marginal contributions over all coalitions, yielding more equitable and accurate decompositions in the presence of . This property ensures that dependent predictors receive credit proportional to their unique and synergistic roles, enhancing reliability for in correlated datasets.

References

  1. [1]
    [PDF] A VALUE FOR n-PERSON GAMES - LS Shapley - RAND
    Our present work, though mathematically self-contained, is founded conceptually on the von Neumann-Morgenstern theory as far as their introduction of ...
  2. [2]
    [PDF] The Shapley Value - Game Theory - Indian Institute of Science
    The Shapley value is a popular solution concept in cooperative game theory that provides a unique allocation to a set of players in a coalitional game.
  3. [3]
    Lloyd S. Shapley – Biographical* - NobelPrize.org
    While there he published several other papers, including one called “A Value for n-person Games,” which introduced what is known as the “Shapley Value,” a ...
  4. [4]
    Lloyd S. Shapley – Facts - NobelPrize.org
    Lloyd Shapley was born and raised in Cambridge, Massachusetts, where his father worked as an astronomer. Shapley studied mathematics at Harvard University.
  5. [5]
    [2202.05594] The Shapley Value in Machine Learning - arXiv
    Feb 11, 2022 · The Shapley value, a solution concept from cooperative game theory, has found numerous applications in machine learning.
  6. [6]
    [PDF] A Unified Approach to Interpreting Model Predictions
    The unified approach, SHAP, assigns feature importance values for a prediction, using SHAP values as a unified measure of feature importance.
  7. [7]
    The roll call interpretation of the Shapley value - ScienceDirect.com
    A player's Shapley value equals its expected contribution to surplus creation if full cooperation among players is established in random order.Missing: probabilistic | Show results with:probabilistic
  8. [8]
    [PDF] 19 UTILITY THEORIES IN COOPERATIVE GAMES
    Von Neumann and Morgenstern (1944) defined the characteristic function v, v ... In the above interpretation, the utility theory underlying the Shapley value.
  9. [9]
    [PDF] Cooperative games: Core and shapley value - EconStor
    Abstract: This article describes the basic elements of the cooperative approach to game theory, one of the two counterparts of the discipline.
  10. [10]
    Notes on the N-Person Game — II - RAND
    II: The Value of an N-Person Game. Santa Monica, CA: RAND Corporation, 1951. https://www.rand.org/pubs ...Missing: origins | Show results with:origins
  11. [11]
    [PDF] Power Indices in Large Voting Bodies - University of Warwick
    ... power indices due to Penrose, Banzhaf and others.1 (which I will refer to here as the Penrose-Banzhaf index and sometimes abbreviate to PBI) and to Shapley ...
  12. [12]
    [PDF] The Shapley value
    2 A value for n-person games. 31. Lloyd S. Shapley. 3 A method for evaluating ... As the papers in this volume attest, Lloyd Shapley's contribution to game.
  13. [13]
    [PDF] Game-Theoretic Analysis of a Bankruptcy Problem from the Talmud ...
    In modern times it has surfaced again as the solution to the airport landing problem [9]; it is closely connected with the Shapley value [19], a game-theoretic ...
  14. [14]
    [PDF] The three wives problem and Shapley value | HAL
    Dec 3, 2021 · This type of problem is known as a rationing or bankruptcy problem. Aristotle argues in Book 5 (Rackham 1934)3 that distributive justice must be ...
  15. [15]
    Markets as Cooperative Games | RAND
    Citation. RAND Style Manual. Shapley, Lloyd S., Markets as Cooperative Games, RAND Corporation, P-629, 1955. As of October 23, 2025: https://www.rand.org/pubs ...Missing: core | Show results with:core
  16. [16]
    None
    ### Glove Game Example Summary
  17. [17]
    A Fair Solution to the Value Creation Puzzle in Transfer Pricing?
    Nov 24, 2021 · Shapley Value: A Fair Solution to the Value Creation Puzzle in Transfer Pricing? Reprinted from Tax Notes International (Oct. 18, 2021 ...
  18. [18]
    Monotonic solutions of cooperative games | International Journal of ...
    the Shapley value. Monotonicity thus provides a simple ...
  19. [19]
    [PDF] Computing Shapley Values, Manipulating Value Division Schemes ...
    Computing Shapley Values, Manipulating Value Division Schemes, and Checking. Core Membership in Multi-Issue Domains. Vincent Conitzer and Tuomas Sandholm.
  20. [20]
    Algorithms for computing the Shapley value of cooperative games ...
    Nov 20, 2018 · We study algorithms to compute the Shapley value for a cooperative game on a lattice L Σ = ( F Σ , ⊆ ) where F Σ is the family of closed ...
  21. [21]
    17 Shapley Values – Interpretable Machine Learning
    The Shapley value, coined by Shapley (1953), is a method for assigning payouts to players depending on their contribution to the total payout.
  22. [22]
    A Unified Approach to Interpreting Model Predictions - arXiv
    May 22, 2017 · SHAP (SHapley Additive exPlanations) is a unified framework that assigns each feature an importance value for a particular prediction.
  23. [23]
    [PDF] The Shapley Value in Machine Learning - IJCAI
    Monte Carlo permutation sampling for the general class of cooperative games was first proposed by Castro et al. [2009] to approximate the Shapley value in ...
  24. [24]
    [PDF] Towards Efficient Data Valuation Based on the Shapley Value
    application of Hoeffding's bound indicates that the number of permutations needed to achieve an ( , δ)- approximation is mperm = (2r2N/ 2) log(2N/δ), where r is ...
  25. [25]
    [PDF] Sampling Permutations for Shapley Value Estimation
    Addressing the computational issues of the Shapley value with applications in the smart grid. PhD thesis, University of Southampton, 2015. Olvi L ...
  26. [26]
    [PDF] Approximating the Shapley Value Using Stratified Empirical ... - IJCAI
    Using our SEBB, we propose an online method for se- quentially sampling in order to maximally reduce the bound at each iteration, called the stratified ...
  27. [27]
    [PDF] Efficient Sampling Approaches to Shapley Value Approximation
    Shapley value provides a unique way to fairly assess each player's contribution in a coalition and has enjoyed many applications. However, the exact ...
  28. [28]
    [PDF] A Comprehensive Study of Shapley Value in Data Analytics
    To compute exact SV, the algorithm generally enumerates all possible coalitions of players in the cooperative game by iterations, with each iteration computing ...
  29. [29]
  30. [30]
    [PDF] The Many Shapley Values for Model Explanation - arXiv
    Feb 7, 2020 · Aumann-Shapley is one of the several extensions of the discrete Shapley value to continuous settings. Relatedly, this technique is applicable ...
  31. [31]
    [PDF] AUmAnn-ShApley VAlUeS: A TechniqUe for BeTTer ATTriBUTionS
    Aug 3, 2013 · Aumann-Shapley values, from game theory, are a technique for attributions that can produce attributions with no unexplained amount, and ...
  32. [32]
    [PDF] Values of Non-Atomic Games, Part I: The Axiomatic Approach - RAND
    VALUES OF NON-ATOMIC GAMES, PART I: THE AXIOMATIC APPROACH. Robert J. Aumann and Lloyd S. Shapley. PREPARED FOR: UNITED STATES AIR FORCE PROJECT RAND. The. RAND ...
  33. [33]
    Values of Non-Atomic Games on JSTOR
    Cover of Values of Non-Atomic Games. Values of Non-Atomic Games. R. J. AUMANN. L. S. SHAPLEY. Series: Princeton Legacy Library. Copyright Date: 1974. Published ...
  34. [34]
    [PDF] An Application of the Aumann--Shapley Prices for Cost Allocation in ...
    The Aumann-Shapley value for this nonatomic game is a measure defined on the space of players (the heap) which assigns to each coalition its contribution to ...<|control11|><|separator|>
  35. [35]
    An axiomatic approach to the concept of interaction among players ...
    It is based on three axioms: linearity, dummy and symmetry. These interaction indices extend the Banzhaf and Shapley values when using in addition two ...
  36. [36]
    The Shapley value of coalitions to other coalitions - Nature
    Sep 24, 2020 · The Shapley value for an n-person game is decomposed into a 2 n × 2 n value matrix giving the value of every coalition to every other coalition.
  37. [37]
    [PDF] The Shapley Value as - Stanford University
    At least one cost allocation scheme based on the Shapley value has actually been implemented to allocate costs among users of a telephone system (see Billera, ...
  38. [38]
    Game theoretic analysis of a bankruptcy problem from the Talmud
    For three different bankruptcy problems, the 2000-year old Babylonian Talmud prescribes solutions that equal precisely the nucleoli of the corresponding ...
  39. [39]
    [PDF] Power indices and minimal winning coalitions - arXiv
    Mar 16, 2009 · The Penrose-Banzhaf index and the Shapley-Shubik index are the best-known and the most used tools to measure political power of voters in simple ...Missing: legislative | Show results with:legislative
  40. [40]
    [PDF] by Myrna Wooders - Vanderbilt University
    These relationships include: (a) equivalence of the core and the set of competitive outcomes; (b) the Shapley value is contained in the core or approximate ...
  41. [41]
    Consistent Individualized Feature Attribution for Tree Ensembles
    Feb 12, 2018 · We propose a rich visualization of individualized feature attributions that improves over classic attribution summaries and partial dependence plots.
  42. [42]
    Explaining Probabilistic Models with Distributional Values - arXiv
    We introduce the distributional values, random variables that track changes in the model output (e.g. flipping of the predicted class) and ...
  43. [43]
    Shapley Curves: A Smoothing Perspective - Taylor & Francis Online
    Sep 17, 2024 · This article fills the limited statistical understanding of Shapley values as a variable importance measure from a nonparametric (or smoothing) perspective.
  44. [44]
    [PDF] Decomposing the R-squared of a Regression Using the Shapley ...
    Using the Shapley Value, known in this literature as the. LMV, it is possible to do such a decomposition. This decomposition can be applied to models with.
  45. [45]
    The benefits of Shapley Value in key driver analysis - ResearchGate
    Aug 9, 2025 · Marco Vriens ... Shapley value regression consists of assessing relative importance and accordingly adjusting regression coefficients.
  46. [46]
    Shapley Value Methods for Attribution Modeling in Online Advertising
    This paper re-examines the Shapley value method for attribution analysis in the area of online advertising.
  47. [47]
    On Shapley Value for Measuring Importance of Dependent Inputs
    Aug 9, 2025 · This paper makes the case for using Shapley value to quantify the importance of random input variables to a function.Missing: Vriens | Show results with:Vriens
  48. [48]
    Using the SHAPLEY value approach to variance decomposition in ...
    Sep 1, 2020 · It can be seen that the Shapley Value approach provides more accurate estimates of effect contribution to variance in profitability than ...