Define the joint table first
For two categories, rows represent rater A and columns rater B. Cell a means both choose category 1; b means A 1/B 2; c means A 2/B 1; d means both choose category 2. Cells count the same uniquely matched cases; N=a+b+c+d. Diagonal a+d counts matching ratings. Labels such as positive and negative are possible categories but do not automatically make either rater a true reference standard.[1][2]
In general Pe=Σj pA,j pB,j over the same complete category set. The product uses independent draws from the two margins as a reference. It does not assert that actual ratings on the same case are independent; their additional agreement is what interests us. Do not substitute margins from another sample. Missing ratings require a declared handling rule and the same case basis for observed and expected agreement.[1][2]
What the ratio corrects
The numerator is distance above the chosen reference; the denominator is the remaining maximum distance up toPo=1.[1][2]
Po=Pe gives κ=0, whilePo=1 withPe<1 gives κ=1. IfPo<Pe, kappa is negative. It is therefore not a percentage restricted to 0 to 1. Its attainable lower bound depends on the margins; arbitrary margins do not permit every value down to −1. The summary calculator assumes already coherent Po/Pe values. The table mode calculates margins itself and is preferable for the explicitly supported 2×2 setting.[1][2]
AtPe=1 both margins use only the same single category. Po is then 1 as well, giving 0/0. Complete observed agreement remains reportable, but kappa is undefined for that degenerate table. Silently substituting zero or one would conceal an extra convention. Universal quality grades based only on a kappa threshold are likewise unjustified: purpose, frequencies, uncertainty and consequences of disagreement remain relevant.[1][2]
Two complete table calculations
80 percent raw agreement with an explicit table
- Given
- Two raters assess 100 cases:a=40,b=10,c=10,d=40. Both use the same two nominal categories.
- Find
- FindPo,Peand κ and check the margins.
First define raw agreement, marginal reference and kappa.
Both raters use each category in half their cases.
Normalize distance above the marginal reference.
Result: 80% raw agreement gives κ=0.60 here. The two numbers measure different aspects of the same table.
Check: The inverse Po=κ(1−Pe)+Pe returns 0.60×0.50+0.50=0.80. Twenty disagreements accompany 80 matching cases.
High raw agreement with very uneven frequencies
- Given
- A new exercise table hasa=90,b=5,c=5,d=0 andN=100. Each rater chooses category 1 in 95% of cases.
- Find
- Compare 90% raw agreement with its matching marginal reference.
Use the same definitions with the margins of this new table.
Calculate both proportions before normalizing kappa.
Retain the negative sign.
Result: Raw agreement is high but slightly below its high product-of-marginals reference. This establishes nothing about the truth of the categories.
Check: Another tablea=45,b=5,c=5,d=45 has the same raw agreement 0.90 butPe=0.50 and κ=0.80. Margins must therefore remain visible when comparing results.
Recall the method later with the formula’s flashcards.
10 flashcards · English materials
Already have an account? Sign in for flashcardsAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Agreement is not diagnostic accuracy
Two raters can agree while both are wrong. Sensitivity and specificity require an explicitly appropriate reference standard and answer a different question. Pearson correlation of numerical values is not a nominal agreement statistic either. Continuous repeat measurements may call for a suitably chosen ICC; ordered categories may justify documented weighted kappa. More than two raters need an explicitly appropriate multi-rater method. These variants are not silently mixed here.[1][2]
A useful report includes the table or margins,Po,Pe,kappa variant, sample size and missing-rating handling. Confidence intervals require an appropriate sampling model; repeated cases, families or clusters are not automatically independent observations. The two divisions alone provide neither uncertainty bounds nor a universally valid quality grade.[1][2]
Five exercises on tables and interpretation
Calculate · Foundation
A 2×2 rater table hasa=26,b=4,c=6,d=64. CalculatePo,Peand κ.
Show hint
Row totals are 30 and 70; column totals 32 and 68.
Learning goal: Use both margins on the same case basis.
Rearrange · Application
An already checked table has κ=0.60 and Pe=0.50. Find corresponding raw agreementPo.
Show hint
Multiply by 1−Pe first.
Learning goal: Recover observed agreement from a coherent summary.
Error analysis · Application
At Po=0.85 and Pe=0.50 someone claims κ=0.35. What is missing?
Show hint
The numerator alone has not been normalized by the available distance.
Learning goal: Locate and correct missing normalization.
Interpret · Application
Witha=20,b=30,c=30,d=20 kappa is negative. Does this mean negative 40% raw agreement?
Show hint
Calculate raw fraction and reference separately.
Learning goal: Distinguish a negative coefficient from nonnegative raw agreement.
Transfer · Challenge
Both raters choose category 1 for all 100 cases. Which statistic is determined:Po,κ or both?
Show hint
CheckPeand the denominator before division.
Learning goal: Report a degenerate marginal case correctly.
Check your understanding with the formula’s reference test.
7 test questions · English materials
Already have an account? Sign in for the testAvailable from Essential. A ready-made formula set, no AI credits required. Article exercises are not all included.
Sources for this explanation
Quanta · Updated November 1, 2026
- Jacob Cohen (1986), author retrospective on A coefficient of agreement for nominal scales: marginal-reference interpretation
- scikit-learn official documentation, cohen_kappa_score: marginal reference, weighting and undefined cases
Editorial responsibility: Quanta Study editorial team
Review scope
This explanation, 2 worked examples and 5 exercises are available in German and English. Structure, source references and mathematical notation undergo automated checks. Calculations, model assumptions and both language versions receive a separate AI review.
An independent, named human subject review has not yet been documented. Our exercise numbers are worked examples, rather than measurements published by the cited sources.
Editorial responsibility, sources and methodsChange history
- Added a joint 2×2 table, product-of-marginals reference, negative and degenerate cases, two complete examples and five solved exercises.
Cite this reference page
Quanta. Cohen's Kappa for Categorical Agreement. Updated November 1, 2026. https://quanta-study.de/en/formula-sheet/cohens-kappa-interrater
When citing a specific scientific statement, also cite the specialist source linked to that statement.