Sub topic 11
Checking that people measure the same way
This chapter assumes you can already write an operational definition (criterion, method, decision rule) and have a draft data collection plan. You should also know what a proportion is. Here you test whether different people applying that definition get the same answer.
Why a good definition is not enough
An operational definition is a written promise that two people will judge the same item the same way. Writing it does not prove the promise holds. People read words differently, they work under time pressure, and they carry habits from old checklists. If two auditors disagree on 30% of invoices, the data shows how well your measurement system works. It does not show how well your process works.
The measurement system is everything that turns an item into a recorded value: the definition, the instrument or checklist, the people, and the conditions. A measurement system check, often called a measurement system analysis (MSA), asks how much of the variation in your data comes from the measuring and how much from the process.
For attribute data (pass/fail, defective/not defective), the standard check is an attribute agreement study. For continuous data you would use a gage repeatability and reproducibility (Gage R&R) study, which this chapter only mentions at the end.
Two questions: repeatability and reproducibility
Attribute agreement studies answer two separate questions.
| Term | Question | Compared |
|---|---|---|
| Repeatability (within appraiser) | Does one person give the same answer when judging the same item twice? | Appraiser against themselves |
| Reproducibility (between appraisers) | Do different people give the same answer for the same item? | Appraiser against appraiser |
| Accuracy (against a standard) | Does the answer match the known correct answer? | Appraiser against a reference |
The three problems have different fixes. Poor repeatability usually points to an unclear definition or a rushed, fatiguing task. Poor reproducibility usually points to different training or different interpretations of the same words. Poor accuracy with good agreement means everyone is consistently wrong, often because the definition itself describes the wrong thing.
Designing the study
A weak study gives false comfort. Follow these design rules.
- Pick items that cover the range. Include clear passes, clear failures, and borderline cases. If every item is obvious, agreement will look excellent and tell you nothing. A common mix is about half defective and half good, with several borderline items.
- Use enough items. Aim for at least 30. With 10 items, one disagreement moves the result by 10 percentage points.
- Use the real appraisers. Test the people who will actually collect the data, usually two or three of them.
- Hide the identity of items. Relabel items with random codes and shuffle the order for each round so people cannot remember earlier answers.
- Repeat the judging. Each appraiser judges every item at least twice, with a gap between rounds (a day if possible). Without repeats you can test reproducibility but not repeatability.
- Keep appraisers independent. They must not discuss items or see each other's answers until the study ends.
- Establish a reference standard if you can. An expert, or the agreement of several experts after discussion, decides the "true" answer for each item. This allows an accuracy check.
- Use normal conditions. Same forms, same tools, same time pressure as real collection.
Calculating agreement
The simplest measure is percent agreement: the share of items on which two judgments match. Here are two appraisers judging the same ten items, as in the plan's earlier example.
appraiser_a = ["pass", "fail", "pass", "pass", "fail", "pass", "fail", "pass", "pass", "fail"]
appraiser_b = ["pass", "fail", "pass", "fail", "fail", "pass", "fail", "pass", "pass", "pass"]
matches = sum(a == b for a, b in zip(appraiser_a, appraiser_b))
agreement = matches / len(appraiser_a)
print(f"Agreement: {agreement:.0%}") # Agreement: 80%Eight of ten items match, so agreement is 80%. That sounds decent, but percent agreement has a flaw: two people guessing will agree some of the time by chance. If 60% of items are passes and both appraisers say "pass" 60% of the time at random, they would still agree on 52% of items by luck alone.
Correcting for chance with kappa
Cohen's kappa measures agreement beyond what chance would produce. The formula is:
kappa = (po − pe) / (1 − p_e)
Here po is the observed agreement and pe is the agreement expected by chance. To get p_e, multiply the two appraisers' rates for each category and add the products.
For the data above, A says "pass" 6 times and "fail" 4 times, and so does B. So p_e = 0.6 × 0.6 + 0.4 × 0.4 = 0.52. Then kappa = (0.80 − 0.52) / (1 − 0.52) ≈ 0.58.
from collections import Counter
def percent_agreement(a, b):
return sum(x == y for x, y in zip(a, b)) / len(a)
def cohens_kappa(a, b):
n = len(a)
p_o = percent_agreement(a, b)
count_a, count_b = Counter(a), Counter(b)
p_e = sum((count_a[k] / n) * (count_b[k] / n) for k in set(a) | set(b))
if p_e == 1:
return 1.0 # both always gave the same single answer
return (p_o - p_e) / (1 - p_e)
appraiser_a = ["pass", "fail", "pass", "pass", "fail", "pass", "fail", "pass", "pass", "fail"]
appraiser_b = ["pass", "fail", "pass", "fail", "fail", "pass", "fail", "pass", "pass", "pass"]
print(f"Agreement: {percent_agreement(appraiser_a, appraiser_b):.0%}") # Agreement: 80%
print(f"Kappa: {cohens_kappa(appraiser_a, appraiser_b):.2f}") # Kappa: 0.58A widely used rule of thumb, from the Automotive Industry Action Group (AIAG) measurement guidance, reads kappa as follows.
| Kappa | Reading |
|---|---|
| Above 0.90 | Excellent agreement |
| 0.75 to 0.90 | Good agreement |
| 0.40 to 0.75 | Marginal. Improve the system before relying on it |
| Below 0.40 | Poor. The data cannot be trusted |
At 0.58, this pair is marginal. Agreement of 80% hid that. The thresholds are conventions, not laws. A safety-critical decision may demand a higher standard than a low-stakes internal count.
Checking repeatability, reproducibility and accuracy
With a full study you compute several numbers, each from the same table of judgments.
- Repeatability: for each appraiser, compare round 1 with round 2. Report percent agreement or kappa per person.
- Reproducibility: compare appraisers with each other, using each person's rounds. Some tools report the share of items on which all appraisers agreed in all rounds.
- Accuracy: compare each judgment with the reference standard.
Here is a short accuracy check against a reference. It lists the items where the appraiser was wrong, which is what you need to fix the definition.
reference = ["pass", "fail", "pass", "fail", "fail", "pass", "fail", "pass", "pass", "fail"]
appraiser = ["pass", "fail", "pass", "pass", "fail", "pass", "fail", "pass", "pass", "pass"]
wrong = [i + 1 for i, (r, a) in enumerate(zip(reference, appraiser)) if r != a]
accuracy = 1 - len(wrong) / len(reference)
print(f"Accuracy: {accuracy:.0%}") # Accuracy: 80%
print(f"Items judged wrongly: {wrong}") # Items judged wrongly: [4, 10]Look at the direction of the errors as well as their number. Items 4 and 10 are true failures that were passed. A system that lets defects through is worse for the customer than one that rejects good items, so the two error types deserve separate counts: missed defects (false passes) and false alarms (false failures).
What to do when agreement is poor
Disagreements are information. List the items where judgments differed and sit down with the appraisers, after the study is finished, to ask what each one saw.
- Look for patterns in the items. If all disagreements involve the same field, the definition is vague about that field. Tighten the criterion or add an example.
- Look for patterns in the people. If one appraiser differs from everyone else, check whether they were trained differently or use an older checklist.
- Add examples to the definition. Photos or sample invoices showing "defective" and "not defective" cases remove most ambiguity.
- Clarify the decision rule. Rules such as "count a mismatch once, regardless of how many fields differ" prevent counting differences between people.
- Retrain and repeat. Run the study again with fresh item codes. Do not reuse the same set, because appraisers may remember it.
Do not fix the problem by averaging or discarding the "bad" appraiser. That hides the instability and the data will still reflect it.
Common mistakes
- Testing with obvious items. This inflates agreement.
- Letting appraisers discuss during the study. Agreement then reflects conversation, not independent judgment.
- Using the process owner as the only reference. If the reference is wrong, accuracy is meaningless. Use more than one expert for hard cases.
- Skipping the check because the definition "looks clear". Clear to the author is not clear to the collector.
- Treating one study as permanent. Repeat the check when staff change, the definition changes, or the process changes.
Continuous data: a brief note
If your metric is continuous, such as cycle time measured with a gauge or timer, the same ideas apply under the name Gage R&R. Several operators measure the same parts multiple times, and an analysis of variance splits the total variation into part-to-part variation, repeatability and reproducibility. The principle is identical: the measurement should account for a small share of the variation you observe. A common target is that measurement variation takes up less than 10% of the total, with 10% to 30% treated as marginal.
Exercise
Two auditors each judge 20 invoices as "defective" or "ok". They agree on 16 invoices. Both label 50% of invoices "defective" and 50% "ok". Calculate percent agreement and Cohen's kappa, then say how you would read the result.
Show answer
Percent agreement is 16/20 = 80%. Chance agreement is p_e = 0.5 × 0.5 + 0.5 × 0.5 = 0.50. Kappa = (0.80 − 0.50) / (1 − 0.50) = 0.60. This is marginal. The auditors agree more often than chance, but not enough to trust the data. Review the items they disagreed on, tighten the definition, add examples, and repeat the study.
Exercise
An agreement study shows each appraiser agrees with their own earlier answers (high repeatability) but the three appraisers disagree with each other on the same items (low reproducibility). Name the most likely cause and one fix.
Show answer
Each person applies a stable personal interpretation, but the interpretations differ. The cause is usually an ambiguous definition or inconsistent training. A fix is to add worked examples and a clearer decision rule to the operational definition, train all appraisers together on them, and repeat the study.