Preview of Module 5 · How Machines Learn
Looking for Teach the Sorter?
Train a small classifier from examples, then test what it learned. This Module 5 preview is optional in the Data unit.
Teach the Sorter →Module 2 · Audit Console · Extension lab
Change one assumption.
Watch the data change.
Runs in your browser
You review a training dataset for a fictional staffing company. Before approving it, test how its design shapes who gets hired.
Invented applicants and hiring decisions. This small experiment is separate from the six-person admissions ranking and the original seven-column Data Audit dataset.
Extension lab, for students who want more: This experiment is not required. Its work saves separately from the Data unit record. Download the Console evidence JSON and paired CSV below and upload them separately from your unit PDF.
City areas A–D: fictional areas of a city or region where applicants live; not where data is stored. The letters do not tell us their skills, reliability, or distance from the workplace.
In the graphic, “Group” means the city area where an applicant lives. Python creates invented hiring outcomes from the stated probabilities; it does not evaluate applicant qualifications.
Read the graphic
A dataset is an organized set of records. Each row represents one applicant; each column records one detail. This small example has three fields: ID, Group, and Hired. A 1 means hired; a 0 means not hired.
| ID | Group | Hired |
|---|---|---|
| 01 | A | 1 |
| 02 | D | 0 |
| 03 | B | 1 |
The chart counts two hired and one not hired. It summarizes the recorded outcomes; it does not explain why those decisions happened. Skills, experience, caregiving, and transport are not columns in this example.
Why use a dataset? It lets us organize many records, count outcomes, and compare groups. Before acting, a human reviewer must investigate what was recorded, what was omitted, and whether the evidence fits the decision.
- Predict
- Run Python
- Change one setting
- Compare & explain
The setup
The rule comes before the rows.
The generator creates 1,000 invented applicants who live in four fictional city areas: A, B, C, and D. Each area gets a starting chance of being hired. These chances are assumptions we put into the program, not findings about real neighborhoods.
Probability is the setting. Selection rate is the result: hired applicants ÷ all applicants in that cluster. A generated result need not equal its starting probability exactly.
First run
D’s starting chance 22%
Comparison run
D’s starting chance You choose
Keep: the same 1,000 fictional applicants, groups, and computer-generated chance numbers.
Change: only City area D’s starting chance of a hire.
Three example cards illustrate the setup; they are not actual rows from your run. If we also changed the random numbers, we could not isolate the effect of the new setting.
See the experiment as an infographic

An example of the process, not your results. You choose D’s new setting below. Your actual result charts appear only after Python runs.
1 · Commit before results
Make your prediction.
0 characters · 40 minimum
A prediction is a commitment, not a graded answer. You can continue even if the result surprises you.
2 · Generate the evidence
Run the baseline.
Python generates the rows and calculates the results on this device. No installation or account is needed. The first run loads the bundled Python engine.
See the Python calculation
The Python source loads when you run the lab.
Your first result
Read what the run produced.
3 · One controlled change
Change City area D’s starting chance.
Keep the same applicants, groups, and computer-generated chance numbers. Change only D’s starting chance; leave A, B, and C alone.
0 characters · 40 minimum
4 · Compare the evidence
What moved; and what stayed?
We changed invented data assumptions. This does not prove a real hiring process was repaired, or establish why a real-world disparity exists.
0 characters · 40 minimum
Use this saved evidence in your existing Decision Record. No second certificate or repeated summary is required.
Your predictions and evidence are saved in this browser.