Skip to content

Commit

Permalink
updated title
Browse files Browse the repository at this point in the history
  • Loading branch information
HeinDuijf committed Nov 7, 2023
1 parent ba66f8c commit 98545f9
Showing 1 changed file with 20 additions and 30 deletions.
50 changes: 20 additions & 30 deletions NotebookWalkthrough.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"id": "52b2b5ff",
"metadata": {},
"source": [
"# Majority Voting and Collective Accuracy\n",
"This jupyter notebook demonstrates how the [agent-based model](https://doi.org/10.5281/zenodo.7767124) of majority voting works by walking you through the stages of the model. The agent-based model is an adaptation of the Condorcetian framework (see [Wikipedia](https://en.wikipedia.org/wiki/Condorcet%27s_jury_theorem) or [The Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/archives/spr2023/entries/jury-theorems/)) which operationalizes the following (revised) assumptions:\n",
"# Majoritarian Accuracy of Majority Voting \n",
"This Jupyter Notebook demonstrates how the [agent-based model](https://doi.org/10.5281/zenodo.7767124) of majority voting works by walking you through the stages of the model. The agent-based model is an adaptation of the Condorcetian framework (see [Wikipedia](https://en.wikipedia.org/wiki/Condorcet%27s_jury_theorem) or [The Stanford Encyclopedia of Philosophy](https://plato.stanford.edu/archives/spr2023/entries/jury-theorems/)) which operationalizes the following (revised) assumptions:\n",
"1. **The Assumption of Plural Interests.** For each agent, there exists some agent-relative measure of success or correctness – typically referred to as the agent’s interest or values. \n",
"2.\t**The Group-relative Competence Assumption.** For each of the two groups (masses and elites), each member’s belief about the right alternative is true with probability greater than chance level.\n",
"3. **The Social Influence Assumption.** (a) The initial beliefs of all voters are probabilistically independent (given the true state of the world). (b) The final beliefs of voters can be influenced by other voters. \n",
Expand Down Expand Up @@ -71,9 +71,7 @@
"cell_type": "code",
"execution_count": 2,
"id": "18dc9931",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -97,7 +95,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1ca05e0d880>"
"<IPython.lib.display.IFrame at 0x18a9d6c55e0>"
]
},
"execution_count": 2,
Expand Down Expand Up @@ -136,9 +134,7 @@
"cell_type": "code",
"execution_count": 3,
"id": "e621cb00",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -162,7 +158,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1ca05e68d30>"
"<IPython.lib.display.IFrame at 0x18a9d68bac0>"
]
},
"execution_count": 3,
Expand Down Expand Up @@ -213,7 +209,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1ca05e0dac0>"
"<IPython.lib.display.IFrame at 0x18a9d6c74f0>"
]
},
"execution_count": 4,
Expand Down Expand Up @@ -244,7 +240,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Elites: 12 | Masses: 8\n"
"Elites: 13 | Masses: 7\n"
]
}
],
Expand Down Expand Up @@ -280,9 +276,7 @@
"cell_type": "code",
"execution_count": 6,
"id": "ae88df01",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -306,7 +300,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1ca05e82a60>"
"<IPython.lib.display.IFrame at 0x18a9d767ee0>"
]
},
"execution_count": 6,
Expand Down Expand Up @@ -346,7 +340,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Node 54 has the most influence: they influence 33 others!\n"
"Node 92 has the most influence: they influence 48 others!\n"
]
}
],
Expand All @@ -372,9 +366,7 @@
"cell_type": "code",
"execution_count": 8,
"id": "cd37a875",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -398,7 +390,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1ca05e3cbb0>"
"<IPython.lib.display.IFrame at 0x18a9d6c5070>"
]
},
"execution_count": 8,
Expand Down Expand Up @@ -428,7 +420,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Opinions: Elites: 64 | Masses: 36\n"
"Opinions: Elites: 52 | Masses: 48\n"
]
}
],
Expand All @@ -455,9 +447,7 @@
"cell_type": "code",
"execution_count": 10,
"id": "4e94a9af",
"metadata": {
"scrolled": false
},
"metadata": {},
"outputs": [
{
"name": "stdout",
Expand All @@ -481,7 +471,7 @@
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1ca05e52520>"
"<IPython.lib.display.IFrame at 0x18a9d65aee0>"
]
},
"execution_count": 10,
Expand Down Expand Up @@ -512,7 +502,7 @@
"name": "stdout",
"output_type": "stream",
"text": [
"Votes: Elites: 74 | Masses: 26\n"
"Votes: Elites: 57 | Masses: 43\n"
]
}
],
Expand Down Expand Up @@ -543,8 +533,8 @@
"output_type": "stream",
"text": [
"Initial distribution: Elites: 30 | Masses: 70\n",
"Opinion distribution: Elites: 64 | Masses: 36\n",
"Votes distribition: Elites: 74 | Masses: 26\n"
"Opinion distribution: Elites: 52 | Masses: 48\n",
"Votes distribition: Elites: 57 | Masses: 43\n"
]
}
],
Expand Down Expand Up @@ -580,7 +570,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.12"
"version": "3.9.10"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 98545f9

Please sign in to comment.