A. Module overview
| Field | Value |
|---|---|
| Module ID | L2-M05 |
| Level | 2 - AI Quality Engineer (Evaluation) |
| Description | Design and run a round of human evaluation so that the labels are measurable and trustworthy: a review protocol (the question, the scale and anchors, the number of raters, entry checks with gold items, independence, adjudication, reporting), stratified sampling and load-balanced assignment; the agreement coefficients (Cohen's kappa, weighted kappa, pi, Fleiss, Krippendorff's alpha) with bootstrap intervals; disagreement analysis by item, by kind and by person, drift detection with anchor items, rule-based adjudication and guideline improvement with a change log; and error analysis to build a failure taxonomy from notes. The lab continues the fictional HocVui Tutor product from L2-M01 to L2-M04 and runs offline with seeded simulated annotators (no real people, no model calls, no API key). What is known about real human evaluation is quoted from sources that were read, with access dates; sources that were only read as a summary are marked in each lesson. |
| Why this module matters | Human labels are the standard for calibrating graders and the source of many "quality" figures, but people disagree, get tired, read the guideline differently and change how they score over time. A figure such as "agreement 0.8" says nothing unless you know which coefficient, which distance, how many items, who labelled and how the guideline changed. This module teaches measuring the evaluators themselves and turning raw failures into specific fixes. |
| Target professional competency | Level 2: "Run human-review protocols and measure evaluator reliability; turn raw failures into a failure taxonomy". |
| Estimated duration | 4 lessons × 120 minutes = 8 hours + module assignment ~4 hours + quiz 0.5 hours ≈ 12.5 hours for someone who has completed L2-M04. An estimate, not yet measured with real learners. |
| Prerequisites | L2-M04 (the judge and calibration; binary kappa was introduced in L2-M04-L04 and this module goes further). High-school math. No API key needed. |
| Module output | A human review protocol and an agreement analysis: a protocol with instructions for reviewers, a sampling and assignment plan, an agreement report with intervals, a revised guideline with reasons, and a failure taxonomy built from notes |
| Cost | 0 VND |
What learners build. Step by step, in code-labs/l2-m05: (L01) a review protocol as data with a lint, sample size for a margin of error, stratified allocation and weighted estimation, load-balanced assignment, checking annotators with gold items against the floor of a random assigner; (L02) nominal, linear and quadratic kappa, pi, Fleiss, alpha with missing labels, a pairwise table with a threshold on shared items, a deterministic bootstrap interval, and a published example as an independent reference; (L03) hard items, level-confusion pairs, a report by item kind, a rater's relative offset against anchor items, rule-based adjudication that does not choose silently, a data check of the guideline's change log and a comparison of two rounds on new items; (L04) a failure taxonomy applied with contiguous keywords, a lint, Pareto, Wilson intervals, a saturation check and kappa between two coders. The lab is independent of the earlier labs and needs only pytest.
What the module does not do. It does not measure real people: every number in the lab describes the simulation, not a property of any person, team or model. The module does not discuss pay, training or protection of annotators, and gives no legal opinion; where it mentions the NIST risk management framework it only quotes what the framework says (L01 §6.2). The lab does not teach how to write anchors or a guideline that readers understand better; that takes real people labelling. The promises "kappa is taught in L2-M05-L02" in L2-M01 to L2-M04 are fulfilled in L02; the detailed disagreement analysis and guideline improvement that L2-M02-L03 promised are in L03.
B. Learning objectives
| ID | Objective |
|---|---|
| MO1 | Write a complete human review protocol and run the lint to find what is missing. |
| MO2 | Sample (sample size, stratification, weighted estimation), assign with balanced load and check annotators with gold items against the random floor. |
| MO3 | Compute the agreement coefficients (kappa, weighted kappa, alpha, Fleiss) with bootstrap intervals and read them correctly, including the case of skewed labels. |
| MO4 | Analyse disagreement by item, kind and person, detect drift with anchor items, adjudicate with rules and improve the guideline with a log, re-measuring on new items. |
| MO5 | Build a failure taxonomy from notes, measure its reliability and decide what to fix first. |
C. Lessons
| ID | Lesson | Duration | Prerequisite | Concepts | Practical output |
|---|---|---|---|---|---|
| L2-M05-L01 | Designing a human review protocol: questions, scales, sampling and assignment | 120' | L2-M04-L05 | a protocol differs from a guideline, independence, sample size, stratified sample and weights, assignment, gold items, random floor | A protocol with instructions for reviewers |
| L2-M05-L02 | Agreement between annotators: weighted kappa, Krippendorff's alpha and confidence intervals | 120' | L01 | common formula, distance, weighted kappa, pi, Fleiss, alpha, bootstrap, skewed labels | Agreement computed on sample labels |
| L2-M05-L03 | Disagreement analysis, adjudication and improving the guideline | 120' | L02 | hard items, rater offset, drift and anchor items, adjudication, change log, comparing two rounds | A revised guideline with reasons |
| L2-M05-L04 | Error analysis: from raw failures to a failure taxonomy | 120' | L03 | open notes, taxonomy, priority order, Pareto, saturation, reliability of the taxonomy | A failure taxonomy built from notes |
D. Hands-on assignment (module assignment)
The module assignment (one round of human evaluation for one criterion: a protocol, an agreement report with intervals, a revised guideline and a failure taxonomy) is in exercises.md. The four standalone exercises for the individual lessons are in code-labs/l2-m05/exercises/ and in §9 of each lesson.
E. Module assessment
The module quiz quiz.md, the module assignment rubric in exercises.md, and the practice-0N.md practice for each lesson. The solutions and the instructor guide are for instructors only and are not published.
F. References
The shared list references.md; each lesson also has its own references table in §12 with the access date and how much of each source was read.
Objectives ↔ assessment matrix
| Objective | Lesson | Standalone exercise (§9) | Module quiz | Module assignment criterion |
|---|---|---|---|---|
| MO1 | L01 | exercises/test_l01_protocol.py |
Q8 | AC1 |
| MO2 | L01 | exercises/test_l01_protocol.py |
Q1, Q2, Q6, Q10 | AC1 |
| MO3 | L02 | exercises/test_l02_agreement.py |
Q3, Q9 | AC2 |
| MO4 | L03 | exercises/test_l03_disagree.py |
Q4, Q7, Q12 | AC3, AC4 |
| MO5 | L04 | exercises/test_l04_taxonomy.py |
Q5, Q11 | AC5 |