Skip to main content

Chapter 22: Ethics in Applied Machine Learning

In Chapter 21, we asked what the evidence allows us to tell a decision-maker. Now consider a harder question: even if our predictions are accurate, should we use them to make the proposed decision?

Suppose a university wants to use machine learning to recommend which applicants should receive admission offers. The team has followed familiar good practices: it uses a pipeline, compares against a baseline, tunes on validation data, and evaluates once on a held-out test set. Its predictions closely match past admission decisions.

That result answers a question about prediction. It does not tell us whether past decisions were appropriate, whether errors fall disproportionately on particular applicants, or whether applicants can challenge a mistake. Before using the system, we need to examine the decision it will support and the people it will affect.

Learning outcomes

By the end of this chapter, you should be able to:

  • Identify ethical concerns at different stages of an ML workflow.
  • Distinguish representation, measurement, historical, and evaluation bias from statistical bias.
  • Calculate and interpret group selection rates, true-positive rates, and false-positive rates.
  • Explain why neither high accuracy nor a single fairness measure establishes that a system is suitable for use.
  • Recommend changes to data, evaluation, or a decision process, including when to postpone or decline automation.

Why accuracy is not enough

The university’s stated goal might be to support students who would benefit from its programs. But its training target is whether a previous admissions committee offered a place. Those are different things. A model can reproduce earlier decisions very accurately without identifying who would benefit from attending.

Even changing the target to graduation does not settle the question. Graduation depends on financial circumstances, accessibility, teaching, and support after admission, as well as preparation before admission. A prediction of graduation under existing conditions is not a measure of a person’s intrinsic ability or worth. The university could also change those conditions.

This gap between a measured target and a broader goal should feel familiar. In Chapter 9, accuracy alone did not capture the costs of missed fraud and false alarms. Here we extend that reasoning: who bears the cost, how was the target constructed, and is prediction the right way to address the problem?

Three ideas from the lecture slides help organize these questions. Fairness concerns how a system distributes benefits, burdens, and opportunities, including whether it contributes to unjust disadvantage. People can disagree about what a fair decision requires; a numerical definition makes one interpretation explicit rather than resolving every disagreement. Accountability concerns who must explain decisions, respond to harms, and make changes. Transparency concerns what people can learn about the data, system, and decision process, including its limitations.

These ideas are related but distinct. Publishing model code may improve transparency without giving a rejected applicant a way to correct an erroneous record. Assigning a staff member responsibility does not establish that the system treats applicants fairly. As Chapter 12 emphasized, explaining a prediction does not establish its fairness.

Exercise 22.1: What did the model learn?

A team reports: “Our model matches 95% of historical admission decisions, so it identifies the most deserving applicants.”

  1. Identify the prediction task that was evaluated and the claim that goes beyond it.
  2. Would replacing the target with graduation automatically fix the problem? Explain one limitation.
  3. Propose a question the team should ask applicants or student-support staff before developing the system further.
Discussion: read after trying

The evaluated task is reproducing historical offers. “Most deserving” introduces a value judgement that the evaluation did not test. Graduation is an observable outcome, but it reflects opportunities and support as well as preparation; outcomes for rejected applicants at this university are also unavailable. Useful questions include what obstacles prevent students from succeeding and whether changing support would serve the goal better than ranking applicants.

Where bias enters the ML workflow

Unfair outcomes need not result from someone explicitly instructing a model to discriminate. Choices about whose data to collect, what to measure, and how to act on predictions can introduce problems before training begins. Suresh and Guttag’s framework for sources of harm across the ML life cycle develops this perspective. We focus on four sources highlighted in the lecture slides; they can overlap in one application.

A data-generation diagram tracing the world to a population, then a dataset and training and evaluation data. Historical bias is marked at data generation, representation bias at population selection, and measurement bias at measurement.
Figure 1: Bias can enter before model training: historical conditions shape the world, population selection shapes the sample, and measurement shapes the recorded dataset. Diagram reproduced from slide 10 of the course ethics deck; see Suresh and Guttag’s framework for sources of harm.

Read the diagram from left to right. A train/test split happens after choices about population selection and measurement. Holding out data therefore cannot, by itself, correct problems introduced by those earlier choices.

Representation: who appears in the data?

Representation bias arises when the data do not adequately represent people or circumstances relevant to the intended use. If the university trains on applicants from schools that already send many students to its programs, it may have little evidence about applicants from other schools. A random train/test split can preserve that imbalance in both sets.

The issue is not simply whether group counts are equal. We need to ask whether the sample supports the intended conclusions, including for people with different combinations of circumstances. Collecting more examples from already well-represented settings may leave the gap intact.

A concrete research example is Gender Shades by Joy Buolamwini and Timnit Gebru, which examined commercial systems that classified gender from images and found substantial performance disparities across groups defined by skin type and gender. This was a study of gender classification, not identifying a person’s identity. Its categories and task also do not capture the full range of human identities. The lesson here is methodological: examine who appears in benchmarks and whose errors disappear inside an overall score.

Joy Buolamwini speaking on stage beside a projected image of herself holding a white mask in front of her face.
Figure 2: Joy Buolamwini discussing facial-analysis failures in her TEDx talk, How I’m fighting bias in algorithms. Image reproduced from slide 11 of the course ethics deck. The demonstration concerns detecting a face, a different task from the gender-classification study discussed above.

The demonstration gives us a concrete question to ask about coverage: whose faces does the system detect under the conditions in which it will be used? Detection, identity recognition, and gender classification are different tasks; evidence about one should not be presented as an evaluation of another.

Measurement: what do the columns mean?

Measurement bias concerns how features and labels represent what we want to understand. A proxy is an observable quantity used in place of something we cannot directly measure. An admissions test score might stand in for preparation, but also reflect access to tutoring, the language of the test, or whether accommodations were available.

A proxy is not necessarily useless. The question is what it measures, what it misses, and whether those limitations differ across people. Even a consistently recorded number may be an incomplete representation of the concept we care about.

Labels deserve the same scrutiny as features. If previous staff recorded an applicant as “unmotivated” after an interview, are different interviewers applying that label consistently? Could work or caring commitments have been mistaken for lack of interest? Calling the label the ground truth does not remove these questions.

History: what does reproducing the past preserve?

Historical bias occurs when data reflect existing disadvantage that we do not want a new system to reproduce. Suppose access to advanced courses has been uneven across schools. A fully representative dataset could faithfully record that difference. A model that rewards those courses may preserve unequal access to an opportunity.

This is why a better sample alone may be insufficient. Changes to the target, data, model, or decision policy may help, but they need to be justified against the underlying problem. No preprocessing step can by itself undo the circumstances that produced the records.

Evaluation: whose performance did we measure?

Evaluation bias arises when the evaluation does not adequately assess intended use. A test set drawn from the same narrow source as the training data can give a reassuring score while missing important deployment conditions. An overall average can also conceal a large disparity between groups.

Following the Golden Rule remains necessary: leakage would undermine our evidence further. But keeping training and testing separate does not guarantee that the test population, labels, or chosen metric answer the right question.

NoteTwo meanings of bias

Earlier chapters used bias to discuss systematic prediction error associated with a model’s assumptions, often in connection with underfitting. Here, bias concerns systematic patterns that can produce unfair disadvantage. A flexible model with low statistical bias can reproduce discriminatory decisions. Making a model more complex is therefore not a general remedy for unfairness.

These problems are not confined to data. Optimizing average accuracy may prioritize patterns in the largest group. A threshold determines which mistakes become more common. Staff may use a model beyond the setting for which it was evaluated. We must examine the whole path from problem definition to action.

Evaluating fairness across groups

NoteClass activity: audit an income classifier

The Chapter 22 activity demo extends this discussion to historical Adult income data. Compare group metrics, test whether removing a sensitive feature resolves disparities, and assess a proposed use for lending decisions. Allow 20–25 minutes.

Recall the group comparison in Chapter 9. We calculated familiar metrics separately for different subsets of people. This is disaggregated evaluation: it lets us see differences that an aggregate result may hide.

The chart below gives a historical example of why these comparisons matter. The lowest accuracy in each set of bars is for darker-skinned females, using the categories reported in the audits. Looking only at a single overall score would obscure this pattern.

Grouped bar chart comparing Microsoft, Face++, IBM, Amazon, and Kairos across darker female, darker male, lighter female, and lighter male groups. Darker female accuracy is lowest for every system shown.
Figure 3: Historical group differences in commercial gender-classification accuracy. Reproduced from slide 6 of the course ethics deck; the slide credits Alex Najibi’s 2020 article. See also the underlying Gender Shades study and Actionable Auditing study.

Despite the image’s broad title, the task here is gender classification from an image, not recognizing someone’s identity. The chart summarizes historical audits of particular system versions, rather than a current comparison of these products. The percentages above the bars indicate the spread between the highest and lowest group accuracies in each set, in percentage points; they are not overall error rates. The recorded gender and skin-tone categories also have limitations and do not represent the full range of identities.

Before continuing, ask: could we recover overall accuracy from these bars alone? We would also need the number of examples in each group to weight the group accuracies appropriately. Equal weighting would answer a different question if the group sizes differed.

We will use a deliberately constructed admissions example to make the arithmetic visible. There are 40 fictional applicants, 20 in Group A and 20 in Group B. The labels are invented: y = 1 means the applicant would meet a specified first-year progression criterion if admitted with a specified support package. A positive prediction means recommending an offer. The scores are also invented model outputs; we will not treat them as calibrated probabilities.

In each group, 10 applicants have label 1 and 10 have label 0. We chose equal label proportions to isolate differences in the decision rule. This is an assumption of the example, not a claim about real populations or the causes of any disparity.

WarningInformation we would not normally have

In real admissions, we cannot observe how every rejected applicant would have performed if admitted. Outcomes among admitted students alone need not represent all applicants. Our synthetic labels let us practise calculations; they do not solve this missing-outcome problem. Even observed progression would still be a limited measure of the university’s broader goal.

The setup below constructs one row per applicant. No model fitting or dataset download is needed.

import pandas as pd
from sklearn.metrics import confusion_matrix

applicants = pd.DataFrame({
    "group": ["A"] * 20 + ["B"] * 20,
    "y": ([1] * 10 + [0] * 10) * 2,
    "score": (
        [0.8] * 8 + [0.3] * 2 + [0.7] * 2 + [0.2] * 8
        + [0.8] * 6 + [0.4] * 2 + [0.3] * 2 + [0.2] * 10
    ),
})
applicants["recommend_offer"] = (applicants["score"] >= 0.5).astype(int)
applicants.groupby("group")[["y", "recommend_offer"]].sum()
y recommend_offer
group
A 10 10
B 10 6

Before calculating, predict whether Group A or Group B will have higher accuracy. Then ask a different question: among applicants with label 1, which group is more likely to receive an offer?

The following function reports the confusion-matrix counts and the rates we need. labels=[0, 1] keeps the matrix order explicit. A rate with no eligible observations is left undefined rather than reported as zero.

def group_report(data, prediction_column):
    rows = []
    for group, part in data.groupby("group"):
        tn, fp, fn, tp = confusion_matrix(
            part["y"], part[prediction_column], labels=[0, 1]
        ).ravel()
        rows.append({
            "group": group,
            "n": len(part),
            "TN": tn, "FP": fp, "FN": fn, "TP": tp,
            "accuracy": (tn + tp) / len(part),
            "selection_rate": part[prediction_column].mean(),
            "TPR": tp / (tp + fn) if tp + fn else float("nan"),
            "FPR": fp / (fp + tn) if fp + tn else float("nan"),
        })
    return pd.DataFrame(rows).set_index("group")

initial_report = group_report(applicants, "recommend_offer")
initial_report.round(2)
n TN FP FN TP accuracy selection_rate TPR FPR
group
A 20 8 2 2 8 0.8 0.5 0.8 0.2
B 20 10 0 4 6 0.8 0.3 0.6 0.0

Both groups have accuracy 0.80, and overall accuracy is also 0.80. Yet their errors differ. Group A has 2 false negatives and 2 false positives. Group B has 4 false negatives and no false positives. Among applicants with label 1, the offer rate is 0.80 in A and 0.60 in B. Equal accuracy has hidden a difference in missed opportunities.

Fairness criteria ask different questions

We can now give names to three comparisons. Each denominator matters.

Criterion Rate compared across groups Question in this example
Statistical parity, also called demographic parity Selection rate: \((TP + FP)/n\) What fraction of each group receives an offer?
Equal opportunity True-positive rate: \(TP/(TP + FN)\) Among applicants with label 1, what fraction receives an offer?
Predictive equality False-positive rate: \(FP/(FP + TN)\) Among applicants with label 0, what fraction receives an offer?

Equal opportunity can equivalently be expressed as equal false-negative rates, because the false-negative rate is one minus the true-positive rate. Predictive equality is different from equal precision: its denominator contains all actual negatives, not all positive predictions. These are group criteria for a specified population and label; they do not establish that every individual decision is appropriate. See Hardt, Price, and Srebro on equal opportunity and Fairlearn’s discussion of common fairness metrics.

Our initial rule meets none of these three parity criteria in this constructed sample. Selection rates are 0.50 and 0.30; true-positive rates are 0.80 and 0.60; false-positive rates are 0.20 and 0.00. The differences tell us what to investigate. They do not, by themselves, identify a cause or determine the right remedy.

What fairness metrics can—and cannot—decide

A university concerned with access might examine selection rates. A university concerned with missed offers among applicants likely to meet its progression criterion might examine true-positive rates. But the second comparison relies on the meaning and availability of the labels. If the labels already encode disadvantage, matching error rates against them does not remove that disadvantage.

We also need to interpret errors in context. A false negative withholds an opportunity from someone who would meet the progression criterion. A false positive recommends someone who would not meet that criterion under the stated conditions. That does not mean this person is undeserving or cannot benefit from attending. Additional support could change the outcome, and the university has goals beyond this one criterion.

Changing a threshold changes the decision

Suppose we lower the threshold for everyone from 0.5 to 0.4. Predict which confusion-matrix entries will change before running the code.

applicants["offer_at_04"] = (applicants["score"] >= 0.4).astype(int)
revised_report = group_report(applicants, "offer_at_04")
revised_report.round(2)
n TN FP FN TP accuracy selection_rate TPR FPR
group
A 20 8 2 2 8 0.8 0.5 0.8 0.2
B 20 10 0 2 8 0.9 0.4 0.8 0.0

Two Group B applicants move from false negatives to true positives. Both groups now have a true-positive rate of 0.80, satisfying equal opportunity in this sample. Selection rates remain different: 0.50 for A and 0.40 for B. False-positive rates also remain different: 0.20 and 0.00. Meeting one criterion has not made the other comparisons equal.

There is an additional consequence: the rule now recommends 18 offers rather than 16. If there are only 16 places, the revised rule is not an implementable admissions policy on its own. We would need to reconsider allocation under that capacity constraint and evaluate the resulting decisions. A metric improvement in a notebook is not enough to justify a policy change.

This example does not prove that fairness criteria always conflict. Some datasets and decision rules can satisfy several together. It shows why we must calculate the comparisons and explain which concerns they address rather than select one favourable number and stop.

We chose the new threshold after inspecting these labels. If these were real test data, we would now be using them for development. We would need validation data for choosing the rule and fresh held-out evidence for evaluating the revision, as in Chapter 9.

What a group comparison leaves out

Twenty observations per group make arithmetic manageable, but they would be weak evidence for a consequential decision. Here, changing one positive applicant’s decision changes that group’s true-positive rate by ten percentage points. In an empirical study, report counts alongside rates and examine uncertainty before interpreting a difference as stable.

Groups also overlap. A comparison by gender alone can hide problems experienced by people with a particular combination of gender, disability, and educational background. Examining intersections can reveal such patterns, but smaller samples make estimates less precise. Missing group information is another limitation, not evidence that disparities are absent.

The fictional groups are convenient for calculation. Real demographic categories require care: who defined them, how were they recorded, and do they represent how people describe themselves? Group averages cannot capture every relevant experience. Similar rates can coexist with serious problems affecting everyone.

Exercise 22.2: Audit the revised recommendation

A colleague concludes, “At threshold 0.4, both groups have recall 0.8, so we have fixed fairness.”

  1. Use the output to identify two comparisons that remain unequal.
  2. Explain what assumption about the label is needed to interpret recall as access among applicants likely to meet the progression criterion.
  3. The university has 16 places. What further decision must be specified before it can use the revised rule?
  4. What additional evidence would you want before treating these rates as representative of future applicants?
Discussion: read after trying

Selection rates remain 0.50 versus 0.40, and false-positive rates remain 0.20 versus 0.00. Recall has the proposed interpretation only if the labels validly represent the progression outcome under the stated conditions. The rule recommends 18 applicants, so the university must specify how it allocates 16 places and evaluate that complete policy. Evidence should address label availability and quality, coverage of intended applicants, sample sizes and uncertainty, and evaluation on data not used to choose the threshold.

Responding to ethical concerns

Once we identify a concern, the next step depends on its source. If some schools are poorly represented, targeted data collection might improve evaluation and learning. If the target is inappropriate, collecting more of the same labels may make us better at the wrong task. If lack of support drives outcomes, changing support may be more useful than refining predictions.

Technical interventions can include reweighting training examples, changing the learning objective, or modifying thresholds. These choices affect both errors and the decision process, so they need validation against the concerns that motivated them. More complex methods do not eliminate the need to justify the target or the use of the system.

Why removing a column is insufficient

As Chapters 9 and 12 noted, omitting a sensitive attribute does not remove related information. School, location, and text in an application may act as proxies for demographic membership. A model can therefore produce unequal outcomes without receiving an explicit group column.

Group information can also be needed to investigate disparities. Distinguish collecting an attribute for a carefully governed evaluation from using it as a predictor or a decision rule. These uses raise different questions. Sensitive data should not be collected casually: establish a purpose, appropriate authority and consent where applicable, access restrictions, and retention practices. If suitable data are unavailable, state what cannot be assessed.

Accountability needs a process

“Keep a human in the loop” is incomplete guidance. A reviewer who has no time, no access to relevant evidence, or no authority to override the system may simply approve its outputs. Reviewers need a defined role, training, and a way to record and investigate disagreements. Their decisions also need evaluation; human review is not automatically fair.

For the admissions proposal, applicants should know how to correct an inaccurate record and challenge a decision. Someone must own the response, have authority to change the process, and be responsible for acting when monitoring reveals a problem. Consulting applicants and student-support staff can surface harms that a development team did not anticipate, but consultation must be able to affect the design.

Documentation makes those commitments inspectable. A dataset datasheet records matters such as why data were collected, what they contain, and limitations on use, as proposed by Gebru and colleagues. A model card describes a model’s intended uses, evaluation, and limitations, following Mitchell and colleagues. These records help others judge suitability; completing a template does not certify a system as safe or fair.

Exercise 22.3: Evaluate a proposed fix

For each proposal below, describe a situation where it could help, a problem it would leave unresolved, and evidence you would seek before relying on it.

  • “Remove the demographic group column.”
  • “Collect twice as much training data.”
  • “Have a staff member approve every recommendation.”

Then choose the most useful next step for the admissions project as currently described. You may propose a different step. Justify it by identifying the uncertainty it would address.

Discussion: read after trying

Removing a column could prevent direct use of that attribute, but proxies may remain and audit information may be lost. Additional data could improve coverage if collection targets missing circumstances, but duplicating the existing sampling process may preserve its limitations. Staff review could catch erroneous records if reviewers have the evidence and authority to act; it could also preserve earlier discriminatory judgements. A useful immediate step is to clarify the admissions goal and target with affected people before collecting more data or tuning a model to reproduce past offers.

Wider consequences and responsible use

Fairness comparisons are one part of ethical assessment. A system can have similar error rates across groups while invading privacy, consuming resources unnecessarily, or encouraging harmful behaviour.

Predictions can change the next dataset

Suppose the university admits applicants recommended by the model, then retrains on outcomes from admitted students. Its earlier recommendations now influence who can contribute an outcome to the next training set. Applicants it rejected remain largely unobserved. A pattern can become self-reinforcing without becoming better supported by evidence.

This is a feedback loop: using the system changes the conditions that generate future data. We encountered related concerns in recommender systems, where showing an item affects whether someone can click it. Monitoring must therefore examine how the decision process changes data collection, not only whether a score on a fixed benchmark remains high.

Privacy and appropriate data use

An application may contain information that is accessible to a developer but inappropriate to use for a new purpose. For example, notes collected to arrange disability accommodations should not automatically become features for ranking applicants. Predictive usefulness is not sufficient justification for using a field.

Begin by asking which data are necessary for the agreed purpose, who can access them, and how long they should be retained. Removing names alone does not establish that records are anonymous: combinations of attributes may still reveal identity. Outputs and documentation also need care; publishing tiny subgroup tables can expose sensitive information. Transparency does not require publishing personal records.

Guardian headline reporting that a study found UK police use of live facial recognition unlawful and unethical, above a photograph of a camera and a screen displaying faces.
Figure 4: A historical deployment controversy: a Guardian report dated 27 October 2022. Screenshot reproduced from slide 6 of the course ethics deck; photograph credited to Stefan Rousseau/PA.

This example concerns live identity recognition in public spaces, a different task from the gender-classification chart earlier in the chapter. That chart does not evaluate the police system pictured here. The headline reports a particular study’s conclusion in 2022; it should not be read as a statement of current legal status.

Consider this question: suppose a surveillance system identified everyone correctly. Which ethical concerns would remain? Accuracy would not settle whether collecting people’s biometric information was justified, who could access it, how long it could be retained, or how people could challenge its use. These are questions about the purpose and governance of a system, as well as its predictions.

Environmental costs and useful improvements

Training, repeated model searches, and serving predictions require computation. Environmental costs also involve the hardware and infrastructure used. Energy use and carbon emissions are related but different: emissions depend partly on how electricity is produced.

For an applied project, compare the practical benefit of a more expensive model with its development and operating costs. Record the search budget and consider expected prediction volume. Reusing a suitable pretrained model or choosing a smaller model may reduce computation, but the benefit depends on the task and deployment conditions. There is no universal rule that a specified gain in accuracy requires a fixed increase in energy.

The Green AI paper by Schwartz and colleagues argues for evaluating computational efficiency alongside predictive performance. For our admissions project, a small score improvement should prompt a question: does it meaningfully improve the decision enough to justify the additional resources?

Optimizing the wrong objective

The slides introduce alignment: trying to make a system’s behaviour follow intended goals and constraints. A familiar applied version is the gap between the metric we optimize and what we actually want to achieve.

A support system optimized only to close tickets quickly may close unresolved requests. A recommender optimized only for clicks may favour attention-grabbing material that users later regret. Likewise, reproducing past admissions decisions may miss a university’s educational goals.

Start by examining incentives, target definitions, and foreseeable ways an apparently successful score could accompany failure in practice. Measure outcomes beyond the optimized metric and set boundaries on how the system may act. Thought experiments about unconstrained AI can motivate discussion, but they are not evidence that a particular deployed model has intentions or will behave in a particular way.

Making a responsible recommendation

Return to the university’s original proposal. Accurate predictions of past decisions support a narrow claim: the model can reproduce many decisions under the conditions represented in the test data. They do not establish that automated admissions would serve the university’s goals or treat applicants fairly.

A responsible recommendation should connect evidence to a concrete next action. That action may be further investigation, a redesign of the decision process, a limited evaluation that does not determine offers, or a decision not to build the system. Deployment is not the inevitable endpoint of every ML project.

Exercise 22.4: Write the decision memo

The project team has evaluated its model only against historical offers. It has not consulted applicants or support staff. It has no appeal process, and its dataset contains first-year outcomes only for admitted students. The team proposes using the model to reject the lowest-scoring applicants automatically next year.

Write a recommendation of 150–250 words for the admissions director. Choose whether to proceed, revise, gather further evidence, or stop the proposed automation. Include:

  • What the existing evidence supports and one consequential limitation.
  • A specific action that addresses that limitation, including who should be involved.
  • What would need to be established before reconsidering automated rejection, or why you would reject that use altogether.

Do not invent performance measurements or assume that human decisions are an unbiased baseline. Use Chapter 21’s communication principles to make your recommendation understandable.

Review after writing

Does your recommendation distinguish agreement with past offers from suitability for future admissions? Does it address missing outcomes and the meaning of the target? Have you explained why your next action would change the evidence or the decision process? “Collect more data” and “add human review” need enough detail to be assessable. Several recommendations can be justified, but the supplied evidence does not establish that automatic rejection is suitable.

Chapter summary

Ethical assessment begins with the problem we choose to solve and continues through data collection, evaluation, and use. Representation, measurement, history, and evaluation can each contribute to unfair outcomes. Good predictive practice is necessary, but a held-out score cannot answer every question about a system’s consequences.

Group comparisons make particular differences visible. Selection rates, true-positive rates, and false-positive rates answer different questions; their interpretation depends on the labels, population, and decision. A favourable result under one criterion does not establish fairness overall.

Before recommending use, examine who benefits, who bears mistakes, what people can challenge, and who can change the process. Consider privacy, feedback loops, and resource costs alongside predictive performance. Sometimes the appropriate response is to change the target or the surrounding service, and sometimes it is not to automate the decision.

Chapter 23 turns to deployment. Making predictions available to other people also makes these responsibilities concrete: we need to specify intended use, monitor what happens, and be able to respond when evidence reveals a problem.

Sources and further reading

This chapter adapts the course lecture slides, Introduction to AI, fairness and bias (23_AIcsCoreFairness). The slides credit the admissions thought experiment to Michael Kearns and Aaron Roth’s The Ethical Algorithm. The numerical dataset here is newly constructed for teaching; it is not an empirical admissions study.

For further reading, Suresh and Guttag organize sources of harm across the ML life cycle. Hardt, Price, and Srebro develop the equal-opportunity criterion. Fairlearn’s assessment guide connects group comparisons to a broader assessment process. These readings extend the chapter; their technical details are not prerequisites for the exercises.