Shapley Value

Decision Sciences
Introduced by
Lloyd Shapley
Year
1953
Type
algorithm
Family
Game-theoretic

What does it do?

The Shapley Value is a solution concept for coalition games that divides a total payoff among players according to their marginal contributions to coalitions.

Introduced by Lloyd Shapley in 1953, it is the unique payoff division that satisfies four axioms: efficiency (the total payoff is fully distributed), symmetry (identical players receive equal payoffs), the null player property (players who contribute nothing receive nothing), and additivity across games.

The intuition behind the method

Consider a group of workers forming a joint venture, and ask how much each should receive. The Shapley Value answers by looking at how much each worker adds when joining a team. Imagine all possible orders in which the workers could join, starting from an empty group and ending with everyone present. For each order, record how much value each worker adds at the moment they arrive. Averaging these contributions over all orders gives each worker a payoff that reflects their role without favouring anyone for arriving early or late. Because the averaging is taken over every order, the result does not depend on any single arrival sequence.

History

Lloyd Shapley introduced the Shapley Value in 1953 in 'A value for n-person games', presenting it as the solution to the problem of fairly dividing payoffs in cooperative games. His axiomatic approach helped establish cooperative game theory as a rigorous field. Shapley shared the 2012 Nobel Prize in Economics with Alvin Roth.

When to use it

Use the Shapley Value when a joint payoff must be divided among players whose contributions differ, and when no market prices reveal each player's individual value. Typical cases are profit sharing among partners, credit allocation among research collaborators, and cost allocation among users of a shared facility. It is most useful when the question is about fairness of the payoff division rather than about which coalition will actually form. Avoid it when the number of players is large enough that enumerating all coalitions is impractical, or when coalition values cannot be specified or estimated for every subset. If the question is whether a coalition is stable, a different concept such as the core is more appropriate.

Limitations and considerations

  • Computationally demanding: the definition requires evaluating v(S) for all 2^n coalitions of n players, which becomes infeasible as n grows, so exact computation is practical only for games with a modest number of players. For larger games, practitioners commonly estimate the value by Monte Carlo permutation sampling, which averages marginal contributions over randomly drawn join orders. This gives approximate payoffs, and the sampling error should be reported.
  • Requires complete information: the value of every coalition must be known or specified in advance; the method does not itself estimate missing coalition values.
  • May fall outside individual rationality: a player's Shapley payoff can be smaller than what that player could obtain acting alone, so the division is not guaranteed to be acceptable to every player as a voluntary agreement.
  • Defined for one characteristic function: the value describes how a given game's payoff is divided among all players together. It does not by itself say which coalition structure will form, so if other groupings are plausible, the Shapley payoffs do not address them.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Axiomatically characterised: it is the only division that satisfies efficiency, symmetry, the null player property and additivity, so its fairness properties follow from these axioms rather than from a choice made by the analyst.
  • Grounded in marginal contributions: each player's payoff reflects their average contribution across all coalitions and orders, which makes the result interpretable as a measure of a player's role in the game.
  • General scope: it applies to any cooperative game in which a value v(S) is defined for every coalition S, so the same procedure can be used across different domains once the characteristic function is specified.

Applications

  • Partnership accounting: dividing profits among business partners whose contributions differ in size or type.
  • Research team credit: allocating credit among co-authors or collaborators according to their contributions to a joint outcome.
  • Cost allocation: splitting the cost of a shared infrastructure among users whose usage patterns differ.
  • Machine learning: attributing a model's prediction to its input features using SHAP (SHapley Additive exPlanations), which applies Shapley-value reasoning with features treated as players. The resulting scores depend on how the value of feature subsets is defined and on how absent features are modelled; they describe the model's behaviour rather than causal effects.

How it works

How it works

1

Identify all possible subsets (coalitions) of players that can form.

2

For each coalition S, calculate v(S), the total payoff that coalition can achieve without outside players.

3

For each player i and each coalition S not containing i, compute the marginal contribution of i to S: v(S ∪ {i}) − v(S).

Formula
v(S \cup \{i\}) - v(S)
4

Compute player i's Shapley Value as the weighted sum of these marginal contributions over all coalitions S not containing i, with weight |S|!(n−|S|−1)!/n!, where n is the number of players. This weight equals the share of all n! join orders in which exactly the members of S arrive before i, so the result is the same as averaging i's marginal contribution uniformly over all orderings of the players.

Formula
\phi_i = \sum_{S \subseteq N \setminus \{i\}} \frac{|S|!\,(n-|S|-1)!}{n!}\,\bigl[v(S \cup \{i\}) - v(S)\bigr]

Common pitfalls

  • Treating the Shapley Value as a stability prediction: it defines a fair division of a payoff, and it does not guarantee that the grand coalition or any other coalition is stable.
  • Using the wrong weight for marginal contributions: the weight for coalition S is |S|!(n−|S|−1)!/n!, which depends only on the size of S and on n, not on how many coalitions have that size. Equivalently, the value can be computed by averaging each player's marginal contribution uniformly over all n! orderings of the players.
  • Confusing the Shapley Value with other solution concepts such as Nash bargaining or the core: these concepts use different assumptions and can assign different payoffs to the same game. Shapley payoffs always lie in the core for convex (supermodular) games, but for other games membership in the core has to be checked.
  • Using the Shapley Value when coalition values are uncertain: the definition assumes a complete characteristic function, so if the values v(S) are estimates, the resulting payoffs inherit that uncertainty. A practical check is a sensitivity analysis that recomputes the payoffs over a range of plausible v(S) values and shows how much they move.

Frequently asked questions

Why is the Shapley Value unique?

It is the only payoff division that satisfies four axioms: (1) efficiency, meaning the full payoff is distributed; (2) symmetry, meaning identical players receive equal payoffs; (3) the null player property, meaning players who contribute nothing receive nothing; and (4) additivity, meaning payoffs combine consistently across games. Because these axioms determine a single division, the value is unique.

How does the Shapley Value handle games where the grand coalition does not form?

The Shapley Value assumes the grand coalition forms and distributes its payoff v(N). It does not by itself address whether a different coalition structure would form. Concepts such as the core or bargaining solutions are needed to analyse stability or coalition formation.

Can the Shapley Value be negative?

Yes. If a player's average marginal contribution across coalitions is negative, meaning the player reduces the total payoff on average, their Shapley Value is negative. This can occur in games with negative externalities or negative synergies.

How should the payoffs be read?

The payoffs of all players add up to the total value of the grand coalition, v(N), so the division distributes the whole payoff. Each payoff is a weighted average of that player's marginal contributions across coalitions, so the payoffs are only as meaningful as the characteristic function v: if the values v(S) change, the payoffs change. A negative payoff means that, on average over coalitions, the player lowers the value.

Related methods

Sources

  1. Shapley, L. S. (1953). A value for n-person games. In H. W. Kuhn & A. W. Tucker (Eds.), Contributions to the Theory of Games II (pp. 307-317). Princeton University Press.

    Open DOI reference
  2. Roth, A. E. (1988). The Shapley value as a von Neumann-Morgenstern utility. Econometrica, 56(4), 745-794.

    Open publication reference
  3. li2014, p. 4

  4. Econometrics of Risk, page not recorded in library extract