02Chapter 2: Where bias enters the pipelineThis chapter assumes you know the confusion matrix, precision and recall, train/test splits, and basic Python with NumPy and pandas. It covers where unfairness comes from before any metric is computed. Knowing the source tells you which check to run and which fix could work.3 min read
03Chapter 3: Sensitive attributes and defining groupsThis chapter assumes you know the confusion matrix, precision, recall, and false positive rate. It also assumes basic pandas. Every fairness metric in this tutorial compares groups, so you must first decide what a group is and where its labels come from.3 min read
04Chapter 4: Measuring outcomes and errors per groupThis chapter assumes you know the confusion matrix (TP, FP, TN, FN), precision, recall, and the false positive rate. It also assumes basic NumPy and a train/test split. Every group fairness metric in this tutorial is built from the same few per-group numbers, so we compute them first.2 min read
05Chapter 5: Demographic parityThis chapter assumes you can compute a confusion matrix and the selection rate, and that you can use NumPy. It also assumes you have already split your evaluation data by a sensitive attribute, as covered in the earlier chapters.2 min read
06Chapter 6: Equal opportunity and equalized oddsThis chapter assumes you can read a confusion matrix and compute TPR (true positive rate) and FPR (false positive rate). It also assumes you have the group_rates helper from the previous chapter, which returns per-group selection rate, TPR, FPR, and precision.3 min read
07Chapter 7: Predictive parity and calibration by groupThis chapter assumes you can read a confusion matrix, know precision and recall, and can run basic Python with NumPy. It also assumes you have the group_rates helper from the earlier chapter on per-group rates.2 min read
08Chapter 8: Why you cannot satisfy every criterion at onceThis chapter assumes you can compute per-group selection rate, TPR, FPR, and precision, and that you know demographic parity, equalized odds, and predictive parity. It shows why a model usually cannot meet all three, and what to do about that.2 min read
09Chapter 9: Uncertainty and small subgroupsThis chapter assumes you can compute per-group rates (selection rate, TPR, FPR, precision) as shown earlier, and that you know basic NumPy and pandas. A gap between two groups is an estimate from a sample. Before you call it a fairness problem, check whether it could be noise.2 min read
10Chapter 10: Intersectional groupsThis chapter assumes you can compute per-group selection rate, TPR, and FPR (see the chapter on measuring outcomes per group). It also assumes you know basic pandas.2 min read
11Chapter 11: Individual and counterfactual fairnessThis chapter assumes you can compute per-group rates (the previous chapters) and train a scikit-learn classifier. Group metrics compare averages across groups. Individual and counterfactual fairness ask a different question: is this particular person treated the way a similar person would be?2 min read
12Chapter 12: Running a fairness auditThis chapter assumes you can compute a confusion matrix, know the group metrics from earlier chapters (selection rate, TPR, FPR, precision), and can write basic NumPy. An audit combines those pieces into a repeatable procedure. You run it before release and again whenever the model, the data, or the2 min read
13Chapter 13: Assessment with FairlearnFairlearn is a Python library that computes per-group metrics and summarizes the gaps between groups. This chapter assumes you can compute the confusion-matrix rates by hand, as in the earlier chapter on per-group rates, and that you know scikit-learn and pandas. Fairlearn replaces the hand-written 2 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 have run an audit that found a gap you want to reduce. You should also know how to train a scikit-learn classifier and split data into train and test sets.2 min read
15Chapter 15: Documenting results and governing changeThis chapter assumes you can compute per-group rates and gaps, as in the earlier chapters on group metrics and the audit workflow. It covers what to write down after an audit and how to keep the result valid as the model changes.2 min read