Goal: Train a simple classifier on a real, imperfect dataset; measure whether it treats demographic groups fairly using two independent open-source toolkits; apply a mitigation technique; and write up everything you learned as a proper Model Card — turning a hands-on experiment into a responsible-AI governance artifact. Everything in this lab is free: Google Colab (CPU runtime), scikit-learn, Fairlearn, AIF360, and the Hugging Face documentation template. Steps:
!pip install fairlearn aif360 scikit-learn pandas.fairlearn.datasets.fetch_adult() or from the UCI repository. Note which columns are present, including the sex and race fields you'll treat as protected attributes.MetricFrame, compute demographic parity difference and equalized odds difference, sliced by sex (and optionally race). Also compute the disparate impact ratio by hand or via Fairlearn's selection-rate metrics. Write one paragraph in your notebook interpreting the gaps you find — do NOT just report the numbers, explain what they mean for real applicants.ExponentiatedGradient (in-processing) or ThresholdOptimizer (post-processing) — constrained to demographic parity or equalized odds. Recompute accuracy and your fairness metrics on the mitigated model. Record the before/after comparison in a table.sex column entirely and retrain the baseline model. Recompute the fairness metrics using a correlated proxy analysis (e.g., check relationship status or occupation as potential proxies) and show that the disparity does not fully disappear. Write 2-3 sentences connecting this to the lecture's "fairness through unawareness" misconception.Deliverables: Submit your Colab notebook (.ipynb, shared link or file upload) containing all code, outputs, and interpretation paragraphs, AND your completed Model Card (markdown or PDF) as a separate file or in the same submission.