What is counterfactual fairness in model evaluation?

Updated May 17, 2026

Short answer

Counterfactual fairness ensures predictions remain unchanged under sensitive attribute changes.

Deep explanation

A model is counterfactually fair if its predictions do not change when sensitive attributes (like gender or race) are altered in a hypothetical world while keeping all other factors constant. It relies on structural causal models and is widely used in fairness-aware ML systems.

Unlock with a Pro subscription to view this section.

View pricing

Real-world example

No real-world example available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Common mistakes

No common mistakes listed yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

Follow-up questions

No follow-up questions available yet.

Unlock with a Pro subscription to view this section.

Upgrade to Pro

More Model Evaluation interview questions

View all →