Check · Test yourselfPractice tests

Academy › Topic library › Going Deeper: Attribute Agreement Analysis

Q-BOT ACADEMY · FREE VIDEO LESSON · 11 MIN

Going Deeper: Attribute Agreement Analysis

When the gauge is a person saying pass or fail, there's no reading to average, so gauge R and R doesn't work. But the same two questions still matter. Does each inspector agree with themselves, every time? And do they agree with the right answer? A good call by luck and a good call by skill look exactly the same, until you count!

11:03 · Q-Bot · narrated, with worked example and a check-yourself question

In short

Build a set of about half good and half defective parts, borderline ones included, with an agreed standard. Run it blind, randomized, at least twice per person. Score within, versus standard, between and all versus standard, each with a confidence interval. Count misses and false alarms. And use kappa: observed minus chance, over one minus chance. Agreement is good. Agreement beyond chance is better!

Check yourself

A weld inspector and the standard agree on ninety percent of calls. From the totals, the chance agreement is fifty percent. What's Cohen's kappa? A, point four. B, point eight. C, point nine. Or D, one point eight.

Show the answer

The answer is B, point eight. Kappa is point nine minus point five, which is point four, over one minus point five, which is point five. Point four over point five is point eight: good agreement. A forgot to divide. C is just the percent agreement. And D divided by the wrong thing. That's attribute agreement analysis. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the two inspectors get along so well? Their agreement was way beyond chance!

Where this topic is taught

This lesson is part of every free Academy course whose Body of Knowledge covers it. Each course puts it in context, with exercises and checks.

Full lesson transcript

The narration from the video, by chapter. Brindlewood Outdoor Furniture and its people are a fictional company used in every Q-Bot Academy lesson.

Intro

Brindlewood, the end of the coating line. Hannah drops a returned Harbor chair on the bench. A bare spot under the seat rail, and the customer found it in a week. Rosa turns to Priya. Every frame gets a look before it's packed. So how did this one get through? Priya shrugs. A look isn't a measurement. Unless we test the people doing the looking!

Hey there, I'm Q-Bot. Welcome to the Q-Bot Academy. Today we're going deeper: attribute agreement analysis! We'll design a study, score it four ways, work out miss rates and false alarms, calculate Cohen's kappa by hand, and see why plain percent agreement can fool you. If measurement system analysis is new to you, start with the measurement system analysis and gauge R and R video.

Why do the math?

Why do the math? When the gauge is a person saying pass or fail, there's no reading to average, so gauge R and R doesn't work. But the same two questions still matter. Does each inspector agree with themselves, every time? And do they agree with the right answer? A good call by luck and a good call by skill look exactly the same, until you count!

Worked example 1: the coating appearance check

Worked example one: the coating appearance check. Priya and Marcus build the study set first. Thirty frames: eighteen good and twelve with a defect, a run, a thin spot or a bare spot. And they pick plenty of borderline ones on purpose, because easy parts don't test anybody. Then they settle the right answer for every frame, the standard, under a bright inspection lamp, with a board of photos showing just acceptable and just reject.

Three inspectors take part: Jada and Tomas from coating, and Bea, a second-shift packer who also checks the finish. Each one calls every frame twice, a few days apart, in random order, with the labels hidden. That's sixty calls each. Bad: inspectors know it's frame seven again, or check each other's sheets. Good: blind, randomized, and repeated, just like a real shift.

Four agreement scores

Now score it four ways. One: within appraiser. Did each person agree with themselves on both trials? Jada matched herself on twenty nine of thirty frames, Tomas and Bea on twenty eight. Two: each appraiser versus the standard. Were both calls right? Jada twenty eight of thirty, Tomas twenty eight, and Bea only twenty five, eighty three percent. Three: between appraisers. Did all six calls agree? Only twenty two frames. Four: all appraisers versus the standard. Also twenty two, seventy three percent.

Thirty frames isn't many, so every score gets a confidence interval. Software uses the exact binomial method. Bea's twenty five of thirty comes with an interval from about sixty five to ninety four percent. That ninety five percent describes the method: intervals built this way capture the true rate ninety five times in a hundred. A wide interval says, don't over-read one study. With sixty frames at the same rate, it would narrow to about seventy one to ninety two.

Misses, false alarms and effectiveness

Next, the two errors, counted call by call. A miss is a defective frame called good. The miss rate is misses over the calls made on defective frames: twelve frames times two trials, twenty four. A false alarm is a good frame called bad, over thirty six calls on good frames. Effectiveness is all correct calls over all sixty. Bea missed seven of twenty four, a miss rate of twenty nine percent! She had one false alarm in thirty six, and her effectiveness is eighty seven percent.

How do those compare? A common set of guidelines: effectiveness, ninety percent or more is acceptable, eighty to ninety marginal. Miss rate, two percent or less is acceptable, up to five marginal. False alarms, five percent or less acceptable, up to ten marginal. Jada: ninety five percent effective, four percent misses, six percent false alarms, marginal on both. Tomas: ninety seven percent, no misses, six percent false alarms. Bea's twenty nine percent miss rate is the big one, and misses are the ones that reach customers!

Cohen's kappa

Now, the kappa statistic. Percent agreement has a problem: two people flipping coins would still agree about half the time. Cohen's kappa takes chance out. Kappa equals the observed agreement minus the chance agreement, divided by one minus the chance agreement. One means perfect agreement. Zero means no better than chance. A common guideline: point seven five or more is good, under point four is poor, and many plants want point nine.

Let's work Bea against the standard, all sixty calls. Observed agreement: fifty two right out of sixty, point eight six seven. For chance, use the column totals. The standard says good sixty percent of the time; Bea says good forty two times out of sixty, seventy percent. The standard says defect forty percent; Bea, thirty percent. Chance agreement is point six times point seven plus point four times point three: point five four. Kappa is point eight six seven minus point five four, over point four six: about point seven one.

Do the same for the others. Jada's kappa is about point nine oh, and Tomas's point nine three: both good. Bea's point seven one is under point seven five. With three or more people, Fleiss kappa does the same job across everyone at once. Here it's about point seven five, right on the line. Software also gives a p-value for each kappa. A small p-value is only evidence that kappa isn't zero. It doesn't say kappa is good enough, so read the size, not just the p!

Reading the result: cause and fix

So what's going on with Bea? Look at which frames she missed: nineteen, twenty and twenty one, both times, all thin spots on the underside of the seat rail. Bea checks frames at the packing table, under the overhead lights, with no inspection lamp. It's the process, not the person! The fix: a lamp at the packing table, the same photo board at every check station, and a rule to tip each frame to see the underside.

Then Priya re-runs Bea's study with the same thirty frames, re-coded and shuffled. Twenty nine of thirty against the standard. No misses at all, and one false alarm in thirty six, under three percent. Effectiveness ninety eight percent, and kappa about point nine seven. Excellent! Jada and Tomas get the photo board too, because both of their false alarms were borderline frames.

Worked example 2: when percent agreement fools you

Worked example two: why percent agreement can fool you. Marcus sketches two hundred frames from a normal week. Only ten have a defect, five percent. Picture a tired inspector who stamps every frame good. He agrees with the standard on one hundred ninety of two hundred: ninety five percent! Sounds great. But his kappa is exactly zero. He never found a single defect.

Now a careful inspector on the same two hundred. She catches eight of the ten defects, and flags six good frames by mistake. Agreement: one hundred ninety two of two hundred, ninety six percent. Chance agreement is high when nearly everything is good: point nine five times point nine three, plus point oh five times point oh seven, about point eight eight seven. Kappa is point nine six minus point eight eight seven, over point one one three: about point six five. Real skill, but room to improve.

The lesson is twofold. First, when defects are rare, percent agreement looks good no matter what, so always check kappa and the miss rate. Second, that's why the study set should be about half defects and borderline parts, not a random grab from the line. A random grab of thirty frames might hold one or two defects, and it couldn't tell a good inspector from a rubber stamp!

Special cases and software

A few special cases. For ratings with an order, like a finish score from one to five, use Kendall's coefficient of concordance for agreement within and between people, and Kendall's correlation against a known standard, because being off by one isn't as bad as being off by four. A go, no go gauge is attribute too, so the same study works. In a spreadsheet: COUNT IFS for the counts, simple division for kappa, and BETA dot INV for the exact intervals.

Common mistakes

Now the common mistakes. One: a study set of easy parts. Two: inspectors who know they're being tested, or can see the frame number. Three: reporting only percent agreement when defects are rare. Four: no agreed standard, so nobody knows what right looks like. And five: blaming the inspector, when the light, the samples or the instructions are the real cause!

Recap

Let's recap. Build a set of about half good and half defective parts, borderline ones included, with an agreed standard. Run it blind, randomized, at least twice per person. Score within, versus standard, between and all versus standard, each with a confidence interval. Count misses and false alarms. And use kappa: observed minus chance, over one minus chance. Agreement is good. Agreement beyond chance is better!

Check yourself

Now, check yourself. A weld inspector and the standard agree on ninety percent of calls. From the totals, the chance agreement is fifty percent. What's Cohen's kappa? A, point four. B, point eight. C, point nine. Or D, one point eight. Pause the video if you want to think about it.

The answer is B, point eight. Kappa is point nine minus point five, which is point four, over one minus point five, which is point five. Point four over point five is point eight: good agreement. A forgot to divide. C is just the percent agreement. And D divided by the wrong thing.

That's attribute agreement analysis. Questions? Ask Q-Bot right here in the Academy. And one for the road: why did the two inspectors get along so well? Their agreement was way beyond chance!

Independent study material; not affiliated with or endorsed by ASQ. Body of Knowledge codes identify where the topic appears in each certification's published outline.