Learn R Programming

fairness (version 1.2.2)

Algorithmic Fairness Metrics

Description

Offers calculation, visualization and comparison of algorithmic fairness metrics. Fair machine learning is an emerging topic with the overarching aim to critically assess whether ML algorithms reinforce existing social biases. Unfair algorithms can propagate such biases and produce predictions with a disparate impact on various sensitive groups of individuals (defined by sex, gender, ethnicity, religion, income, socioeconomic status, physical or mental disabilities). Fair algorithms possess the underlying foundation that these groups should be treated similarly or have similar prediction outcomes. The fairness R package offers the calculation and comparisons of commonly and less commonly used fairness metrics in population subgroups. These methods are described by Calders and Verwer (2010) , Chouldechova (2017) , Feldman et al. (2015) , Friedler et al. (2018) and Zafar et al. (2017) . The package also offers convenient visualizations to help understand fairness metrics.

Copy Link

Version

Install

install.packages('fairness')

Monthly Downloads

794

Version

1.2.2

License

MIT + file LICENSE

Maintainer

Nikita Kozodoi

Last Published

April 14th, 2021

Functions in fairness (1.2.2)

roc_parity

ROC AUC parity
spec_parity

Specificity parity
prop_parity

Proportional parity
pred_rate_parity

Predictive Rate Parity
fnr_parity

False Negative Rate parity
npv_parity

Negative Predictive Value parity
fairness

fairness: Algorithmic Fairness Metrics
dem_parity

Demographic parity
germancredit

Modified german credit dataset
acc_parity

Accuracy parity
fpr_parity

False Positive Rate parity
mcc_parity

Matthews Correlation Coefficient parity
equal_odds

Equalized Odds
compas

Modified COMPAS dataset