Ethical AI · Intermediate level

Intermediate level · Module 2: Data Quality and Sources of Algorithmic Bias · Lesson 1 of 3

Where Bias Enters the Pipeline

A walk through the machine learning pipeline that names each source of bias with an example from education, health and agriculture.

In this lesson you will

  • Name the main sources of algorithmic bias
  • Locate a given bias at the correct pipeline stage

Key concepts

historical biasrepresentation biasmeasurement biaslabel biasaggregation biasdeployment bias

The lesson

Historical bias is unfairness already present in the world, which the data accurately records: girls in some areas historically had fewer years of schooling. Representation bias occurs when some groups are under-sampled, for example a survey carried out only in towns reachable by road during the rainy season.

Measurement bias occurs when a variable is measured differently across groups. For example, attendance may be recorded carefully in urban schools and estimated in rural ones. Label bias occurs when the target itself is flawed. 'Loan repaid' is a poor label for 'creditworthy' if some customers were never offered flexible repayment.

Aggregation bias appears when one model is used for groups that behave differently. Deployment bias appears when a model is used in a setting it was not built for, such as a model trained on Juba clinics used in a remote county.

Step by step

  1. Draw the ML pipeline: problem, data collection, labelling, features, training, evaluation, deployment.
  2. Place each of the six bias types at the stage where it starts.
  3. For the student-performance project, write one possible example of each bias type.
  4. Rank them by how likely they are in the project data.

Practice activity

Write a bias-source analysis for the level project dataset with one hypothesis per bias type.

Expected result: Six specific, testable hypotheses about bias in the project data.

Check your understanding

  1. A model trained in Juba clinics is used in a remote county. What bias type is this?

    Show answer

    Deployment bias.

  2. Why is 'loan repaid' a possibly biased label?

    Show answer

    Repayment also reflects the terms people were offered, not only their creditworthiness.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.