In
cooperative game theory
In game theory, a cooperative game (or coalitional game) is a game with groups of players who form binding “coalitions” with external enforcement of cooperative behavior (e.g. through contract law). This is different from non-cooperative ...
, the Shapley value is a method (
solution concept) for fairly distributing the total gains or costs among a group of players who have collaborated. For example, in a team project where each member contributed differently, the Shapley value provides a way to determine how much credit or blame each member deserves. It was named in honor of
Lloyd Shapley
Lloyd Stowell Shapley (; June 2, 1923 – March 12, 2016) was an American mathematician and Nobel Memorial Prize-winning economist. He contributed to the fields of mathematical economics and especially game theory. Shapley is generally conside ...
, who introduced it in 1951 and won the
Nobel Memorial Prize in Economic Sciences
The Nobel Memorial Prize in Economic Sciences, officially the Sveriges Riksbank Prize in Economic Sciences in Memory of Alfred Nobel (), commonly referred to as the Nobel Prize in Economics(), is an award in the field of economic sciences adminis ...
for it in 2012.
The Shapley value determines each player's contribution by considering how much the overall outcome changes when they join each possible combination of other players, and then averaging those changes. In essence, it calculates each player's average marginal contribution across all possible coalitions. It is the only solution that satisfies four fundamental properties: efficiency, symmetry, additivity, and the dummy player (or null player) property,
which are widely accepted as defining a fair distribution.
This method is used in many fields, from dividing profits in business partnerships to understanding feature importance in
machine learning
Machine learning (ML) is a field of study in artificial intelligence concerned with the development and study of Computational statistics, statistical algorithms that can learn from data and generalise to unseen data, and thus perform Task ( ...
.

Formal definition
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
is a coalition of players, then
, called the worth of coalition
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, the amount that player
is given in a coalitional game
is
:
:
where
is the total number of players and the sum extends over all subsets
of
not containing player
, including the empty set. Also note that
is the
binomial coefficient
In mathematics, the binomial coefficients are the positive integers that occur as coefficients in the binomial theorem. Commonly, a binomial coefficient is indexed by a pair of integers and is written \tbinom. It is the coefficient of the t ...
. 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
permutation
In mathematics, a permutation of a set can mean one of two different things:
* an arrangement of its members in a sequence or linear order, or
* the act or process of changing the linear order of an ordered set.
An example of the first mean ...
s in which the coalition can be formed.
An alternative equivalent formula for the Shapley value is:
: