Attribute agreement analysis
Pass/fail or graded ratings by several appraisers: agreement within, between and with the standard, Fleiss and Cohen kappa, exact intervals.
Input
Paste, open a CSV, TSV, TXT or XLSX file (up to 20 MB), or drop it on the field. Files are read in this browser only.
Sample Appraiser Response Standard 1 A Pass Pass 2 A Fail Fail 1 B Pass Pass
1 row = 1 rating
Columns: tab, ; or ,
Decimals: 12,5 or 12.5
Read as: tab-separated · whole numbers · 180 rows · header row skipped
Study: 30 samples × 3 appraisers × 2 trials · with standard
| # | Sample | Appraiser | Response | Standard | Trial |
|---|---|---|---|---|---|
| 1 | 1 | A | Pass | Pass | 1 |
| 2 | 2 | A | Pass | Pass | 1 |
| 3 | 3 | A | Fail | Fail | 1 |
| 4 | 4 | A | Pass | Pass | 1 |
| 5 | 5 | A | Fail | Fail | 1 |
| 6 | 6 | A | Fail | Fail | 1 |
| 7 | 7 | A | Pass | Pass | 1 |
| 8 | 8 | A | Pass | Pass | 1 |
| 9 | 9 | A | Fail | Pass | 1 |
| 10 | 10 | A | Fail | Fail | 1 |
+170 more rows
Every appraiser rates every sample the same number of times (trials). Without a Trial column the trials are counted in the order the rows appear.
Runs in this browser. Data is not uploaded or stored.
Results
- Within appraisers — A κ 0.93 excellent · B κ 0.79 excellent · C κ 0.51 fair to good
- Each appraiser vs standard — A κ 0.83 excellent · B κ 0.83 excellent · C κ 0.55 fair to good
- Between appraisers — κ 0.70 fair to good
- All appraisers vs standard — κ 0.74 fair to good
Kappa guideline: above 0.75 excellent, 0.40–0.75 fair to good, below 0.40 poor (Fleiss; the AIAG MSA manual quotes the same bands; both cited from memory, not checked against the books). A rule of thumb, not a requirement: your customer may set its own.
30 samples × 3 appraisers × 2 trials · with standard · categories Pass, Fail (order of first appearance) · 95% exact CI
Within appraisers
| Appraiser | # Inspected | # Matched | Percent | 95% CI |
|---|---|---|---|---|
| A | 30 | 29 | 96.67 | (82.78, 99.92) |
| B | 30 | 27 | 90.00 | (73.47, 97.89) |
| C | 30 | 23 | 76.67 | (57.72, 90.07) |
| Appraiser | Response | Kappa | SE Kappa | Z | P (vs > 0) |
|---|---|---|---|---|---|
| A | Pass | 0.9327 | 0.1826 | 5.11 | 0.0000 |
| A | Fail | 0.9327 | 0.1826 | 5.11 | 0.0000 |
| A | Overall | 0.9327 | 0.1826 | 5.11 | 0.0000 |
| B | Pass | 0.7885 | 0.1826 | 4.32 | 0.0000 |
| B | Fail | 0.7885 | 0.1826 | 4.32 | 0.0000 |
| B | Overall | 0.7885 | 0.1826 | 4.32 | 0.0000 |
| C | Pass | 0.5065 | 0.1826 | 2.77 | 0.0028 |
| C | Fail | 0.5065 | 0.1826 | 2.77 | 0.0028 |
| C | Overall | 0.5065 | 0.1826 | 2.77 | 0.0028 |
| Appraiser | Response | Kappa | SE Kappa | Z | P (vs > 0) |
|---|---|---|---|---|---|
| A | Pass | 0.9327 | 0.1822 | 5.12 | 0.0000 |
| A | Fail | 0.9327 | 0.1822 | 5.12 | 0.0000 |
| A | Overall | 0.9327 | 0.1822 | 5.12 | 0.0000 |
| B | Pass | 0.7907 | 0.1785 | 4.43 | 0.0000 |
| B | Fail | 0.7907 | 0.1785 | 4.43 | 0.0000 |
| B | Overall | 0.7907 | 0.1785 | 4.43 | 0.0000 |
| C | Pass | 0.5116 | 0.1785 | 2.87 | 0.0021 |
| C | Fail | 0.5116 | 0.1785 | 2.87 | 0.0021 |
| C | Overall | 0.5116 | 0.1785 | 2.87 | 0.0021 |
# Matched: the appraiser gave the same rating in every trial.
Each appraiser vs standard
| Appraiser | # Inspected | # Matched | Percent | 95% CI |
|---|---|---|---|---|
| A | 30 | 27 | 90.00 | (73.47, 97.89) |
| B | 30 | 26 | 86.67 | (69.28, 96.24) |
| C | 30 | 20 | 66.67 | (47.19, 82.71) |
| Appraiser | # Pass / Fail | % of standard Fail | # Fail / Pass | % of standard Pass | # Mixed | Percent |
|---|---|---|---|---|---|---|
| A | 1 | 7.69 | 1 | 5.88 | 1 | 3.33 |
| B | 1 | 7.69 | 0 | 0.00 | 3 | 10.00 |
| C | 2 | 15.38 | 1 | 5.88 | 7 | 23.33 |
| Appraiser | Response | Kappa | SE Kappa | Z | P (vs > 0) |
|---|---|---|---|---|---|
| A | Pass | 0.8311 | 0.1291 | 6.44 | 0.0000 |
| A | Fail | 0.8311 | 0.1291 | 6.44 | 0.0000 |
| A | Overall | 0.8311 | 0.1291 | 6.44 | 0.0000 |
| B | Pass | 0.8264 | 0.1291 | 6.40 | 0.0000 |
| B | Fail | 0.8264 | 0.1291 | 6.40 | 0.0000 |
| B | Overall | 0.8264 | 0.1291 | 6.40 | 0.0000 |
| C | Pass | 0.5522 | 0.1291 | 4.28 | 0.0000 |
| C | Fail | 0.5522 | 0.1291 | 4.28 | 0.0000 |
| C | Overall | 0.5522 | 0.1291 | 4.28 | 0.0000 |
# Matched: every trial of the appraiser agrees with the standard.
# Pass / Fail: rated Pass in every trial while the standard is Fail (percent of the samples with standard Fail); # Fail / Pass the other way round; # Mixed: the trials differ (percent of all samples).
Kappa vs standard: the mean of the kappas of each trial against the standard (this tool’s convention, see Method).
Between appraisers
| Appraiser | # Inspected | # Matched | Percent | 95% CI |
|---|---|---|---|---|
| All appraisers | 30 | 20 | 66.67 | (47.19, 82.71) |
| Response | Kappa | SE Kappa | Z | P (vs > 0) |
|---|---|---|---|---|
| Pass | 0.7004 | 0.0471 | 14.86 | 0.0000 |
| Fail | 0.7004 | 0.0471 | 14.86 | 0.0000 |
| Overall | 0.7004 | 0.0471 | 14.86 | 0.0000 |
# Matched: all appraisers gave the same rating in all trials.
Fleiss' kappa with every rating of every appraiser in every trial as one rater.
All appraisers vs standard
| Appraiser | # Inspected | # Matched | Percent | 95% CI |
|---|---|---|---|---|
| All appraisers | 30 | 19 | 63.33 | (43.86, 80.07) |
| Response | Kappa | SE Kappa | Z | P (vs > 0) |
|---|---|---|---|---|
| Pass | 0.7366 | 0.0745 | 9.88 | 0.0000 |
| Fail | 0.7366 | 0.0745 | 9.88 | 0.0000 |
| Overall | 0.7366 | 0.0745 | 9.88 | 0.0000 |
# Matched: every rating of every appraiser agrees with the standard.
Download offline versionSingle HTML file · v1.3 · 567 KB · works without internet
Method
- Purpose: an attribute agreement analysis checks a visual or go/no-go inspection, in which appraisers rate samples with categories (Pass / Fail, G / NG, defect types or grades 1–5) instead of measuring them. It shows whether each appraiser repeats his or her own ratings, whether the appraisers agree with each other and, when the correct rating of each sample is known, whether they agree with it. The layout and statistics follow Minitab's Attribute Agreement Analysis (Stat > Quality Tools).
- Data: long format, one rating per row, with the columns Sample, Appraiser and Response, and optionally Standard (the known correct rating of the sample; one value per sample, the same in each of its rows) and Trial. Every column is read as text, so “1” and “Pass” are both category labels; capital letters count (“pass” ≠ “Pass”, a note points it out). Every appraiser must rate every sample the same number of times; missing and repeated combinations are listed. Without a Trial column the ratings of an appraiser and sample are taken as trials 1, 2, … in the order of the rows.
- Categories: the distinct responses and standards. Their order (for the tables and the two-category disagreement columns) is numeric when every label is a number, otherwise the order of first appearance; it can be typed, labels separated by “;”. Kappa does not depend on the order.
- Assessment agreement: # Inspected = samples, # Matched = samples where, within appraisers, the appraiser gave the same rating in every trial (needs 2 or more trials); each appraiser vs standard, every trial equals the standard; between appraisers, every rating of every appraiser in every trial is the same; all appraisers vs standard, every one of them equals the standard. Percent = 100 · matched / inspected with an exact Clopper-Pearson interval: lower = Beta(α/2; x, n − x + 1), upper = Beta(1 − α/2; x + 1, n − x), 0 for x = 0 and 100% for x = n (confidence level 95% by default, as Minitab).
- Assessment disagreement (each appraiser vs standard): with two categories, “# A / B” counts the samples with standard B that the appraiser rated A in every trial, as a percent of the samples whose standard is B; “# Mixed” counts the samples whose trials differ, as a percent of all samples. With more categories: “# Other than standard” (the same rating in every trial, but not the standard) and “# Mixed”. Matched + disagreements = samples.
- Fleiss' kappa (Fleiss 1971) for n samples each rated m times, xij = ratings of sample i in category j, pj = Σ xij / (n m), qj = 1 − pj: κj = 1 − Σi xij(m − xij) / (n m (m − 1) pj qj) per category, and overall κ = Σ pj qj κj / Σ pj qj. Standard errors under H0: κ = 0 (Fleiss, Nee & Landis 1979): SE(κj) = √(2 / (n m (m − 1))) and SE(κ) = √2 / (Σ pjqj · √(n m (m − 1))) · √((Σ pjqj)² − Σ pjqj(qj − pj)). Z = κ / SE and P(vs > 0) = P(Z > z), one-sided, as Minitab reports it. A category that occurs in none or in all of the ratings compared has no kappa (shown as —).
- Which ratings are compared: within an appraiser, the m = trials ratings of each sample; between appraisers, all m = appraisers × trials ratings of each sample. Each appraiser vs standard: the Fleiss kappa of each trial with the standard (m = 2: the rating and the standard) is computed for every trial and the kappas are averaged, with SE = √(Σ SEt²) / T over the T trials (the trials taken as independent); z and p follow from these. All appraisers vs standard: the same mean over every appraiser and trial. This averaging is this tool's documented convention. Minitab's own description of these two cases could not be checked here, and the match with Minitab's output is not verified.
- Cohen's kappa is added where exactly two ratings of each sample are compared: within an appraiser with exactly 2 trials (trial 1 vs trial 2), each appraiser vs standard with 1 trial, and between appraisers when there are exactly 2 appraisers with 1 trial each. κ = (po − pe) / (1 − pe) from the two-way table of the two raters, pe = Σ rj cj; per category from the table collapsed to “j / any other”. SE under H0 (Fleiss, Cohen & Everitt 1969): Var = (pe + pe² − Σ rjcj(rj + cj)) / (N (1 − pe)²); z and the one-sided p as for Fleiss' kappa.
- Reading kappa: 1 is perfect agreement, 0 is the agreement expected by chance, below 0 is worse than chance. Guideline of Fleiss (1981): above 0.75 excellent, 0.40 to 0.75 fair to good, below 0.40 poor; the AIAG MSA manual quotes the same bands. Both sources are cited from memory and were not checked against the books here. These are rules of thumb, not requirements: use the limits of your customer or procedure. A kappa whose p-value is 0.05 or more is not shown to be above chance and is pointed out.
- Not included: Kendall's coefficient of concordance and correlation for ordinal ratings (Minitab offers them for ordered categories), the AIAG effectiveness, miss rate and false alarm rate, and weighted kappa.
- Charts: Minitab's “Assessment Agreement” graph: the percent matched of each appraiser (dot) with its confidence interval (line), within appraisers and appraiser vs standard side by side.
- The ratings are text, so the results use a decimal point unless “Decimal” is set to comma by hand (the confidence level field accepts either sign). The results CSV lists every table at full precision; a decimal comma gives “;” between columns. The templates (CSV and XLSX) hold the example in the long format with all five columns.
- Files: CSV, TSV and TXT are read as if pasted (UTF-8, UTF-16, otherwise Windows-1257). XLSX: choose the sheet and the columns or a cell range; formula cells use the value Excel last saved, dates are kept as text. Files up to 20 MB are read in this browser only and never uploaded.
- XLSX files are read with SheetJS Community Edition 0.20.3, Apache License 2.0 (license), loaded only when an Excel file is opened or created.