Loading AI tools
Concept in game theory From Wikipedia, the free encyclopedia
The Shapley value is a solution concept in cooperative game theory. It was named in honor of Lloyd Shapley, who introduced it in 1951 and won the Nobel Memorial Prize in Economic Sciences for it in 2012.[1][2] To each cooperative game it assigns a unique distribution (among the players) of a total surplus generated by the coalition of all players. The Shapley value is characterized by a collection of desirable properties. Hart (1989) provides a survey of the subject.[3][4]
Formally, a coalitional game is defined as: There is a set N (of n players) and a function that maps subsets of players to the real numbers: , with , where denotes the empty set. The function is called a characteristic function.
The function has the following meaning: if S is a coalition of players, then (S), called the worth of coalition S, describes the total expected sum of payoffs the members of can obtain by cooperation.
The Shapley value is one way to distribute the total gains to the players, assuming that they all collaborate. It is a "fair" distribution in the sense that it is the only distribution with certain desirable properties listed below. According to the Shapley value,[5] the amount that player i is given in a coalitional game is
where n is the total number of players and the sum extends over all subsets S of N not containing player i, including the empty set. Also note that is the binomial coefficient. The formula can be interpreted as follows: imagine the coalition being formed one actor at a time, with each actor demanding their contribution as a fair compensation, and then for each actor take the average of this contribution over the possible different permutations in which the coalition can be formed.
An alternative equivalent formula for the Shapley value is:
where the sum ranges over all orders of the players and is the set of players in which precede in the order . Finally, it can also be expressed as
which can be interpreted as
From the characteristic function one can compute the synergy that each group of players provides. The synergy is the unique function , such that
for any subset of players. In other words, the 'total value' of the coalition comes from summing up the synergies of each possible subset of .
Given a characteristic function , the synergy function is calculated via
using the Inclusion exclusion principle. In other words, the synergy of coalition is the value , which is not already accounted for by its subsets.
The Shapley values are given in terms of the synergy function by[6][7]
where the sum is over all subsets of that include player .
This can be interpreted as
In other words, the synergy of each coalition is divided equally between all members.
Consider a simplified description of a business. An owner, o, provides crucial capital in the sense that, without him/her, no gains can be obtained. There are m workers w1,...,wm, each of whom contributes an amount p to the total profit. Let
The value function for this coalitional game is
Computing the Shapley value for this coalition game leads to a value of mp/2 for the owner and p/2 for each one of the m workers.
This can be understood from the perspective of synergy. The synergy function is
so the only coalitions that generate synergy are one-to-one between the owner and any individual worker.
Using the above formula for the Shapley value in terms of we compute
and
The result can also be understood from the perspective of averaging over all orders. A given worker joins the coalition after the owner (and therefore contributes p) in half of the orders and thus makes an average contribution of upon joining. When the owner joins, on average half the workers have already joined, so the owner's average contribution upon joining is .
The glove game is a coalitional game where the players have left- and right-hand gloves and the goal is to form pairs. Let
where players 1 and 2 have right-hand gloves and player 3 has a left-hand glove.
The value function for this coalitional game is
The formula for calculating the Shapley value is
where R is an ordering of the players and is the set of players in N which precede i in the order R.
The following table displays the marginal contributions of Player 1.
Observe
By a symmetry argument it can be shown that
Due to the efficiency axiom, the sum of all the Shapley values is equal to 1, which means that
The Shapley value has many desirable properties. Notably, it is the only payment rule satisfying the four properties of Efficiency, Symmetry, Linearity and Null player.[8] See[9]: 147–156 for more characterizations of the Shapley value.
The sum of the Shapley values of all agents equals the value of the grand coalition, so that all the gain is distributed among the agents:
Proof:
since is a telescoping sum and there are different orderings .
If and are two actors who are equivalent in the sense that
for every subset of which contains neither nor , then .
This property is also called equal treatment of equals.
If two coalition games described by gain functions and are combined, then the distributed gains should correspond to the gains derived from and the gains derived from :
for every in . Also, for any real number ,
for every in .
The Shapley value of a null player in a game is zero. A player is null in if for all coalitions that do not contain .
If is a subadditive set function, i.e., , then for each agent : .
Similarly, if is a superadditive set function, i.e., , then for each agent : .
So, if the cooperation has positive externalities, all agents (weakly) gain, and if it has negative externalities, all agents (weakly) lose.[9]: 147–156
If and are two agents, and is a gain function that is identical to except that the roles of and have been exchanged, then . This means that the labeling of the agents doesn't play a role in the assignment of their gains.
The Shapley value can be defined as a function which uses only the marginal contributions of player as the arguments.
In their 1974 book, Lloyd Shapley and Robert Aumann extended the concept of the Shapley value to infinite games (defined with respect to a non-atomic measure), creating the diagonal formula.[10] This was later extended by Jean-François Mertens and Abraham Neyman.
As seen above, the value of an n-person game associates with each player the expectation of their contribution to the worth of the coalition of players before them in a random ordering of all the players. When there are many players and each individual plays only a minor role, the set of all players preceding a given one is heuristically thought of as a good sample of all players. The value of a given infinitesimal player ds is then defined as "their" contribution to the worth of a "perfect" sample of all the players.
Symbolically, if v is the coalitional worth function that associates each coalition c with its value, and each coalition c is a measurable subset of the measurable set I of all players, that we assume to be without loss of generality, the value of an infinitesimal player ds in the game is
Here tI is a perfect sample of the all-player set I containing a proportion t of all the players, and is the coalition obtained after ds joins tI. This is the heuristic form of the diagonal formula[10].
Assuming some regularity of the worth function, for example, assuming v can be represented as differentiable function of a non-atomic measure on I, μ, with density function , with where is the characteristic function of c. Under such conditions
as can be shown by approximating the density by a step function and keeping the proportion t for each level of the density function, and
The diagonal formula has then the form developed by Aumann and Shapley (1974)
Above μ can be vector valued (as long as the function is defined and differentiable on the range of μ, the above formula makes sense).
In the argument above if the measure contains atoms is no longer true—this is why the diagonal formula mostly applies to non-atomic games.
Two approaches were deployed to extend this diagonal formula when the function f is no longer differentiable. Mertens goes back to the original formula and takes the derivative after the integral thereby benefiting from the smoothing effect. Neyman took a different approach. Going back to an elementary application of Mertens's approach from Mertens (1980):[11]
This works for example for majority games—while the original diagonal formula cannot be used directly. How Mertens further extends this by identifying symmetries that the Shapley value should be invariant upon, and averaging over such symmetries to create further smoothing effect commuting averages with the derivative operation as above.[12] A survey for non atomic value is found in Neyman (2002)[13]
The Shapley value only assigns values to the individual agents. It has been generalized[14] to apply to a group of agents C as,
In terms of the synergy function above, this reads[6][7]
where the sum goes over all subsets of that contain .
This formula suggests the interpretation that the Shapley value of a coalition is to be thought of as the standard Shapley value of a single player, if the coalition is treated like a single player.
The Shapley value was decomposed in[15] into a matrix of values
Each value represents the value of player to player . This matrix satisfies
i.e. the value of player to the whole game is the sum of their value to all individual players.
In terms of the synergy defined above, this reads
where the sum goes over all subsets of that contain and .
This can be interpreted as sum over all subsets that contain players and , where for each subset you
In other words, the synergy value of each coalition is evenly divided among all pairs of players in that coalition, where generates surplus for .
Shapley value regression is a statistical method used to measure the contribution of individual predictors in a regression model. In this context, the "players" are the individual predictors or variables in the model, and the "gain" is the total explained variance or predictive power of the model. This method ensures a fair distribution of the total gain among the predictors, attributing each predictor a value representing its contribution to the model's performance. Lipovetsky (2006) discussed the use of Shapley value in regression analysis, providing a comprehensive overview of its theoretical underpinnings and practical applications.[16]
Shapley value contributions are recognized for their balance of stability and discriminating power, which make them suitable for accurately measuring the importance of service attributes in market research.[17] Several studies have applied Shapley value regression to key drivers analysis in marketing research. Pokryshevskaya and Antipov (2012) utilized this method to analyze online customers' repeat purchase intentions, demonstrating its effectiveness in understanding consumer behavior.[18] Similarly, Antipov and Pokryshevskaya (2014) applied Shapley value regression to explain differences in recommendation rates for hotels in South Cyprus, highlighting its utility in the hospitality industry.[19] Further validation of the benefits of Shapley value in key-driver analysis is provided by Vriens, Vidden, and Bosch (2021), who underscored its advantages in applied marketing analytics.[20]
The Shapley value provides a principled way to explain the predictions of nonlinear models common in the field of machine learning. By interpreting a model trained on a set of features as a value function on a coalition of players, Shapley values provide a natural way to compute which features contribute to a prediction [21] or contribute to the uncertainty of a prediction.[22] This unifies several other methods including Locally Interpretable Model-Agnostic Explanations (LIME),[23] DeepLIFT,[24] and Layer-Wise Relevance Propagation.[25][26]
Seamless Wikipedia browsing. On steroids.
Every time you click a link to Wikipedia, Wiktionary or Wikiquote in your browser's search results, it will show the modern Wikiwand interface.
Wikiwand extension is a five stars, simple, with minimum permission required to keep your browsing private, safe and transparent.