Cooperative game theory studies what happens when players form coalitions and produce value together, and asks how that value should be attributed back to the individual players. This is a plain reference for the standard definitions: cooperative games, the Shapley value and its axioms, the Banzhaf index, and the weighted-marginal-contribution form that contains both as special cases. Nothing here is new; for a full treatment see Maschler et al. (2013).
A cooperative game is a pair (N,v), where N={1,…,n} is a finite set of players and
v:2N→R,v(∅)=0 is a characteristic function (or payoff function) that assigns a real value to every coalition S⊆N. The full set N is the grand coalition.
The value v(S) is the payoff the players in S can secure by cooperating among themselves. A few standard restrictions on v:
Monotone: v(S)≤v(T) whenever S⊆T.
Superadditive: v(S∪T)≥v(S)+v(T) whenever S∩T=∅.
Simple: v is monotone and takes values in {0,1} with v(N)=1. These model voting; a coalition with v(S)=1 is winning.
The marginal contribution of player i to a coalition S⊆N∖{i} is
Mi(S)=v(S∪{i})−v(S). Every index below is a weighted average of marginal contributions; the indices differ only in the weights.
The Shapley value of player i in the game (N,v) is
ϕi(v)=S⊆N∖{i}∑n!∣S∣!(n−∣S∣−1)!Mi(S). Equivalently, averaging marginal contributions over all n! orderings of the players,
ϕi(v)=n!1π∑Mi(Piπ), where the sum runs over all permutations π of N and Piπ is the set of players preceding i in π. The intuition is the random-arrival picture: the players show up one at a time in a random order, each is credited with what it adds to those already present, and the Shapley value is a player's expected credit under a uniformly random order. The two forms are equal because exactly ∣S∣!(n−∣S∣−1)! orderings place the set S before i and the rest after.
The Shapley value is characterized by four axioms (Shapley, 1953). State ϕ as a map from games to payoff vectors in Rn.
Efficiency. ∑i∈Nϕi(v)=v(N). The whole value of the grand coalition is divided among the players, with nothing left over.
Null player. If Mi(S)=0 for all S⊆N∖{i}, then ϕi(v)=0.
Symmetry. If Mi(S)=Mj(S) for all S⊆N∖{i,j}, then ϕi(v)=ϕj(v).
Additivity. ϕi(v+w)=ϕi(v)+ϕi(w), where (v+w)(S)=v(S)+w(S).
Theorem (Shapley, 1953). The Shapley value is the unique map
ϕ satisfying efficiency, the null-player property, symmetry, and additivity.
An alternative characterization replaces additivity with marginality: a player's payoff depends only on its own marginal contributions.
Theorem (Young, 1985). The Shapley value is the unique map satisfying efficiency, symmetry, and marginality.
In a simple game, Mi(S)∈{0,1}, and Mi(S)=1 exactly when i is a swing (or pivotal) player for S: the coalition S loses but S∪{i} wins.
The (absolute) Banzhaf index of player i is
βi(v)=2n−11S⊆N∖{i}∑Mi(S), i.e. the fraction of coalitions for which i is a swing player. The normalized Banzhaf index divides by ∑jβj(v) so the values sum to one.
Where the Shapley value averages over arrival orders, the Banzhaf index (Banzhaf, 1965) ignores order entirely and simply asks how often a player turns a losing coalition into a winning one. Applying the Shapley value to a simple game gives the Shapley-Shubik index. Both measure voting power, and they generally disagree because they weight coalitions differently.
The Banzhaf index satisfies the null-player, symmetry, and additivity axioms but not efficiency.
Both indices have the form
ρi(v)=S⊆N∖{i}∑ω(∣S∣)Mi(S), differing only in the weight ω:
Shapley: ω(s)=n!s!(n−s−1)!,
Banzhaf: ω(s)=2n−11.
This common form is the class of semivalues (Weber, 1988).
A semivalue is any map ρi(v)=∑S⊆N∖{i}p∣S∣Mi(S) whose weights ps≥0 satisfy
s=0∑n−1(sn−1)ps=1. The Shapley value is the unique efficient semivalue; the Banzhaf index is the semivalue with constant weights.
To score a coalition T⊆N rather than a single player, treat T as one composite player and apply the same machinery. The general weighted form becomes
ρ(T)=S⊆N∖T∑ω(S)(v(S∪T)−v(S)), with the Shapley weight generalizing to ω(S)=n!∣S∣!∣T∣!(n−∣S∣−∣T∣)!. Values tailored to group structure also exist, but the composite-player view covers the common case.
The exact formulas sum over 2n−1 subsets, so direct evaluation is exponential in n. For weighted voting games, computing the Banzhaf and Shapley-Shubik indices is #P-hard / NP-hard (Deng and Papadimitriou, 1994), though dynamic programming over integer weights gives a pseudo-polynomial algorithm. In general, the permutation form is estimated by Monte Carlo sampling over orderings (Castro et al., 2009).
- Lloyd S. Shapley, A value for n-person games, 1953.
- H. Peyton Young, Monotonic solutions of cooperative games, 1985.
- John F. Banzhaf, Weighted voting doesn't work: A mathematical analysis, 1965.
- Robert J. Weber, Probabilistic values for games, 1988.
- Xiaotie Deng, On the complexity of cooperative solution concepts, 1994.
- Javier Castro, Polynomial calculation of the Shapley value based on sampling, 2009.
- Michael Maschler, Game theory, 2013.