Skip to content
Run simulations of the effects of the minority rule on payment protocol adoption
HTML Jupyter Notebook Python
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.
data
.gitignore
LICENSE
README.md
config.yaml
data_helpers.py
minority_sim.py
notebook.html
notebook.ipynb
requirements.txt

README.md

Minority Rule Simulation

Run Monte Carlo simulations of the effects of the minority rule on payment protocol adoption. Read more of the background in this post or check out the notebook for an explanation on methodology and results.

How to run

Requires Python 3.5 or later. It is recommended to install dependencies in a virtual environment.

  1. Install dependencies: pip install -r requirements.txt
  2. Run the simulation with default configs and save the results in the current directory: python minority_sim.py

Custom configurations

To run a simulation with custom configuration:

  1. Create a copy of config.yaml and adjust the parameters.
  2. Pass your config file to the script with: python minority_sim.py --config=./my_config.yaml

Run python minority_sim.py --help for additional options.

You can’t perform that action at this time.