https://github.com/papachristoumarios/financial-contagion
[WWW 2022] Supplementary Code for "Allocating Stimulus Checks in Times of Crisis"
https://github.com/papachristoumarios/financial-contagion
access-to-opportunity bailouts eisenberg-noe fairness financial-contagion information-network optimization
Last synced: about 2 months ago
JSON representation
[WWW 2022] Supplementary Code for "Allocating Stimulus Checks in Times of Crisis"
- Host: GitHub
- URL: https://github.com/papachristoumarios/financial-contagion
- Owner: papachristoumarios
- Created: 2020-12-23T20:24:32.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2022-01-17T12:46:42.000Z (almost 4 years ago)
- Last Synced: 2025-09-04T20:51:23.447Z (about 2 months ago)
- Topics: access-to-opportunity, bailouts, eisenberg-noe, fairness, financial-contagion, information-network, optimization
- Language: Python
- Homepage: https://arxiv.org/pdf/2106.07560.pdf
- Size: 18.8 MB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Citation: CITATION.cff
Awesome Lists containing this project
README
# Supplementary Code for "Allocating Stimulus Checks in Times of Crisis"
## Setup
Install the required packages with
```bash
pip install -r requirements.txt
```
## Usage
Use the following command to see available options for every snippet
```bash
python {snippet.py} --help
```
## Scripts
A list of scripts to reproduce the results of the paper follows:
* `seed_subsidy_allocation.py`. Produces a plot that compares the greedy, the randomized rounding algorithm and the baselines on optimizing the welfare objective. The values are also compared to the optimal solution of the fractional relaxation.
* `seed_subsidy_allocation_fairness.py`. Compares the randomized rounding solution and the corresponding fractional solutions where fairness constraints on the Gini Coefficient are present.
* `seed_subsidy_allocation_fairness_pof.py`. Similarly to `seed_subsidy_allocation_fairness.py` it plots the relation between the PoF and the upper bound on the value of the corresponding Gini Coefficient
* `seed_subsidy_allocation_sbm.py`. Plots the behaviour of PoF for a stochastic blockmodel generated from two equally-sized cliques connected with i.i.d. edges of bias `q` with one another.
The data that can be used via the `--dataset` flag are the following:
* [`german_banks`](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=3771035)
* [`eba`](https://papers.ssrn.com/sol3/papers.cfm?abstract_id=2642423)
* [`venmo`](https://github.com/sa7mon/venmo-data)
## Citation
Please use the following citation when referring to the paper and the source code
```bibtex
@article{papachristou2021allocating,
title={Allocating Stimulus Checks in Times of Crisis},
author={Papachristou, Marios and Kleinberg, Jon},
journal={Proceedings of The Web Conference},
year={2022}
}
```