Implementation and evaluation of the Greatest Clearing Vector Algorithm by Rogers, L. C. G., and L. A. M. Veraart in “Failure and Rescue in an Interbank Network."
This repository is a part of our bachelor's thesis in Computer Science at Aarhus University written by Nina Gad Lauridsen and Pi Gregersen Bohlbro.
Installing requirements using the package manager pip.
pip install -r requirements.txtTo reproduce the results from the evaluation tests
- Clone the repository
- Install the dependencies (see above)
- Run
python -m unittest test.evaluation - Run
python plots.pyin test directory - See resulting graphs in
test/results directory
We have implemented the greatest clearing vector algorithm and have a few tests to test correctness of our implementation.
Moreover, we have developed a simple probabilistic model of a financial network. In this model we have parameter
Test description
In all tests, we have used
In the first test suite,
In the second test setup the external asset coefficient
In the last test we want to study the distribution of the insolvency levels as it is defined by Rogers and Veraart. In this setup
These are the results we produced and we invite you to try to reproduce these results.
As the authors of this repository, we are not liable for any use of the code nor the correctness of the code in this repository.



