Simulating wealth inequality
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
bower_components
components
images
1-world-income-ineq-doesnt-lead-to-wealth-ineq.js
2-investing-ability.js
3-with-entrepreneurship.js
4-income-invest-entrepreneur.js
5-higher-capital-gains-tax.js
6-estate-tax.js
7-wealth-tax.js
8-solution.js
README.md
actor.js
bower.json
index.html
label-renderer.js
main.js
renderer.js
rule.js
simulation.js
util.js
world.js

README.md

Wealth inequality simulator

This is a tool for creating simple simulations of wealth inequality. Each simulation consists of rules and households. As the simulation unfolds, rules are executed in order, and each rule is applied to each household, affecting household wealth. Here is the definition of a simple simulation, in which two households have different incomes:

var rules = [
  {label: 'Salary', action: 'this.total += 2 * this.incomeMultiplier'},
  {label: 'Spending', action: 'this.total -= 1'},
];
var simulation = new Simulation(rules);
simulation.addActor({
  label: 'Low income',
  incomeMultiplier: 1,
});
simulation.addActor({
  label: 'High income',
  incomeMultiplier: 2,
});

This code is lifted from this simulation file. The simulation file can be loaded by passing it in as a GET argument, using a URL like this one: https://borismus.github.io/inequality-simulator/?model=1-world-income-ineq-doesnt-lead-to-wealth-ineq.js.

Which results in the following output:

Screenshot of simulation

For more info, please read the blog post here: http://smus.com/simulating-wealth-inequality