Some system performance metrics, which indicate obtained benefits like correct or favorable operation, were found unevenly distributed across the population. These biases occurred in at least one prediction class and at least one way of aggregating the comparison among multiple groups. Expert assessment is needed to help understand which biases may be considered unfair. The biased metrics are:
the true negative rate/specificity (tnr)
the true rejection ratio (true negatives compared to all) (trr)
the Matthews correlation coefficient (mcc)
the true acceptance ratio (true positives compared to all) (tar)
the positive rate (pr)
the accuracy (acc)
the geometric mean of tpr and tnr - accounts for class imbalance (gmi)
the f1 score (f1)
the Cohen's Kappa score (kappa)
the lift ratio (tpr divided by pr) (lift)
the true positive rate/recall/sensitivity/hit rate (tpr)
the positive predictive value/precision (ppv)
Fairness does not end after producing AI outputs.
š” Continue interacting with stakeholders to assert that their idea of fairness is correctly implemented.Keep a balance between justifying outputs as part of a fair process and accommodating constructive criticism. Do not over-rely on technical justification, and ensure meaningful human oversight whenever AI systems are deployed in decision-making, high-stakes, or rights-impacting contexts. Human oversight prevents overreliance on imperfect models, catches context-specific errors, and enables ethical judgment, accountability, and recourse for affected people.
Groups were compared pairwise. Values deviating more than 0.050 from their ideal target were counted as problematic. These deviations guide where deeper inspection is needed. The result is considered biased if it lays 0.050 away from its ideal target that would indicate fairness. For example, the ideal target is 0 for differences between measure values, and 1 for values that should be large (e.g., the minimum accuracy across all groups). Some metrics have no known ideal values.
The analysis considered 7 protected groups:
education unknown
education tertiary
education secondary
education primary
marital married
marital single
marital divorced
| Name | Description |
|---|---|
| acc | the accuracy |
| tpr | the true positive rate/recall/sensitivity/hit rate |
| ppv | the positive predictive value/precision |
| f1 | the f1 score |
| gmi | the geometric mean of tpr and tnr - accounts for class imbalance |
| mcc | the Matthews correlation coefficient |
| kappa | the Cohen's Kappa score |
| pr | the positive rate |
| tar | the true acceptance ratio (true positives compared to all) |
| trr | the true rejection ratio (true negatives compared to all) |
| lift | the lift ratio (tpr divided by pr) |
| tnr | the true negative rate/specificity |
| Name | Description |
|---|---|
| min | the minimum |
| maxerror | the maximum deviation from the ideal value |
| wmean | the weighted average |
| mean | the average |
| gm | the geometric mean |
| maxrel | the maximum relative difference |
| maxdiff | the maximum difference |
| gini | the gini coefficient |
| stdx2 | the standard deviation x2 |
| class yes | class no | |||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| min | maxerror | wmean | mean | gm | maxrel | maxdiff | gini | stdx2 | min | maxerror | wmean | mean | gm | maxrel | maxdiff | gini | stdx2 | |
| acc | 0.856 | 0.144 | 0.885 | 0.882 | 0.882 | 0.052 | 0.856 | 0.144 | 0.885 | 0.882 | 0.882 | 0.052 | ||||||
| tpr | 0 | 1 | 0.010 | 0.011 | 0 | 1 | 0.523 | |||||||||||
| ppv | 0 | 1 | 0.534 | 0.452 | 0 | 1 | 0.833 | 0.361 | 0.610 | 0.857 | 0.143 | 0.886 | 0.883 | 0.882 | 0.053 | |||
| f1 | 0 | 1 | 0.021 | 0 | 1 | 0.050 | 0.521 | 0.922 | 0.078 | 0.937 | 0.937 | |||||||
| gmi | 0 | 1 | 0.008 | 0 | 1 | 0.573 | 0.855 | 0.145 | 0.882 | 0.881 | 0.052 | |||||||
| mcc | -0.018 | 1 | 0.056 | 1 | 0.149 | 0.519 | 0.102 | -0.018 | 1 | 0.056 | 1 | 0.149 | 0.519 | 0.102 | ||||
| kappa | -0.006 | 1 | 0.016 | 0.016 | 1 | 0.597 | -0.006 | 1 | 0.016 | 0.016 | 1 | 0.597 | ||||||
| pr | 1 | 0.411 | ||||||||||||||||
| tar | 1 | 0.554 | 0.056 | 0.050 | ||||||||||||||
| trr | 0.056 | 0.050 | 1 | 0.554 | ||||||||||||||
| lift | 1 | 5 | 0.318 | 4 | ||||||||||||||
| tnr | 0 | 1 | 0.010 | 0.011 | 0 | 1 | 0.523 | |||||||||||
| class yes min | class yes maxerror | class yes wmean | class yes mean | class yes gm | class yes maxrel | class yes maxdiff | class yes gini | class yes stdx2 | class no min | class no maxerror | class no wmean | class no mean | class no gm | class no maxrel | class no maxdiff | class no gini | class no stdx2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| acc | tpr | ppv | f1 | gmi | mcc | kappa | acc | tpr | ppv | f1 | gmi | mcc | kappa | acc | tpr | ppv | kappa | acc | tpr | ppv | f1 | gmi | mcc | kappa | acc | tpr | ppv | f1 | gmi | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | education unknown | education tertiary | education secondary | education primary | marital married | marital single | marital divorced | |
| education unknown | 0.898 | 0 | 0 | 0 | 0 | 0 | 0 | 0.898 | 0 | 0 | 0 | 0 | 0 | 0 | 0.898 | 0 | 0 | 0 | 0.898 | 0 | 0 | 0 | 0 | 0 | 0 | 0.898 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| education tertiary | 0.860 | 0.026 | 0.833 | 0.050 | 0.022 | 0.132 | 0.042 | 0.860 | 0.026 | 0.833 | 0.050 | 0.022 | 0.132 | 0.042 | 0.860 | 0.026 | 0.833 | 0.042 | 0.860 | 0.026 | 0.833 | 0.050 | 0.022 | 0.132 | 0.042 | 0.860 | 0.026 | 0.833 | 0.050 | 0.022 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| education secondary | 0.894 | 0.004 | 0.500 | 0.008 | 0.002 | 0.038 | 0.006 | 0.894 | 0.004 | 0.500 | 0.008 | 0.002 | 0.038 | 0.006 | 0.894 | 0.004 | 0.500 | 0.006 | 0.894 | 0.004 | 0.500 | 0.008 | 0.002 | 0.038 | 0.006 | 0.894 | 0.004 | 0.500 | 0.008 | 0.002 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| education primary | 0.903 | 0 | 0 | 0 | 0 | -0.018 | -0.006 | 0.903 | 0 | 0 | 0 | 0 | -0.018 | -0.006 | 0.903 | 0 | 0 | -0.006 | 0.903 | 0 | 0 | 0 | 0 | -0.018 | -0.006 | 0.903 | 0 | 0 | 0 | 0 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| marital married | 0.901 | 0.007 | 0.500 | 0.014 | 0.004 | 0.051 | 0.011 | 0.901 | 0.007 | 0.500 | 0.014 | 0.004 | 0.051 | 0.011 | 0.901 | 0.007 | 0.500 | 0.011 | 0.901 | 0.007 | 0.500 | 0.014 | 0.004 | 0.051 | 0.011 | 0.901 | 0.007 | 0.500 | 0.014 | 0.004 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| marital single | 0.861 | 0.012 | 0.667 | 0.024 | 0.008 | 0.076 | 0.019 | 0.861 | 0.012 | 0.667 | 0.024 | 0.008 | 0.076 | 0.019 | 0.861 | 0.012 | 0.667 | 0.019 | 0.861 | 0.012 | 0.667 | 0.024 | 0.008 | 0.076 | 0.019 | 0.861 | 0.012 | 0.667 | 0.024 | 0.008 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| marital divorced | 0.856 | 0.026 | 0.667 | 0.050 | 0.017 | 0.112 | 0.039 | 0.856 | 0.026 | 0.667 | 0.050 | 0.017 | 0.112 | 0.039 | 0.856 | 0.026 | 0.667 | 0.039 | 0.856 | 0.026 | 0.667 | 0.050 | 0.017 | 0.112 | 0.039 | 0.856 | 0.026 | 0.667 | 0.050 | 0.017 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| acc | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | 0.898 | 0.860 | 0.894 | 0.903 | 0.901 | 0.861 | 0.856 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| pr | 0 | 0.004 | 0.001 | 0.003 | 0.001 | 0.003 | 0.006 | 0 | 0.004 | 0.001 | 0.003 | 0.001 | 0.003 | 0.006 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tpr | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| ppv | 0 | 0.833 | 0.500 | 0 | 0.500 | 0.667 | 0.667 | 0 | 0.833 | 0.500 | 0 | 0.500 | 0.667 | 0.667 | 0 | 0.833 | 0.500 | 0 | 0.500 | 0.667 | 0.667 | 0 | 0.833 | 0.500 | 0 | 0.500 | 0.667 | 0.667 | 0.898 | 0.860 | 0.894 | 0.905 | 0.902 | 0.862 | 0.857 | 0.898 | 0.860 | 0.894 | 0.905 | 0.902 | 0.862 | 0.857 | 0.898 | 0.860 | 0.894 | 0.905 | 0.902 | 0.862 | 0.857 | 0.898 | 0.860 | 0.894 | 0.905 | 0.902 | 0.862 | 0.857 | 0.898 | 0.860 | 0.894 | 0.905 | 0.902 | 0.862 | 0.857 | 0.898 | 0.860 | 0.894 | 0.905 | 0.902 | 0.862 | 0.857 | |||||||||||||||||||||||||||||||||||||||||||||||||||
| f1 | 0 | 0.050 | 0.008 | 0 | 0.014 | 0.024 | 0.050 | 0 | 0.050 | 0.008 | 0 | 0.014 | 0.024 | 0.050 | 0 | 0.050 | 0.008 | 0 | 0.014 | 0.024 | 0.050 | 0.946 | 0.924 | 0.944 | 0.949 | 0.948 | 0.925 | 0.922 | 0.946 | 0.924 | 0.944 | 0.949 | 0.948 | 0.925 | 0.922 | 0.946 | 0.924 | 0.944 | 0.949 | 0.948 | 0.925 | 0.922 | 0.946 | 0.924 | 0.944 | 0.949 | 0.948 | 0.925 | 0.922 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| gmi | 0 | 0.022 | 0.002 | 0 | 0.004 | 0.008 | 0.017 | 0 | 0.022 | 0.002 | 0 | 0.004 | 0.008 | 0.017 | 0.898 | 0.859 | 0.894 | 0.902 | 0.901 | 0.861 | 0.855 | 0.898 | 0.859 | 0.894 | 0.902 | 0.901 | 0.861 | 0.855 | 0.898 | 0.859 | 0.894 | 0.902 | 0.901 | 0.861 | 0.855 | 0.898 | 0.859 | 0.894 | 0.902 | 0.901 | 0.861 | 0.855 | 0.898 | 0.859 | 0.894 | 0.902 | 0.901 | 0.861 | 0.855 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tar | 0 | 0.004 | 0.000 | 0 | 0.001 | 0.002 | 0.004 | 0 | 0.004 | 0.000 | 0 | 0.001 | 0.002 | 0.004 | 0.898 | 0.856 | 0.893 | 0.903 | 0.900 | 0.860 | 0.852 | 0.898 | 0.856 | 0.893 | 0.903 | 0.900 | 0.860 | 0.852 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| trr | 0.898 | 0.856 | 0.893 | 0.903 | 0.900 | 0.860 | 0.852 | 0.898 | 0.856 | 0.893 | 0.903 | 0.900 | 0.860 | 0.852 | 0 | 0.004 | 0.000 | 0 | 0.001 | 0.002 | 0.004 | 0 | 0.004 | 0.000 | 0 | 0.001 | 0.002 | 0.004 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| lift | 0 | 5 | 4 | 0 | 5 | 4 | 4 | 0 | 5 | 4 | 0 | 5 | 4 | 4 | 0 | 5 | 4 | 0 | 5 | 4 | 4 | 0 | 5 | 4 | 0 | 5 | 4 | 4 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| mcc | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | 0 | 0.132 | 0.038 | -0.018 | 0.051 | 0.076 | 0.112 | ||||||||||||||||||||||||||||||||||||||||||||
| kappa | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | 0 | 0.042 | 0.006 | -0.006 | 0.011 | 0.019 | 0.039 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| tnr | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | 0 | 0.026 | 0.004 | 0 | 0.007 | 0.012 | 0.026 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||