This is a great question about game theory, specifically about the Shapley value. Let me provide a comprehensive explanation of the formula and its interpretation.
Shapley Value Formula
The Shapley value for a player i in a coalitional game (N,v) where N is the set of all players and v is the characteristic function, is given by:
ϕi(v)=∣N∣!1∑S⊆N∖
Alternatively, this can be written as:
ϕi(v)=∑
Or in terms of orderings:
ϕi(v)=∣
where σ is a permutation of players and Siσ is the set of players ordered before i in permutation σ.
Interpretation as Average Marginal Contribution
The most intuitive interpretation is:
Consider all possible orderings (permutations) of the players joining a coalition sequentially. For each ordering:
- Look at the set of players who join BEFORE player i
- Calculate the marginal contribution of player i: the value added when i joins that coalition of earlier players
The Shapley value is the average of these marginal contributions across ALL possible orderings.
To break this down: there are n! possible orderings of n players. In any given ordering σ, if Siσ represents the players arriving before , then 's marginal contribution is . The Shapley value simply takes the average of this marginal contribution across all possible orderings.
This approach works because each coalition S of size ∣S∣ that could precede player i appears in exactly ∣S∣!(n−∣S∣ orderings—there are ways to arrange the predecessors, and ways to arrange everyone after . This means coalition contributes to the Shapley value with weight , which represents how likely we are to encounter that specific coalition as 's predecessors.
To see this concretely, consider three players where v(∅)=0, each singleton is worth 10, any pair is worth 25, and the full coalition is worth 60. When computing player 1's value across all orderings, the marginal contribution depends on who arrives first: if player 1 goes first they add 10, but if either player 2 or 3 precedes them, player 1 adds 15 to the coalition.
When both other players are already present, player 1's contribution jumps to 35 since the grand coalition is worth 60 while any two-player coalition is worth 25. The Shapley value averages these six orderings: two where player 1 arrives first (contributing 10 each), two where one other player arrives first (contributing 15 each), and two where both others arrive first (contributing 35 each), giving (2×10+2×15+2×35)/6=.
I can verify this using the formula by weighting each coalition by the probability it forms before player 1 joins. When neither other player has joined yet, the weight is 2/6 and the marginal contribution is 10. When exactly one has joined, the weight is 1/6 for each of the two possible players, each contributing 15. When both have joined, the weight is 1/6 for each ordering, contributing 35.
Summing these weighted contributions: 620+15+15+70=20, which confirms the result. Now I can provide a clear explanation of the Shapley value formula and what it represents.
Shapley Value: Definition and Interpretation
The Formula
For a player i in a coalitional game (N,v), the Shapley value is:
ϕi(v)=∑
Equivalently, using permutations:
ϕi(v)=n
where Piσ is the set of players preceding player i in ordering σ.
The Marginal Contribution Interpretation
The Shapley value represents the average marginal contribution of player i across all possible sequential joining orders.
How It Works:
-
Imagine players joining sequentially: Randomly order all n players. They form a coalition in this sequence.
-
Calculate marginal contribution: In ordering σ, when player i arrives, some players have already joined (coalition Piσ). Player 's value is:
(the value gained by adding to those already present)
Intuition via Weights:
- A coalition S of size k precedes player i in exactly k!(n−k−1)! orderings
- This occurs with probability
Worked Example
Consider 3 players contributing to a joint project:
| Coalition | Value |
|---|
| ∅,{i} | 0 |
| Any two players | 10 |
| All three | 15 |
For Player 1:
| Joining Order | Predecessors | Marginal Contribution |
|---|
| (1,2,3) | ∅ | 0−0=0 |
| (2,1,3) | {2} | 10− |
(Plus two more orderings by symmetry)
ϕ1(v)=61(
Key Desirable Properties
The marginal contribution interpretation justifies why Shapley value satisfies:
- Symmetry: Identical players get equal values
- Efficiency: ∑i∈Nϕi(v)=v(N) (the total value is fully distributed)