Intermediate level · Module 2 of 7 · 14 guided hours
Data Quality and Sources of Algorithmic Bias
Where bias enters a machine learning system (sampling, measurement, labels, features, aggregation and deployment) and how to examine data quality by group before training any model.
Learning objectives
- Explain the main sources of algorithmic bias across the ML pipeline
- Assess representation and data quality by group with pandas
- Document a dataset's origin and limitations in a datasheet
Topics
- sampling and representation bias
- measurement and label bias
- proxy features
- historical bias
- missing data by group
- datasheets for datasets
Lessons
-
Lesson 1 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.
historical biasrepresentation biasmeasurement biaslabel biasaggregation biasdeployment bias
-
Lesson 2 Profiling Data Quality by Group with pandas
Learners use pandas to check representation, missing values and label rates for each group, because data problems that are hidden in overall statistics often appear by group.
groupbyvalue_counts(normalize=True)missing values by groupbase ratedisaggregation
-
Lesson 3 Documenting Data with a Datasheet
Learners write a datasheet that records why a dataset was created, how it was collected, who is represented and its known limitations, so that future users do not repeat hidden mistakes.
datasheetprovenancecollection processknown limitationsintended and prohibited uses
Practical activity
Profile the level-project dataset by group, write a bias-source analysis and complete a datasheet before any model is trained.
Expected outcomes
- Skill in finding bias in data before modelling
- A datasheet for the project dataset
Assessment
Notebook check of the by-group profile (50%) and the marked datasheet (50%).
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.