01Chapter 1: Why fairness assessment matters: harms and contextA model can score well on a test set and still treat groups of people very differently. Fairness assessment is the practice of measuring those differences, judging whether they cause harm, and recording what you found. This chapter explains why the practice exists and how to decide what to measure. 6 min read
02Chapter 2: Where bias enters the pipelineThis chapter assumes you know binary classification and the confusion matrix, can read precision, recall, and false positive rate, and can write basic Python with NumPy and scikit-learn. It does not define fairness metrics yet. It covers where unequal outcomes come from, so that later you can choose6 min read
03Chapter 3: Sensitive attributes and defining groupsEvery group fairness metric compares outcomes across groups, so you must decide which groups to compare before you compute anything. This chapter covers what counts as a sensitive attribute, how groups get defined and recorded, and what to do when the attribute is missing or unreliable. It assumes y7 min read
04Chapter 4: Measuring outcomes and errors per groupEvery group fairness metric in this tutorial is built from a small set of per-group numbers. If you compute those numbers correctly, the metrics in later chapters reduce to simple subtraction. If you compute them carelessly, every later conclusion is wrong. This chapter covers the four rates, how to6 min read
05Chapter 5: Demographic parityThis chapter assumes you can read a confusion matrix, know precision, recall, and false positive rate, and can run basic Python with NumPy. It also assumes you have already defined groups, as covered in the chapter on sensitive attributes.6 min read
06Chapter 6: Equal opportunity and equalized oddsThis chapter assumes you can read a confusion matrix and know that true positive rate (TPR) is recall and false positive rate (FPR) is FP / (FP + TN). It also assumes you have used NumPy and scikit-learn. The previous chapters covered per-group rates and demographic parity. Here you will use the lab5 min read
07Chapter 7: Predictive parity and calibration by groupThis chapter assumes you can compute a confusion matrix, precision, recall, and false positive rate. It also assumes you can use NumPy and pandas, and that you know the per-group rates from the earlier chapter on measuring outcomes and errors per group. Here we look at fairness from the point of vie6 min read
08Chapter 8: Why you cannot satisfy every criterion at onceThis chapter assumes you can read a confusion matrix, you know precision, recall (TPR) and FPR, and you have met demographic parity, equalized odds and predictive parity in the earlier chapters. You should also be comfortable with basic Python and NumPy.5 min read
09Chapter 9: Uncertainty and small subgroupsThis chapter assumes you can compute per-group selection rate, TPR, FPR, and precision from the earlier chapters. It also assumes basic familiarity with confidence intervals and NumPy. It covers how to tell a real gap between groups from sampling noise, and what to do when a group has few examples.5 min read
10Chapter 10: Intersectional groupsThis chapter assumes you can compute per-group selection rates and error rates (see "Measuring outcomes and errors per group") and that you know the basic group criteria. It also assumes you are comfortable with pandas groupby. Here you will learn why checking one sensitive attribute at a time can7 min read
11Chapter 11: Individual and counterfactual fairnessThis chapter assumes you know binary classification, the confusion matrix, train/test splits, and basic Python with NumPy and scikit-learn. You should also have read the earlier chapters on sensitive attributes and per-group rates.6 min read
12Chapter 12: Running a fairness auditA fairness audit is a fixed sequence of steps that turns "is this model fair?" into evidence you can review and repeat. This chapter assumes you know the confusion matrix, precision, recall, and false positive rate. It also assumes you can write basic Python with NumPy and pandas, and that you have 4 min read
13Chapter 13: Assessment with FairlearnEarlier chapters showed how to compute per-group rates by hand and turn them into gaps. This chapter shows how to do the same job with Fairlearn, an open-source Python library for fairness assessment and mitigation. It assumes you can already do the following:5 min read
14Chapter 14: Mitigation: pre-, in-, and post-processingThis chapter assumes you can compute per-group selection rate, TPR, FPR, and precision, and that you know the group fairness criteria from the earlier chapters (demographic parity, equalized odds, predictive parity). It also assumes you have run a fairness audit. You need working Python with NumPy, 6 min read
15Chapter 15: Documenting results and governing changeA fairness audit has value only if someone can read it later, repeat it, and act on it. This chapter covers what to record after an audit, how to tie that record to a model version, and how to control changes so a model that passed once does not drift into harm unnoticed.6 min read