8000 GitHub - sezezulka/2023-01-ALMP-LTU: Replication Package for Zezulka and Genin (2024). From the Fair Distribution of Predictions to the Fair Distribution of Social Goods: Evaluating the Impact of Fair Machine Learning on Long-Term Unemployment.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Replication Package for Zezulka and Genin (2024). From the Fair Distribution of Predictions to the Fair Distribution of Social Goods: Evaluating the Impact of Fair Machine Learning on Long-Term Unemployment.

Notifications You must be signed in to change notification settings

sezezulka/2023-01-ALMP-LTU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

2023-01-ALMP-LTU

Replication package for Zezulka and Genin (2024). It contains the code to run the pre-processing, the estimation of the individualized potential outcomes, the (fairness constraint) risk scores, and the algorithmically informed policy simulations as described here. It further allows the reproduction of the reported results, tables, and figures. Unfortunately, we are not allowed to make the data publicly available.

About the project

Algorithmic fairness focuses on the distribution of predictions at the time of training, rather than the distribution of social goods that arises after deploying the algorithm in a concrete social context. However, requiring a "fair" distribution of predictions may undermine efforts at establishing a fair distribution of social goods. Our first contribution is conceptual: we argue that addressing the fundamental question that motivates algorithmic fairness requires a notion of prospective fairness that anticipates the change in the distribution of social goods after deployment. Our second contribution is theoretical: we provide conditions under which this change is identified from pre-deployment data. That requires distinguishing between, and accounting for, different kinds of performative effects. In particular, we focus on the way predictions change policy decisions and, therefore, the distribution of social goods. Throughout, we are guided by an application from public administration: the use of algorithms to (1) predict who among the recently unemployed will remain unemployed in the long term and (2) target them with labor market programs. Our final contribution is empirical: using administrative data from the Swiss public employment service, we simulate how such policies would affect gender inequalities in long-term unemployment. When risk predictions are required to be "fair", targeting decisions are less effective, undermining efforts to lower overall levels of long-term unemployment and to close the gender gap in long-term unemployment.

Setup

To replicate the results, get access to the scientific usefiles from SWISSbase.

Always start by executing "00-config.R". First, specify the location of the working directory. It installs the required packages if not already available (except "devtools" and "causalDML"), specifies the seed, the required path-variables, and variable lists.

  • "01-preprocessing.R" prepares the raw data for the analysis. See Zezulka and Gening (2024) for details.

  • "02-potential-outcomes.R" uses the pr 733A eprocessed data to estimate individualized average potential outcomes for the test set.

  • "03-risk-scores.R" can be used to estimate both fairness constraint and unconstrained risk scores of long-term unemployment. It implements a logistic ridge regression and implements "statistical parity" and "equal opportunity" as fairness constraints on the risk scores.

  • "04-ai-policies.R" combines the estimated individualized potential outcomes and risk scores to simulate the effect of various Algorithmically Informed Policies on the rate of long-term unemployment and the respective gender gap.

  • "05-descr-stats.R" outputs all relevant descriptive statistics and tables.

  • "05-descr-stats-risk-scores" is a Jupyter Notebook that provides the (fairness) evaluation of all three risk scores. See Appendix B.5, Table 4.

  • "06-figures-paper.R" can be used to reproduce all figures presented in the paper.

  • "07-figures-supp.R" can be used to reproduce all figures from the Appendix.

Requirements:

  • R version 4.2.2 (2022-10-31 ucrt)

Libraries:

  • 01: tidyverse 2.0.0, grf 2.3.1
  • 02: devtools 2.4.5, causalDML 0.1.0, policytree 1.2.2
  • 03: causalDML 0.1.0, fairml 0.8, glmnet 4.1-8
  • 04: tidyverse 2.0.0
  • 05: tidyverse 2.0.0 , gt 0.10.0, Hmisc 5.1-1
  • 06: tidyverse, 2.0.0, readxl 1.4.3, readr 2.1.4
  • 07: tidyverse, 2.0.0, readxl 1.4.3, readr 2.1.4

Data

The data is available as scientific use file on SWISSbase.

Michael Lechner, Michael Knaus, Martin Huber, Markus Frölich, Stefanie Behncke, Giovanni Mellace, Anthony Strittmatter (2020). Swiss Active Labor Market Policy Evaluation [Dataset]. Distributed by FORS, Lausanne. https://doi.org/10.23662/FORS-DS-1203-1.

Contact

Sebastian Zezulka

Konstantin Genin

Citation

Sebastian Zezulka and Konstantin Genin. 2024. From the Fair Distribution of Predictions to the Fair Distribution of Social Goods: Evaluating the Impact of Fair Machine Learning on Long-Term Unemployment. In: ACM Conference on Fairness, Accountability, and Transparency (ACM FAccT ’24). ACM, New York, NY, USA. https://doi.org/10.1145/3630106.3659020.

The preprint is available on arxiv.

Acknowledgements

The scripts "01-preprocessing.R" and "02-potential-outcomes" are based on the following publications:

  1. Michael C. Knaus (2022). Double machine learning-based programme evaluation under unconfoundedness.The Econometrics Journal. see especially: https://github.com/MCKnaus/mcknaus.github.io/blob/master/assets/code/Data_preparation_MCK2022.R

  2. John Körtner and Ruben L. Bach (2023). Inequality-Averse Outcome-Based Matching.

Many thanks to John Körtner and Ruben Bach for sharing their code and for many helpful discussions to Michael Knaus. All remaining errors are my own.

About

Replication Package for Zezulka and Genin (2024). From the Fair Distribution of Predictions to the Fair Distribution of Social Goods: Evaluating the Impact of Fair Machine Learning on Long-Term Unemployment.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0