[
{
"name": "Average age consistency across geographies",
"description": "Ensures that average age in each geography is at least 25, with max 1 failing geography allowed",
"type": "integrity",
"subtype": "groupByColumnStatsCheck",
"thresholds": [
{
"insightName": "groupByColumnStatsCheck",
"insightParameters": [
{ "name": "target_column_statistic", "value": "mean" }, // Statistic to calculate
{ "name": "target_column_name", "value": "age" }, // Column to analyze
{ "name": "operator", "value": ">=" }, // Condition for each group
{ "name": "value", "value": 25 }, // Threshold for each group
{ "name": "group_by_column_name", "value": "geography" } // Column to group by
],
"measurement": "failingGroupCount", // Count of groups that fail the condition
"operator": "<=",
"value": 1 // Allow at most 1 geography to fail
}
],
"subpopulationFilters": null,
"mode": "development",
"usesValidationDataset": true,
"usesTrainingDataset": false,
"usesMlModel": false,
"syncId": "b4dee7dc-4f15-48ca-a282-63e2c04e0689" // Some unique id
},
{
"name": "Income distribution fairness check",
"description": "Ensures no more than 10% of job categories have median income below $40K",
"type": "integrity",
"subtype": "groupByColumnStatsCheck",
"thresholds": [
{
"insightName": "groupByColumnStatsCheck",
"insightParameters": [
{ "name": "target_column_statistic", "value": "median" },
{ "name": "target_column_name", "value": "income" },
{ "name": "operator", "value": ">=" },
{ "name": "value", "value": 40000 },
{ "name": "group_by_column_name", "value": "job_category" }
],
"measurement": "failingGroupPercentage", // Percentage of groups that fail
"operator": "<=",
"value": 10.0 // Allow at most 10% of job categories to fail
}
],
"subpopulationFilters": null,
"mode": "development",
"usesValidationDataset": true,
"usesTrainingDataset": false,
"usesMlModel": false,
"syncId": "96622fba-ea00-4e42-8f42-5e8f5f60805f" // Some unique id
}
]