shapleyvalue.com

Attribute value according to a parsimonious game theory solution
Log | Files | Refs

commit afd4ae7849aa7e72345498ac041974fe7a607cae
parent 81586a49c523ea29fe02cd1475568b5de3204861
Author: NunoSempere <nuno.sempere@protonmail.com>
Date:   Sun, 29 Jan 2023 14:13:40 +0100

tweak: add additional example, fix typos.

Diffstat:
Mexamples.html | 7++++---
Mindex.php | 16+++++++++++-----
2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/examples.html b/examples.html @@ -22,19 +22,20 @@ </p></br><p> <a href="/?example=4">Example 4</a>: Netwon invented Calculus. Leibniz, mad with envy, pretended that he also invented calculus at the same time. Newton is player 1. Lebniz is player 2. </p></br><p> -<a href="/?example=5">Example 5</a>: Suppose that AMF will spend $1m on a net distribution. As a result of AMF’s commitment, the Gates Foundation contributes $400,000. If AMF had not acted, Gates would have spent the $400,000 on something else, half as valuable. AMF is player 1, Gates is player 2. +<a href="/?example=5">Example 5</a>: Suppose that the Against Malaria Foundation (AMF) will spend $1M on a malaria net distribution. As a result of AMF's commitment, the Gates Foundation contributes $400,000. If AMF had not acted, Gates would have spent the $400,000 on something else, half as valuable. AMF is player 1, Gates is player 2. </p></br><p> <a href="/?example=6">Example 6</a>: Suppose again that AMF commits $1m to a net distribution. But if AMF had put nothing in, DFID would instead have committed $500,000 to the net distribution. Now, DFID commits that money to something half as valuable. AMF is player 1, DFID is player 2. </p></br><p> <a href="/?example=7">Example 7</a>: 7 people boil a goat in their mother's milk, independently and at the same time. According to the Kabbalah, this has terrible implications: -1000 value is lost. Suppose that all the damage is done once the first deed is done. </p></br><p> -<a href="/?example=8">Example 8</a>: Suppose that there was a position in an EA org, for which there were 6 qualified applicants which are otherwise 'idle'. In arbitrary units, the person in that position in that organization can produce an impact of 100 utility. The organization is player 1, applicants are players 2-7. +<a href="/?example=8">Example 8</a>: Suppose that there was a position in an EA org, for which there were 6 qualified applicants which are otherwise 'idle'. In arbitrary units, the person in that position in that organization can produce an impact of 100 utility. Applicants are players 1-6, the organization is player 7. </p></br><p> <a href="/?example=9">Example 9</a>: A small Indian state with 10 million inhabitants spends $60 million to vaccinate 30% of their population. An NGO which would otherwise be doing something really ineffective, comes in, and by sending reminders, increases the vaccination rate to 35%. They do this very cheaply, for $100,000. The government is player 1, the indian state is player 2. What if, instead, the NGO would have done something equally valuable? </p></br><p> <a href="/?example=10">Example 10</a> 1: Same as <a href="../?example=x">Example 9</a>, but now there are 6 government subagencies, each of which we consider as a distinct agent. The NGO is player 1, government agencies are players 2-7. </p></br><p> - +<a href="/?example=11">Example 11:</a> An organization organizes a costless online vote to pass a measure of value 1, and it passes if it gets more than 3 votes. 7 people vote in favour +</p></br><p> <p><a href="/">Go back</a></p></br> </body> </html> diff --git a/index.php b/index.php @@ -68,12 +68,12 @@ switch ($example) { $numPlayers =2; break; case 5: - echo "Example 5: Suppose that AMF will spend $1M on a net distribution. As a result of AMF’s commitment, the Gates Foundation contributes $400,000. If AMF had not acted, Gates would have spent the $400,000 on something else, half as valuable. AMF is player 1, Gates is player 2."; + echo "Suppose that the Against Malaria Foundation (AMF) will spend $1M on a malaria net distribution. As a result of AMF's commitment, the Gates Foundation contributes $400,000. If AMF had not acted, Gates would have spent the $400,000 on something else, half as valuable. AMF is player 1, Gates is player 2."; $getCoalitionNum = array(0,1000000,200000,1400000); $numPlayers =2; break; case 6: - echo "Example 6: Suppose that AMF commits $1M to a net distribution. But if AMF had put nothing in, DFID would instead have committed $500,000 to the net distribution. Now, DFID commits that money to something half as valuable. AMF is player 1, DFID is player 2."; + echo "Example 6: Suppose that the Against Malaria Foundation (AMF) commits $1M to a malaria net distribution. But if AMF had put nothing in, DFID would instead have committed $500,000 to the net distribution. Now, DFID commits that money to something half as valuable. AMF is player 1, DFID is player 2."; $getCoalitionNum = array(0,1000000,500000,1250000); $numPlayers =2; break; @@ -116,6 +116,11 @@ switch ($example) { } } break; + case 11: + echo "Example 11: An organization organizes a costless online vote to pass a measure of value 1, and it passes if it gets more than 3 votes. 7 people vote in favour."; + $getCoalitionNum = array(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 1, 0, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1); + $numPlayers = 7; + break; default: $example = -1; break; @@ -258,14 +263,14 @@ echo '</p>'; echo '</br>'; echo '<a href="/examples.html">List of examples</a></br>'; -echo '<a href="?example='.rand(1,10).'">Random example</a></br>'; +echo '<a href="?example='.rand(1,11).'">Random example</a></br>'; ## More HTML flavor //echo '<h3>Also of interest:</h3> // <a href="url">Shapley value resources</a> </br>' echo '<p>'; echo '<br /></br>'; -echo '<a href="https://nunosempere.github.io/">Other things I have done</a> </br>'; +echo 'See also: <a href="https://www.effectivealtruism.org/" target="_blank">"Effective Altruism"</a> for this concept applied to altruism</br>'; echo '</p>'; echo '</body>'; echo '</html>'; @@ -324,4 +329,4 @@ function choose($m, $n){ } -?> +?> +\ No newline at end of file