two_sample_t_test
two_sample_t_test#
- solas_disparity.statistical_significance.two_sample_t_test(...)#
Conduct a two-sample t-test.
- Parameters
group_data (DataFrame) – Dataframe containing columns for group data.
protected_groups (List[str]) – List of protected groups.
reference_groups (List[str]) – List of reference groups with the same length as
protected_groups
.group_categories (List[str]) – List of group categories to which each protected and reference group pair belongs to (e.g. race, gender, age, etc.). Has the same length as
protected_groups
.outcome (Series) – Outcome series.
sample_weight (Optional[Series], optional) – Sample weight series. Has the same length as
group_data
. Defaults to None.
- Raises
NotImplementedError – Bootstrapping will be implemented soon.
- Returns
Statistical significance result object.
- Return type