fairlens.metrics.statistics#

This module contains statistical measures for analyzing target variable distributions across sensitive groups.

Functions

compute_distribution_mean

This function computes the mean (means) of a given distribution, based on the type of its underlying data.

compute_distribution_variance

This function computes the variances (variances) of a given distribution, based on the type of its underlying data.

sensitive_group_analysis

This function produces a summary of the first two central moments of the distributions created from the target attribute by applying predicates generated by a list of groups of interest.