solas_disparity.disparity#

Functions

adverse_impact_ratio

Calculate the Adverse Impact Ratio (AIR) for a given set of protected and reference groups.

adverse_impact_ratio_by_quantile

Calculate the Adverse Impact Ratio for specified quantiles.

categorical_adverse_impact_ratio

Calculate the Adverse Impact Ratio for a set of favorability-ordinal categorical outcomes.

custom_disparity_metric

Provide a modular format that to create a custom disparity metric.

false_discovery_rate

This method calculates the False Discovery Rate (FDR) for a given set of protected and reference groups.

false_negative_rate

This method calculates the False Negative Rate (FNR) for a given set of protected and reference groups.

false_positive_rate

This method calculates the False Positive Rate (FPR) for a given set of protected and reference groups.

odds_ratio

Calculate the Odds Ratio for a given set of protected and reference groups.

precision

This method calculates the Precision for a given set of protected and reference groups.

residual_standardized_mean_difference

Calculate the Standardized Mean Difference of residuals for a given set of protected and reference groups.

scoring_impact_ratio

Calculate the scoring impact ratio, an impact ratio where the boolean outcome is whether an individual scored above the median.

segmented_adverse_impact_ratio

Calculates within-segment and cross-segment disparate impact and statistical significance statistics for dichotomous outcomes when it is appropriate to aggregate segment results to a single cross-segment measurement of disparity.

selection_impact_ratio

Calculate the selection impact ratio.

standardized_mean_difference

Calculate the Standardized Mean Difference (SMD) for a given set of protected and reference groups.

true_negative_rate

This method calculates the True Negative Rate (TNR) for a given set of protected and reference groups.

true_positive_rate

This method calculates the True Positve Rate (TPR) for a given set of protected and reference groups.