Title: | Analysis of Conflicting Claims |
---|---|
Description: | The analysis of conflicting claims arises when an amount has to be divided among a set of agents with claims that exceed what is available. A rule is a way of selecting a division among the claimants. This package computes the main rules introduced in the literature from the old times until nowadays. The inventory of rules covers the proportional and the adjusted proportional rules, the constrained equal awards and the constrained equal losses rules, the constrained egalitarian, the Piniles’ and the minimal overlap rules, the random arrival and the Talmud rules. Besides, the Dominguez and Thomson and the average of awards rules are also included. All of them can be found in the book of W. Thomson (2019), 'How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation', with the exception of the average of awards rule (Mirás Calvo et al. (2022), <doi:10.1007/s00355-022-01414-6>). In addition, graphical diagrams allow the user to represent, among others, the set of awards, the paths of awards, and the schedules of awards of a rule, and some indexes. A good understanding of the similarities and the differences of the rules is useful for a better decision making. Therefore this package could be helpful to students, researchers and managers alike. |
Authors: | Iago Núñez Lugilde [aut, cre] (SIDOR. Universidade de Vigo. Departamento de Estatística e Investigación Operativa. Spain), Miguel Ángel Mirás Calvo [aut] (RGEAF. Universidade de Vigo. Departamento de Matemáticas. Spain), Carmen Quinteiro Sandomingo [aut] (Universidade de Vigo. Departamento de Matemáticas. Spain), Estela Sánchez Rodríguez [aut] (CINBIO. Universidade de Vigo. Grupo SIDOR. Departamento de Estatística e Investigación Operativa. Universidade de Vigo. Spain) |
Maintainer: | Iago Núñez Lugilde <[email protected]> |
License: | GPL-3 |
Version: | 0.2.1 |
Built: | 2025-02-11 03:26:36 UTC |
Source: | https://github.com/cran/ClaimsProblems |
This function returns the awards vector assigned by the average of awards rule (AA) to a claims problem.
AA(E, d, name = FALSE)
AA(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if
and satisfies the balance requirement, that is,
the sum of its coordinates is equal to
.
Let
be the set of awards vectors for
.
The average of awards rule assigns to each claims problem
the expectation of the uniform distribution defined over the set of awards vectors, that is,
the centroid of
.
Let be the (n-1)-dimensional Lebesgue measure and
the measure (volume) of the set of awards
.
The average of awards rule assigns to each problem
the awards vector given by:
The average of awards rule corresponds to the core-center of the associated coalitional (pessimistic) game.
The awards vector selected by the AA rule. If name = TRUE, the name of the function (AA) as a character string.
Gonzalez-Díaz, J. and Sánchez-Rodríguez, E. (2007). A natural selection from the core of a TU game: the core-center. International Journal of Game Theory, 36(1), 27-46.
Mirás Calvo, M.Á., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2022). The average-of-awards rule for claims problems. Soc Choice Welf. doi:10.1007/s00355-022-01414-6
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2020). An algorithm to compute the core-center rule of a claims problem with an application to the allocation of CO2 emissions. Working paper.
allrules, CD, setofawards, coalitionalgame
E=10 d=c(2,4,7,8) AA(E,d) #The average of awards rule is self-dual: AA(E,d)=d-AA(D-E,d) D=sum(d) d-AA(D-E,d)
E=10 d=c(2,4,7,8) AA(E,d) #The average of awards rule is self-dual: AA(E,d)=d-AA(D-E,d) D=sum(d) d-AA(D-E,d)
This function returns the awards vectors selected, for a given claims problem, by the rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, and Talmud.
allrules(E, d, draw = TRUE, col = NULL)
allrules(E, d, draw = TRUE, col = NULL)
E |
The endowment. |
d |
The vector of claims. |
draw |
A logical value. |
col |
The colours (useful only if draw=TRUE). If col=NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
Let be the endowment to be divided and
the vector of claims with
and such that
\sum_{i=1}^{n} d_i\ge E,\
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if:
no claimant is asked to pay (
);
no claimant receives more than his claim (
);
and the balance requirement is satisfied, that is, the sum of the awards is equal to the endowment (
).
A rule is a function that assigns to each claims problem an awards vector for
,
that is, a division between the claimants of the amount available.
The formal definitions of the main rules are given in the corresponding function help.
A data-frame with the awards vectors selected by the main division rules. If draw = TRUE, it displays a mosaic plot representing the data-frame.
Mirás Calvo, M.Á., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2022). The average-of-awards rule for claims problems. Soc Choice Welf. doi:10.1007/s00355-022-01414-6
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
AA, APRO, CD, CE, CEA, CEL , DT, MO, PIN, PRO, RA, Talmud, verticalruleplot
E=10 d=c(2,4,7,8) allrules(E,d)
E=10 d=c(2,4,7,8) allrules(E,d)
This function returns the awards vector assigned by the adjusted proportional rule (APRO) to a claims problem.
APRO(E, d, name = FALSE)
APRO(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
For each subset of the set of claimants
, let
be the sum of claims of the members of
and let
be the complementary coalition of
.
The minimal right of claimant in
is whatever is left after every other claimant has received his claim, or 0 if that is not possible:
Let be the vector of minimal rights.
The truncated claim of claimant in
is the minimum of the claim and the endowment:
Let be the vector of truncated claims.
The adjusted proportional rule first gives to each claimant the minimal right, and then divides the remainder
of the endowment
proportionally with respect to the new claims. The vector of the new claims
is determined by the minimum of the remainder and the lowered claims,
. Therefore:
The adjusted proportional rule corresponds to the -value of the associated (pessimistic) coalitional game.
The awards vector selected by the APRO rule. If name = TRUE, the name of the function (APRO) as a character string.
Curiel, I. J., Maschler, M., and Tijs, S. H. (1987). Bankruptcy games. Zeitschrift für operations research, 31(5), A143-A159.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2021). The adjusted proportional and the minimal overlap rules restricted to the lower-half, higher-half, and middle domains. Working paper 2021-02, ECOBAS.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
allrules, CD, PRO, coalitionalgame
E=10 d=c(2,4,7,8) APRO(E,d) #The adjusted proportional rule is self-dual: APRO(E,d)=d-APRO(D-E,d) D=sum(d) d-APRO(D-E,d)
E=10 d=c(2,4,7,8) APRO(E,d) #The adjusted proportional rule is self-dual: APRO(E,d)=d-APRO(D-E,d) D=sum(d) d-APRO(D-E,d)
This function returns the awards vector assigned by the concede-and-divide (CD) rule to a two-claimant problem.
CD(E, d, name = FALSE)
CD(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of two claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that the sum of the two claims exceeds the endowment
.
The concede-and-divide rule first assigns to each of the two claimants the difference between the endowment and the other agent’s claim (or 0 if this difference is negative), and divides the remainder equally.
Several rules are extensions of the concede-and-divide rule to general populations: AA, APRO, MO, RA, and Talmud.
The awards vector selected by the CD rule. If name = TRUE, the name of the function (CD) as a character string.
Aumann, R. and Maschler, M., (1985). Game theoretic analysis of a bankruptcy problem from the Talmud. J. Econ. Theory 36, 195–213.
Mirás Calvo, M. Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2021). Analyzing rules that extend the concede-and-divide principle. Preprint.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
allrules, pathawards, AA, APRO, MO, RA, Talmud
E=10 d=c(7,8) CD(E,d) # Talmud, RA, MO, APRO, and AA coincide with CD for two-claimant problems Talmud(E,d) RA(E,d) MO(E,d) APRO(E,d) AA(E,d)
E=10 d=c(7,8) CD(E,d) # Talmud, RA, MO, APRO, and AA coincide with CD for two-claimant problems Talmud(E,d) RA(E,d) MO(E,d) APRO(E,d) AA(E,d)
This function returns the awards vector assigned by the constrained egalitarian rule (CE) rule to a claims problem.
CE(E, d, name = FALSE)
CE(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
Assume that the claims are ordered from small to large, .
The constrained egalitarian rule coincides with the constrained equal awards rule (CEA) applied to
the problem
if the endowment is less or equal than the half-sum of the claims
.
Otherwise, any additional unit is assigned to claimant
until she/he receives the minimum
of the claim and half of
. If this minimun is
, she/he stops there. If it is not, the next increment is
divided equally between claimants
and
until claimant
receives
(in this case she drops out) or they reach
.
If claimant
leaves, claimant
receives any aditional increment until she/he reaches
or
. In the case that claimant
and
reach
, any additional unit is divided between claimants
,
, and
until the first one receives
or they reach
, and so on.
Therefore:
If then
where
is chosen so as to achieve balance.
If then the CE rule assigns to claimant
the maximum of two quantities: the half-claim and the minimum of the claim and a value
chosen so as to achieve balance.
The awards vector selected by the CE rule. If name = TRUE, the name of the function (CE) as a character string.
Chun, Y., Schummer, J., Thomson, W. (2001). Constrained egalitarianism: a new solution for claims problems. Seoul J. Economics 14, 269–297.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
E=10 d=c(2,4,7,8) CE(E,d)
E=10 d=c(2,4,7,8) CE(E,d)
This function returns the awards vector assigned by the constrained equal awards rule (CEA) to a claims problem.
CEA(E, d, name = FALSE)
CEA(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and let
be the vector of claims
with
and such that
the sum of claims exceeds the endowment.
The constrained equal awards rule (CEA) equalizes awards under the constraint that no individual's
award exceeds his/her claim. Then, claimant receives the minimum of the claim and a value
chosen so as to achieve balance.
The constrained equal awards rule corresponds to the Dutta-Ray solution to the associated (pessimistic) coalitional game. The CEA and CEL rules are dual.
The awards vector selected by the CEA rule. If name = TRUE, the name of the function (CEA) as a character string.
Maimonides, Moses, 1135-1204. Book of Judgements, Moznaim Publishing Corporation, New York, Jerusalem (Translated by Rabbi Elihahu Touger, 2000).
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
allrules, CE, CEL, PIN, Talmud
E=10 d=c(2,4,7,8) CEA(E,d) # CEA and CEL are dual: CEA(E,d)=d-CEL(D-E,d) D=sum(d) d-CEL(D-E,d)
E=10 d=c(2,4,7,8) CEA(E,d) # CEA and CEL are dual: CEA(E,d)=d-CEL(D-E,d) D=sum(d) d-CEL(D-E,d)
This function returns the awards vector assigned by the constrained equal losses rule (CEL) to a claims problem.
CEL(E, d, name = FALSE)
CEL(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and let
be the vector of claims
with
and such that
the sum of claims exceeds the endowment.
The constrained equal losses rule (CEL) equalizes losses under the constraint that no award
is negative. Then, claimant receives the maximum of zero and the claim minus a number
chosen so as to achieve balance.
CEA and CEL are dual rules.
The awards vector selected by the CEL rule. If name = TRUE, the name of the function (CEL) as a character string.
Maimonides, Moses, 1135-1204. Book of Judgements, Moznaim Publishing Corporation, New York, Jerusalem (Translated by Rabbi Elihahu Touger, 2000).
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
E=10 d=c(2,4,7,8) CEL(E,d) # CEL and CEA are dual: CEL(E,d)=d-CEA(D-E,d) D=sum(d) d-CEA(D-E,d)
E=10 d=c(2,4,7,8) CEL(E,d) # CEL and CEA are dual: CEL(E,d)=d-CEA(D-E,d) D=sum(d) d-CEA(D-E,d)
This function returns the pessimistic and optimistic coalitional games associated with a claims problem.
coalitionalgame(E, d, opt = FALSE, lex = FALSE)
coalitionalgame(E, d, opt = FALSE, lex = FALSE)
E |
The endowment. |
d |
The vector of claims. |
opt |
Logical parameter. If opt = TRUE, both the pessimist and optimistic associated coalitional games are given. By default, opt = FALSE, and only the associated pessimistic coalitional game is computed. |
lex |
Logical parameter. If lex = TRUE, coalitions of claimants are ordered lexicographically. By default, lex = FALSE, and coalitions are ordered using their binary representations. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
For each subset of the set of claimants
, let
be the sum of claims of the members of
and let
be the complementary coalition of
.
Given a claims problem , its associated pessimistic coalitional game is the game
assigning to each coalition
the real number:
Given a claims problem , its associated optimistic coalitional game is the game
assigning to each coalition
the real number:
The optimistic and the pessimistic coalitional games are dual games, that is, for all :
An efficient way to represent a nonempty coalition is by identifying it with the binary sequence
where
if
and
otherwise.
Therefore, each coalition
is represented by the number associated with its binary representation:
.
Then coalitions can be ordered by their associated numbers.
Alternatively, coalitions can be ordered lexicographically.
Given a claims problem , its associated coalitional game
can be represented by the vector whose coordinates are the values assigned by
to all the nonempty coalitions.
For instance. if
, the associated coalitional game can be represented by the vector of the values of all the 7 nonempty coalitions, ordered using the binary representation:
Alternatively, the coordinates can be ordered lexicographically:
When , the associated coalitional game can be represented by the vector of the values of all the 15 nonempty coalitions, ordered using the binary representation:
Alternatively, the coordinates can be ordered lexicographically:
The pessimistic (and optimistic) associated coalitional game(s).
O’Neill B (1982) A problem of rights arbitration from the Talmud. Math Soc Sci 2:345–371.
E=10 d=c(2,4,7,8) v=coalitionalgame(E,d,opt=TRUE,lex=TRUE) #The pessimistic and optimistic coalitional games are dual games v_pes=v$v_pessimistic_lex v_opt=v$v_optimistic_lex v_opt[1:14]==10-v_pes[14:1]
E=10 d=c(2,4,7,8) v=coalitionalgame(E,d,opt=TRUE,lex=TRUE) #The pessimistic and optimistic coalitional games are dual games v_pes=v$v_pessimistic_lex v_opt=v$v_optimistic_lex v_opt[1:14]==10-v_pes[14:1]
The graphical representation of the cumulative curves of a rule (or several rules) with respect to a given rule, for a claims problem.
cumawardscurve(E, d, Rule = PRO, Rules, col = NULL, legend = TRUE)
cumawardscurve(E, d, Rule = PRO, Rules, col = NULL, legend = TRUE)
E |
The endowment. |
d |
The vector of claims. |
Rule |
Principal Rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. By default, Rule = PRO. |
Rules |
The rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
col |
The colours. If col = NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
legend |
A logical value. The colour legend is shown if legend = TRUE. |
Let be the endowment to be divided and
the vector of claims
with
and such that the sum of claims
exceeds the endowment.
Rearrange the claims from small to large, . The cumulative curve allows us
to compare the division recommended by a specific rule
with the division the division recommended by another specific rule
.
The cumulative awards curve of a rule with respect of a rule
for the claims problem
is the polygonal path connecting the
points
The cumulative awards curve fully captures the Lorenz ranking of rules:
if a rule Lorenz-dominates a rule
then, for each claims problem, the cumulative curve of
lies above the cumulative curve of
.
If
, the cumulative curve coincides with the cumulative claims-awards curve.
function of version 0.1.0 returned the cumulative claims-awards curve with respect to the proportional rule.
The graphical representation of the cumulative curves of a rule (or several rules) for a claims problem.
Lorenz, M. O. (1905). Methods of measuring the concentration of wealth. Publications of the American statistical association, 9(70), 209-219.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2022). Deviation from proportionality and Lorenz-domination for claims problems. Rev Econ Design. doi:10.1007/s10058-022-00300-y
deviationindex, indexgpath, lorenzcurve, giniindex, lorenzdominance, allrules.
E=10 d=c(2,4,7,8) Rule=PRO Rules=c(AA,RA,Talmud,CEA,CEL) cumawardscurve(E,d,Rule,Rules)
E=10 d=c(2,4,7,8) Rule=PRO Rules=c(AA,RA,Talmud,CEA,CEL) cumawardscurve(E,d,Rule,Rules)
This function returns the deviation index and the signed deviation index for a rule with respect to another rule.
deviationindex(E, d, R, S)
deviationindex(E, d, R, S)
E |
The endowment. |
d |
The vector of claims. |
R |
A rule : AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
S |
A rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
Let be the endowment to be divided and
the vector of claims
with
and such that
, the sum of claims
exceeds the endowment.
Rearrange the claims from small to large, .
The signed deviation index of the rule
with respect to the rule
for the problem
, denoted by
, is
the ratio of the area that lies between the identity line and the cumulative curve over the total area under the identity line.
Let and
. For each
define
and
. Then
In general .
The deviation index of the rule with respect to the rule
for the problem
, denoted by
, is
the ratio of the area between the line of the cumulative sum of the distribution proposed by the rule
and the cumulative curve over the area under the line
.
In general .
The proportionality deviation index is the deviation index when . The proportionality deviation index of the proportional rule is zero for all claims problems.
The signed proportionality deviation index is the signed deviation index with
.
function of version 0.1.0 returned the the signed proportionality index.
The deviation index and the signed deviation index of a rule for a claims problem.
Ceriani, L. and Verme, P. (2012). The origins of the Gini index: extracts from Variabilitá e Mutabilitá (1912) by Corrado Gini. The Journal of Economic Inequality, 10(3), 421-443.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2022). Deviation from proportionality and Lorenz-domination for claims problems. Rev Econ Design. doi:10.1007/s10058-022-00300-y
indexgpath, cumawardscurve, lorenzcurve, giniindex, lorenzdominance, allrules.
E=10 d=c(2,4,7,8) R=CEA S=AA deviationindex(E,d,R,S) #The deviation index of rule R with respect of the rule R is 0. deviationindex(E,d,PRO,PRO)
E=10 d=c(2,4,7,8) R=CEA S=AA deviationindex(E,d,R,S) #The deviation index of rule R with respect of the rule R is 0. deviationindex(E,d,PRO,PRO)
This function returns the awards vector assigned by the Dominguez-Thomson rule (DT) to a claims problem.
DT(E, d, name = FALSE)
DT(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
The truncated claim of claimant in
is the minimum of the claim and the endowment.
Let be the vector of truncated claims
and
The DT rule is defined recursively such that, in each step, each claimant receives the -th part of the truncated claim.
Let . For each
define:
In step 1, the endowment is E and the claims vector is d.
For , the endowment is the remainder once all the claimants have received the amount of the previous steps and the new vector of claims is readjusted accordingly.
Observe that neither the endowment nor each agent's claim ever increases from one step to the next.
This recursive process exhausts
in the limit.
For each the Dominguez-Thomson rule assigns the awards vector:
The awards vector selected by the DT rule. If name = TRUE, the name of the function (DT) as a character string.
Domínguez, D. and Thomson, W. (2006). A new solution to the problem of adjudicating conflicting claims. Economic Theory, 28(2), 283-307.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
E=10 d=c(2,4,7,8) DT(E,d)
E=10 d=c(2,4,7,8) DT(E,d)
For each claimaint, it plots the awards of the chosen rules for a dynamic model with t periods.
dynamicplot( E, d, Rules, claimant, percentage, times, col = NULL, legend = TRUE )
dynamicplot( E, d, Rules, claimant, percentage, times, col = NULL, legend = TRUE )
E |
The endowment. |
d |
The vector of claims |
Rules |
The rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
claimant |
A claimant. |
percentage |
A number in (0,1). |
times |
Number of iterations. |
col |
The colours. If col=NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
legend |
A logical value. The colour legend is shown if legend=TRUE. |
Let be the endowment to be divided and
the vector of claims with
and such that
\sum_{i=1}^{n} d_i\ge E,\
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if:
no claimant is asked to pay (
);
no claimant receives more than his claim (
);
and the balance requirement is satisfied, that is, the sum of the awards is equal to the endowment (
).
A rule is a function that assigns to each claims problem an awards vector for
,
that is, a division between the claimants of the amount available.
The formal definitions of the main rules are given in the corresponding function help.
Given a natural number, the function solves each claims problem in time
, which is
, with
,
and
.
This function represents the awards proposed by different rules for a claimant if the resource decreases in each iteration by a given percentage.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2020). An algorithm to compute the core-center rule of a claims problem with an application to the allocation of CO2 emissions. Working paper.
allrules, pathawards, pathawards3, schedrule, schedrules
E=10 d=c(2,4,7,8) Rules=c(Talmud,RA,AA,PRO) claimant=1 percentage=0.076 times=10 dynamicplot(E,d,Rules,claimant,percentage,times)
E=10 d=c(2,4,7,8) Rules=c(Talmud,RA,AA,PRO) claimant=1 percentage=0.076 times=10 dynamicplot(E,d,Rules,claimant,percentage,times)
This function returns the Gini index of any rule for a claims problem.
giniindex(E, d, Rule)
giniindex(E, d, Rule)
E |
The endowment. |
d |
The vector of claims. |
Rule |
A rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
Let be the endowment to be divided and
the vector of claims
with
and such that
, the sum of claims
exceeds the endowment.
Rearrange the claims from small to large, . The Gini index is a number aimed at measuring the degree of inequality in a distribution.
The Gini index of the rule
for the problem
, denoted by
, is
the ratio of the area that lies between the identity line and the Lorenz curve of the rule over the total area under the identity line.
Let . For each
define
and
. Then
In general .
The Gini index of a rule for a claims problem and the Gini index of the vector of claims.
Ceriani, L. and Verme, P. (2012). The origins of the Gini index: extracts from Variabilitá e Mutabilitá (1912) by Corrado Gini. The Journal of Economic Inequality, 10(3), 421-443.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2022). Deviation from proportionality and Lorenz-domination for claims problems. Rev Econ Design. doi:10.1007/s10058-022-00300-y
lorenzcurve, cumawardscurve, deviationindex, indexgpath, lorenzdominance.
E=10 d=c(2,4,7,8) Rule=AA giniindex(E,d,Rule) # The Gini index of the proportional awards coincides with the Gini index of the vector of claims giniindex(E,d,PRO)
E=10 d=c(2,4,7,8) Rule=AA giniindex(E,d,Rule) # The Gini index of the proportional awards coincides with the Gini index of the vector of claims giniindex(E,d,PRO)
The function returns the deviation index path or the signed deviation index path for a rule with respect to another rule for a vector of claims.
indexgpath( d, Rule = PRO, Rules, signed = TRUE, col = NULL, points = 201, legend = TRUE )
indexgpath( d, Rule = PRO, Rules, signed = TRUE, col = NULL, points = 201, legend = TRUE )
d |
The vector of claims. |
Rule |
Principal Rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. By default, Rule = PRO. |
Rules |
The rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
signed |
A logical value. If signed = FALSE, it draws the deviation index path and, if signed = TRUE it draws the signed deviation index path. By default, signed = TRUE. |
col |
The colours. If col = NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
points |
The number of endowment values to be drawn. |
legend |
A logical value. The legend is shown if legend = TRUE. |
Let be a vector of claims rearranged from small to large,
.
Given two rules and
, consider the function
that assigns to each
the value
, that is, the signed deviation index of the rules
and
for the problem
.
The graph of
is the signed index path of
in function of the rule
for the vector of claims
.
Given two rules and
, consider the function
that assigns to each
the value
, that is, the deviation index of the rules
and
for the problem
.
The graph of
is the index path of
in function of the rule
for the vector of claims
.
The signed index path and the index path are simple tools to visualize the discrepancy of the divisions recommended by a rule for a vector of claims with respect to the divisions recommended by another rule. If R = PRO, the function draws the proportionality deviation index path or the signed proportionality deviation index path.
function of version 0.1.0 returned the signed proportionality deviation index path.
This function returns the deviation index path of a rule (or several rules) for a vector of claims.
Ceriani, L. and Verme, P. (2012). The origins of the Gini index: extracts from Variabilitá e Mutabilitá (1912) by Corrado Gini. The Journal of Economic Inequality, 10(3), 421-443.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2022). Deviation from proportionality and Lorenz-domination for claims problems. Rev Econ Design. doi:10.1007/s10058-022-00300-y
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
deviationindex, cumawardscurve, giniindex, lorenzcurve, lorenzdominance, allrules.
d=c(2,4,7,8) Rule=PRO Rules=c(Talmud,RA,AA) col=c("red","green","blue") indexgpath(d,Rule,Rules,signed=TRUE,col)
d=c(2,4,7,8) Rule=PRO Rules=c(Talmud,RA,AA) col=c("red","green","blue") indexgpath(d,Rule,Rules,signed=TRUE,col)
This function returns the Lorenz curve of any rule for a claims problem.
lorenzcurve(E, d, Rules, col = NULL, legend = TRUE)
lorenzcurve(E, d, Rules, col = NULL, legend = TRUE)
E |
The endowment. |
d |
The vector of claims. |
Rules |
The rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
col |
The colours. If col=NULL then the sequence of default colors is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
legend |
A logical value. The colour legend is shown if legend=TRUE. |
Let be the endowment to be divided and
the vector of claims
with
and such that the sum of claims
exceeds the endowment.
Rearrange the claims from small to large, . The Lorenz curve represents the proportion of the awards given to each subset of claimants by a specific rule
as a function of the
cumulative distribution of population.
The Lorenz curve of a rule for the claims problem
is the polygonal path connecting the
points
Basically, it represents the cumulative percentage of the endowment assigned by the rule to each cumulative percentage of claimants.
The graphical representation of the Lorenz curve of a rule (or several rules) for a claims problem.
Lorenz, M. O. (1905). Methods of measuring the concentration of wealth. Publications of the American statistical association, 9(70), 209-219.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2022). Deviation from proportionality and Lorenz-domination for claims problems. Rev Econ Design. doi:10.1007/s10058-022-00300-y
giniindex, cumawardscurve, deviationindex, indexgpath, lorenzdominance.
E=10 d=c(2,4,7,8) Rules=c(AA,RA,Talmud,CEA,CEL) col=c("red","blue","green","yellow","pink") lorenzcurve(E,d,Rules,col)
E=10 d=c(2,4,7,8) Rules=c(AA,RA,Talmud,CEA,CEL) col=c("red","blue","green","yellow","pink") lorenzcurve(E,d,Rules,col)
This function checks whether or not the awards assigned by two rules to a claims problem are Lorenz-comparable.
lorenzdominance(E, d, Rules, Info = FALSE)
lorenzdominance(E, d, Rules, Info = FALSE)
E |
The endowment. |
d |
The vector of claims. |
Rules |
The two rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
Info |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if
and satisfies the balance requirement, that is,
the sum of its coordinates is equal to
.
Let
be the set of awards vectors for
.
Given a claims problem , in order to compare a pair of awards vectors
with the Lorenz criterion,
first one has to rearrange the coordinates of each allocation in a non-decreasing order. Then we say that
Lorenz-dominates
(or, that
is Lorenz-dominated by
)
if all the cumulative sums of the rearranged coordinates are greater with
than with
. That is,
Lorenz-dominates
if for each
we have that
Let and
be two rules. We say that
Lorenz-dominates
if
Lorenz-dominates
for all
.
If Info = FALSE, the Lorenz-dominance relation between the awards vectors selected by both rules. If both awards vectors are equal then cod = 2. If the awards vectors are not Lorenz-comparable then cod = 0. If the awards vector selected by the first rule Lorenz-dominates the awards vector selected by the second rule then cod = 1; otherwise cod = -1. If Info = TRUE, it also gives the corresponding cumulative sums.
Lorenz, M. O. (1905). Methods of measuring the concentration of wealth. Publications of the American statistical association, 9(70), 209-219.
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez Rodríguez, E. (2022). Deviation from proportionality and Lorenz-domination for claims problems. Rev Econ Design. doi:10.1007/s10058-022-00300-y
Mirás Calvo, M.Á., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2021). The adjusted proportional and the minimal overlap rules restricted to the lower-half, higher-half, and middle domains. Working paper 2021-02, ECOBAS.
cumawardscurve, deviationindex, indexgpath, lorenzcurve, giniindex.
E=10 d=c(2,4,7,8) Rules=c(AA,CEA) lorenzdominance(E,d,Rules)
E=10 d=c(2,4,7,8) Rules=c(AA,CEA) lorenzdominance(E,d,Rules)
This function returns the awards vector assigned by the minimal overlap rule rule (MO) to a claims problem.
MO(E, d, name = FALSE)
MO(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
The truncated claim of a claimant is the minimum of the claim and the endowment:
Suppose that each agent claims specific parts of E equal to her/his claim. After arranging which parts agents claim so as to “minimize conflict”, equal division prevails among all agents claiming a specific part and each agent receives the sum of the compensations she/he gets from the various parts that he claimed.
Let . The minimal overlap rule is defined, for each problem
and each claimant
, as:
If then
If let
, with
,
be the unique solution to the equation
. Then:
The awards vector selected by the MO rule. If name = TRUE, the name of the function (MO) as a character string.
Mirás Calvo, M.A., Núñez Lugilde, I., Quinteiro Sandomingo, C., and Sánchez-Rodríguez, E. (2021). The adjusted proportional and the minimal overlap rules restricted to the lower-half, higher-half, and middle domains. Working paper 2021-02, ECOBAS.
O'Neill, B. (1982). A problem of rights arbitration from the Talmud. Math. Social Sci. 2, 345-371.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
E=10 d=c(2,4,7,8) MO(E,d)
E=10 d=c(2,4,7,8) MO(E,d)
This function returns the graphical representation of the path of awards of any rule for a claims vector and a pair of claimants.
pathawards(d, claimants, Rule, col = "red", points = 201)
pathawards(d, claimants, Rule, col = "red", points = 201)
d |
The vector of claims. |
claimants |
Two claimants. |
Rule |
The rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
col |
The colour. |
points |
The number of values of the endowment to draw the path. |
Let , with
, be a vector of claims and
denote
the sum of claims.
The path of awards of a rule for two claimants
and
is the parametric curve:
The graphical representation of the path of awards of a rule for the given claims and a pair of claimants.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
pathawards3, schedrule, schedrules, verticalruleplot
d=c(2,4,7,8) claimants=c(1,2) Rule=Talmud pathawards(d,claimants,Rule) # The path of awards of the concede-and-divide rule pathawards(c(2,3),c(1,2),CD) #The path of awards of the DT rule for d=(d1,d2) with d2<2d1 pathawards(c(1,1.5),c(1,2),DT,col="blue",points=1001) #The path of awards of the DT rule for d=(d1,d2) with d2>2d1 pathawards(c(1,2.5),c(1,2),DT,col="blue",points=1001)
d=c(2,4,7,8) claimants=c(1,2) Rule=Talmud pathawards(d,claimants,Rule) # The path of awards of the concede-and-divide rule pathawards(c(2,3),c(1,2),CD) #The path of awards of the DT rule for d=(d1,d2) with d2<2d1 pathawards(c(1,1.5),c(1,2),DT,col="blue",points=1001) #The path of awards of the DT rule for d=(d1,d2) with d2>2d1 pathawards(c(1,2.5),c(1,2),DT,col="blue",points=1001)
This function returns the graphical representation of the path of awards of any rule for a claims vector and three claimants.
pathawards3(d, claimants, Rule, col = "red", points = 300)
pathawards3(d, claimants, Rule, col = "red", points = 300)
d |
The vector of claims. |
claimants |
Three claimants. |
Rule |
The rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
col |
The colour of the path, by default, col="red". |
points |
The number of values of the endowment to draw the path. |
Let , with
, be a vector of claims and
denote
the sum of claims.
The path of awards of a rule for three claimants
,
, and
is the parametric curve:
The graphical representation of the path of awards of a rule for the given claims and three claimants.
pathawards, schedrule, schedrules, verticalruleplot
d=c(2,4,7,8) claimants=c(1,3,4) Rule=Talmud pathawards3(d,claimants,Rule)
d=c(2,4,7,8) claimants=c(1,3,4) Rule=Talmud pathawards3(d,claimants,Rule)
This function returns the awards vector assigned by the Piniles' rule (PIN) to a claims problem.
PIN(E, d, name = FALSE)
PIN(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
, the sum of claims
exceeds the endowment.
The Piniles' rule coincides with the constrained equal awards rule (CEA) applied to
the problem if the endowment is less or equal than the half-sum of the claims,
.
Otherwise it assigns to each claimant
half of the claim,
and,
then, it distributes the remainder with the CEA rule. Therefore:
If then,
If then,
The awards vector selected by the PIN rule. If name = TRUE, the name of the function (PIN) as a character string.
Piniles, H.M. (1861). Darkah shel Torah. Forester, Vienna.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
E=10 d=c(2,4,7,8) PIN(E,d)
E=10 d=c(2,4,7,8) PIN(E,d)
This function plots an awards vector in the set of awards vectors for a claims problem.
plotrule(E, d, Rule = NULL, awards = NULL, set = TRUE, col = "blue")
plotrule(E, d, Rule = NULL, awards = NULL, set = TRUE, col = "blue")
E |
The endowment. |
d |
The vector of claims. |
Rule |
A rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
awards |
An awards vector. |
set |
A logical value. |
col |
The colour. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if
and satisfies the balance requirement, that is,
the sum of its coordinates is equal to
.
Let
be the set of awards vectors for the problem
.
A rule is a function that assigns to each claims problem an awards vector for
,
that is, a division between the claimants of the amount available.
If set = TRUE, the function creates a new figure plotting both the set of awards vectors for the claims problem and the given awards vector. Otherwise, it just adds to the current picture the point representing the given awards vector. The function only plots one awards vector at a time.
The awards vector can be introduced directly as a vector. Alternatively, we can provide a rule and then the awards vector to be plotted is the one selected by the rule for the claims problem. Therefore, if Rule = NULL it plots the given awards vector. Otherwise, it plots the awards vector selected by the given rule for the claims problem. In order to plot two (or more) awards vectors, draw the first one with the option set = TRUE and add the others, one by one, with the option set = FALSE.
E=10 d=c(2,4,7,8) plotrule(E,d,Rule=AA,col="red") # Plotting the awards vector (1,3,5,1) and the AA rule # First, plot the awards vector (1,3,5,1) and the set of awards plotrule(E,d,awards=c(1,3,5,1),col="green") # Second, add the AA rule with the option set=FALSE plotrule(E,d,Rule=AA,set=FALSE,col="red")
E=10 d=c(2,4,7,8) plotrule(E,d,Rule=AA,col="red") # Plotting the awards vector (1,3,5,1) and the AA rule # First, plot the awards vector (1,3,5,1) and the set of awards plotrule(E,d,awards=c(1,3,5,1),col="green") # Second, add the AA rule with the option set=FALSE plotrule(E,d,Rule=AA,set=FALSE,col="red")
This function returns the awards vector assigned by the proportional rule (PRO) to a claims problem.
PRO(E, d, name = FALSE)
PRO(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
, the sum of claims
exceeds the endowment.
The proportional rule distributes awards proportional to claims.
The awards vector selected by the PRO rule. If name = TRUE, the name of the function (PRO) as a character string.
Aristotle, Ethics, Thompson, J.A.K., tr. 1985. Harmondsworth: Penguin.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
E=10 d=c(2,4,7,8) PRO(E,d)
E=10 d=c(2,4,7,8) PRO(E,d)
The function returns to which of the following sub-domains the claims problem belongs to: the lower-half, higher-half, and midpoint domains. In addittion, the function returns the minimal rights vector, the truncated claims vector, the sum and the half-sum of claims.
problemdata(E, d, draw = FALSE)
problemdata(E, d, draw = FALSE)
E |
The endowment. |
d |
The vector of claims. |
draw |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
, the sum of claims
exceeds the endowment.
The lower-half domain is the sub-domain of claims problems for which the endowment is less or equal than the half-sum of claims, .
The higher-half domain is the sub-domain of claims problems for which the endowment is greater or equal than the half-sum of claims, .
The midpoint domain is the sub-domain of claims problems for which the endowment is equal to the half-sum of claims, .
The minimal right of claimant in
is whatever is left after every other claimant has received his claim, or 0 if that is not possible:
Let be the vector of minimal rights.
The truncated claim of claimant in
is the minimum of the claim and the endowment:
Let be the vector of truncated claims.
The minimal rights vector; the truncated claims vector; the sum, the half-sum of the claims, and the class (lower-half, higher-half, and midpoint domains) to which the claims problem belongs. It returns cod = 1 if the claims problem belong to the lower-half domain, cod = -1 if it belongs to the higher-half domain, and cod = 0 for the midpoint domain. Moreover, if draw = TRUE a plot of the claims, from small to large in the interval [0,D], is given.
E=10 d=c(2,4,7,8) problemdata(E,d,draw=TRUE)
E=10 d=c(2,4,7,8) problemdata(E,d,draw=TRUE)
This function returns the awards vector assigned by the random arrival rule (RA) to a claims problem.
RA(E, d, name = FALSE)
RA(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and let
be the vector of claims
with
and such that
\sum_{i=1}^{n} d_i\ge E,\
the sum of claims exceeds the endowment.
For each subset of the set of claimants
, let
be the sum of claims of the members of
.
The random arrival rule considers all the possible arrivals of the claimants
and applies the principle “first to arrive, first to be served".
Then, for each order, the corresponding marginal worth vector assigns to each claimant the minimum of her/his claim
and what remains of the endowment. The rule averages all the marginal worth vectors considering all the permutations of the elements of .
Let denote the set of permutations of the set of claimants
and
its cardinality.
Given a permutation
and a claimant
let
denote the set of claimants that precede
in the order
,
that is,
.
The random arrival rule assigns to each and each
the value:
The random arrival rule corresponds to the Shapley value of the associated (pessimistic) coalitional game.
The awards vector selected by the RA rule. If name = TRUE, the name of the function (RA) as a character string.
O'Neill, B. (1982). A problem of rights arbitration from the Talmud. Math. Social Sci. 2, 345-371.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
allrules, setofawards, Talmud, AA, CD, APRO
E=10 d=c(2,4,7,8) RA(E,d) D=sum(d) #The random arrival rule is self-dual: RA(E,d)= d-RA(D-E,d) d-RA(D-E,d)
E=10 d=c(2,4,7,8) RA(E,d) D=sum(d) #The random arrival rule is self-dual: RA(E,d)= d-RA(D-E,d) d-RA(D-E,d)
This function returns the graphical representation of the schedules of awards of any rule for a claims vector.
schedrule(d, claimants, Rule, col = NULL, points = 201, legend = TRUE)
schedrule(d, claimants, Rule, col = NULL, points = 201, legend = TRUE)
d |
A vector of claims. |
claimants |
A subset of claimants. |
Rule |
The rule: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, or Talmud. |
col |
The colours. If col = NULL then the sequence of default colours is chosen randomly. |
points |
The number of values of the endowment to draw the path. |
legend |
A logical value. The colour legend is shown if legend = TRUE. |
Let , with
, be a vector of claims and
denote
the sum of claims.
The schedules of awards of a rule for claimant
is the function
that assigns to each
the value:
.
Therefore, the schedules of awards of a rule plots each claimants's award as a function of
.
The graphical representation of the schedules of awards of a rule for a claims vector and a group of claimants.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
schedrules, pathawards, pathawards3, verticalruleplot
d=c(2,4,7,8) Rule=Talmud claimants=c(1,2,3,4) col=c("red","green","yellow","blue") schedrule(d,claimants,Rule,col) # The schedules of awards of the concede-and-divide rule. schedrule(c(2,4),c(1,2),CD)
d=c(2,4,7,8) Rule=Talmud claimants=c(1,2,3,4) col=c("red","green","yellow","blue") schedrule(d,claimants,Rule,col) # The schedules of awards of the concede-and-divide rule. schedrule(c(2,4),c(1,2),CD)
This function returns the graphical representation of the schedules of awards of different rules for a claims vector and a given claimant.
schedrules(d, claimant, Rules, col = NULL, points = 201, legend = TRUE)
schedrules(d, claimant, Rules, col = NULL, points = 201, legend = TRUE)
d |
A vector of claims. |
claimant |
A claimant. |
Rules |
The rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
col |
The colours. If col = NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
points |
The number of endowment values to draw the path. |
legend |
A logical value. The colour legend is shown if legend = TRUE. |
Let , with
, be a vector of claims and
denote
the sum of claims.
The schedules of awards of a rule for claimant
is the function
that assigns to each
the value:
.
Therefore, the schedules of awards of a rule plots each claimants's award as a function of
.
The graphical representation of the schedules of awards of the rules for the claims vector and the same claimant.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
schedrule, pathawards, pathawards3, verticalruleplot
d=c(2,4,7,8) claimant=2 Rules=c(Talmud,RA,AA) col=c("red","green","blue") schedrules(d,claimant,Rules,col)
d=c(2,4,7,8) claimant=2 Rules=c(Talmud,RA,AA) col=c("red","green","blue") schedrules(d,claimant,Rules,col)
This function plots the set of awards vectors for a claims problem with 2, 3, or 4 claimants and returns its vertices for any problem.
setofawards(E, d, draw = TRUE, col = NULL)
setofawards(E, d, draw = TRUE, col = NULL)
E |
The endowment. |
d |
The vector of claims. |
draw |
A logical value. |
col |
The colour. |
Let be the endowment to be divided and
the vector of claims
with
and such that
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if
and satisfies the balance requirement, that is,
the sum of its coordinates is equal to
.
Let
be the set of awards vectors for the problem
.
For each subset of the set of claimants
, let
be the sum of claims of the members of
and let
be the complementary coalition of
.
The minimal right of claimant in
is whatever is left after every other claimant has received his claim, or 0 if that is not possible:
Let be the vector of minimal rights.
The truncated claim of claimant in
is the minimum of the claim and the endowment:
Let be the vector of truncated claims.
A vector is efficient if the sum of its coordinates coincides with the endowment. The set of awards is the the set of all efficient vectors bounded by the minimal right and trucated claim vectors.
The set of awards vectors for the claims problem can be given in terms of the minimal rights and truncated claims vectors:
The set of awards vectors for a problem coincides with the core of its associated coalitional (pessimistic) game.
The vertices of the set of awards are the marginal worth vectors. For each order of the claimants, the marginal worth vectors are obtained applying the principle “first to arrive, first to be served". Then, for each order, the corresponding marginal worth vector assigns to each claimant the minimum of her/his claim and what remains of the endowment.
The vertices of the set of awards vectors for any claims problem. For two-claimant and three-claimant problems, if draw = TRUE it plots the set of awards vectors. For a four-claimant problem, if draw = TRUE, it plots the projection of the set of awards vector over the euclidean space of the first three coordinates. For a claims problem with more than four claimants, it only displays the vertices of the set of awards. The default colours (col = NULL) are: red for two-claimant problems, beige for three-claimant problems, and white for four-claimant problems.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
plotrule, problemdata, AA, RA
E=10 d=c(2,4,7,8) setofawards(E,d,col="darkgreen")
E=10 d=c(2,4,7,8) setofawards(E,d,col="darkgreen")
This function returns the awards vector assigned by the Talmud rule to a claims problem.
Talmud(E, d, name = FALSE)
Talmud(E, d, name = FALSE)
E |
The endowment. |
d |
The vector of claims. |
name |
A logical value. |
Let be the endowment to be divided and
the vector of claims
with
and such that
, the sum of claims
exceeds the endowment.
The Talmud rule coincides with the constrained equal awards rule (CEA)
applied to the problem if the endowment is less or equal than the half-sum of the claims,
.
Otherwise, the Talmud rule assigns
and
the remainder,
, is awarded with the constrained equal losses rule with claims
. Therefore:
If then:
If then:
The Talmud rule when applied to a two-claimant problem is often referred to as the contested garment rule and coincides with concede-and-divide rule. The Talmud rule corresponds to the nucleolus of the associated (pessimistic) coalitional game.
The awards vector selected by the Talmud rule. If name = TRUE, the name of the function (Talmud) as a character string.
Aumann, R. and Maschler, M. (1985). Game theoretic analysis of a bankruptcy problem from the Talmud. Journal of Economic Theory 36, 195-213.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
allrules, CEA, CEL, AA, APRO, RA, CD.
E=10 d=c(2,4,7,8) Talmud(E,d) D=sum(d) #The Talmud rule is self-dual d-Talmud(D-E,d)
E=10 d=c(2,4,7,8) Talmud(E,d) D=sum(d) #The Talmud rule is self-dual d-Talmud(D-E,d)
For each claimant, it plots a vertical line with his claim and a point on the awards vector of the chosen rules.
verticalruleplot(E, d, Rules, col = NULL, legend = TRUE)
verticalruleplot(E, d, Rules, col = NULL, legend = TRUE)
E |
The endowment. |
d |
The vector of claims |
Rules |
The rules: AA, APRO, CE, CEA, CEL, DT, MO, PIN, PRO, RA, Talmud. |
col |
The colours. If col=NULL then the sequence of default colours is: c("red", "blue", "green", "yellow", "pink", "coral4", "darkgray", "burlywood3", "black", "darkorange", "darkviolet"). |
legend |
A logical value. The colour legend is shown if legend=TRUE. |
Let be the endowment to be divided and
the vector of claims with
and such that
\sum_{i=1}^{n} d_i\ge E,\
the sum of claims exceeds the endowment.
A vector is an awards vector for the claims problem
if:
no claimant is asked to pay (
);
no claimant receives more than his claim (
);
and the balance requirement is satisfied, that is, the sum of the awards is equal to the endowment (
).
A rule is a function that assigns to each claims problem an awards vector for
,
that is, a division between the claimants of the amount available.
The formal definitions of the main rules are given in the corresponding function help.
This function represents the claims vector and the awards vector assigned by several rules as vertical segments.
Thomson, W. (2019). How to divide when there isn't enough. From Aristotle, the Talmud, and Maimonides to the axiomatics of resource allocation. Cambridge University Press.
allrules, pathawards, pathawards3, schedrule, schedrules
E=10 d=c(2,4,7,8) Rules=c(Talmud,RA,AA) col=c("red","green","blue") verticalruleplot(E,d,Rules,col)
E=10 d=c(2,4,7,8) Rules=c(Talmud,RA,AA) col=c("red","green","blue") verticalruleplot(E,d,Rules,col)