Cohen's Kappa (κ) is a robust inter-rater reliability metric used to evaluate the consistency of categorical classifications made by two human annotators. Unlike simple percent agreement, which inflates accuracy by ignoring random coincidence, the kappa coefficient mathematically subtracts the expected chance agreement (Pe) from the observed agreement (Po) and normalizes the result. The formula κ = (Po - Pe) / (1 - Pe) yields a value between -1 and 1, where 1 indicates perfect agreement, 0 signifies agreement equivalent to random chance, and negative values suggest systematic disagreement worse than chance.
Glossary
Cohen's Kappa

What is Cohen's Kappa?
Cohen's Kappa is a statistical measure that quantifies the level of agreement between two annotators classifying items into mutually exclusive categories, while explicitly correcting for the probability of agreement occurring purely by chance.
In medication reconciliation automation, Cohen's Kappa serves as the gold standard for validating the quality of human-labeled training data. Two clinical pharmacists independently classify discrepancies as unintentional omissions, dose errors, or duplicate therapies; a high kappa score (typically >0.80) confirms that the annotation guidelines are unambiguous and that the resulting ground truth is reliable for training supervised models. This metric is preferred over raw agreement percentages because it penalizes annotators who achieve high consensus simply due to the high prevalence of a single class, ensuring that the AI system learns from genuinely consistent clinical judgment rather than statistical artifacts.
Cohen's Kappa Interpretation Scale
Standard thresholds for interpreting inter-annotator agreement strength when validating medication discrepancy labeling
| Kappa Value | Agreement Level | Clinical Reliability | Action Required |
|---|---|---|---|
≤ 0.00 | Poor | Reject annotation guidelines; retrain annotators | |
0.01 – 0.20 | Slight | Revise schema; recalibrate on edge cases | |
0.21 – 0.40 | Fair | Refine discrepancy definitions; add examples | |
0.41 – 0.60 | Moderate | Acceptable for exploratory analysis only | |
0.61 – 0.80 | Substantial | Production-ready with periodic audits | |
0.81 – 0.99 | Almost Perfect | Gold-standard inter-rater reliability | |
1.00 | Perfect | Suspect collusion or trivial task; investigate |
Key Features of Cohen's Kappa
Cohen's Kappa (κ) is a robust statistical measure that quantifies the level of agreement between two annotators classifying items into mutually exclusive categories, while explicitly correcting for the probability of agreement occurring by random chance alone.
Chance-Corrected Agreement
Unlike simple percent agreement, Cohen's Kappa subtracts the probability of random agreement (Pe) from the observed agreement (Po). The formula is κ = (Po - Pe) / (1 - Pe). This ensures that high scores reflect genuine consensus rather than statistical coincidence, making it essential for validating the reliability of medication discrepancy annotations where class imbalance is common.
Binary vs. Weighted Kappa
Standard Cohen's Kappa treats all disagreements equally, making it ideal for binary classification (e.g., 'discrepancy' vs. 'no discrepancy'). For ordinal categories—such as severity ratings of an Adverse Drug Event (ADE) —Weighted Kappa assigns partial credit based on the degree of disagreement, penalizing a 'mild' vs. 'severe' mismatch more heavily than a 'mild' vs. 'moderate' one.
Interpreting Kappa Values
The coefficient ranges from -1 to +1. A value of 0 indicates agreement equivalent to chance, while 1 represents perfect agreement. In clinical NLP pipelines for Medication Reconciliation, a kappa of 0.81–1.00 is considered 'almost perfect,' 0.61–0.80 'substantial,' and values below 0.60 often trigger a review of annotation guidelines or retraining of human labelers.
Prevalence and Bias Effects
Cohen's Kappa is sensitive to prevalence (the frequency of a category) and bias (the tendency of raters to favor one category). A high percent agreement can paradoxically yield a low kappa if the data is highly imbalanced. For medication safety tasks, this paradox highlights why F1 Score and kappa should be evaluated together to avoid misleading reliability metrics.
Role in Annotation Quality Assurance
In building gold-standard datasets for Medical Named Entity Recognition, Cohen's Kappa serves as the primary gatekeeper for data quality. A low kappa between two clinical pharmacists labeling Unintentional Discrepancies signals ambiguous guidelines or insufficient training. This metric directly informs the Confidence Thresholding logic used to route ambiguous cases for adjudication by a third expert.
Fleiss' Kappa for Multiple Raters
Cohen's Kappa is strictly limited to two raters. When a study design requires three or more annotators—such as a panel of clinicians validating a Polypharmacy Risk Score—the appropriate generalization is Fleiss' Kappa. This extension assesses the consistency of agreement across a fixed number of raters assigning categorical ratings, preserving the chance-correction principle.
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Explore the statistical foundations of Cohen's Kappa, the definitive metric for measuring agreement between two annotators in clinical medication reconciliation tasks, correcting for the probability of random chance.
Cohen's Kappa (κ) is a robust statistical measure that calculates the level of agreement between two raters classifying items into mutually exclusive categories, while explicitly correcting for the agreement that would occur purely by random chance. Unlike simple percent agreement, which inflates reliability scores when category distributions are imbalanced, Kappa operates by subtracting the probability of expected chance agreement (Pe) from the observed agreement (Po), then normalizing by the maximum possible agreement beyond chance. The formula is κ = (Po - Pe) / (1 - Pe). In medication reconciliation, this is critical when two clinical pharmacists independently label a medication discrepancy as an 'omission error,' 'commission error,' or 'no discrepancy.' If one category dominates the dataset, raw agreement would be misleadingly high. Kappa mathematically penalizes this skew, providing a true measure of annotation quality for training medical named entity recognition models.
Related Terms
Key concepts for understanding and applying Cohen's Kappa in the context of medication reconciliation annotation and clinical NLP evaluation.
Inter-Rater Reliability (IRR)
The degree of consensus among independent annotators applying the same classification schema. In medication reconciliation, IRR measures whether two clinical pharmacists consistently identify the same unintentional discrepancies when reviewing identical patient records. High IRR is a prerequisite for creating a trustworthy gold standard dataset for training supervised models. Without it, the 'ground truth' is unreliable noise.
Weighted Kappa
A variant of Cohen's Kappa used when disagreements are not all equally severe. It assigns different penalty weights based on the ordinal distance between ratings. For medication reconciliation, a linear weighted Kappa might be used if annotators are rating the severity of a discrepancy on a scale (e.g., 0=No Risk, 1=Minor, 2=Serious, 3=Life-Threatening), where a disagreement between 'Minor' and 'Serious' is penalized more heavily than between 'Minor' and 'No Risk'.
Fleiss' Kappa
A statistical measure that generalizes Cohen's Kappa to assess agreement among three or more raters. This is essential for large-scale annotation projects where a panel of clinical pharmacists is used to establish consensus on medication discrepancies. Fleiss' Kappa calculates the degree of agreement over and above chance for a fixed number of raters assigning categorical ratings to a fixed number of items.
Prevalence-Adjusted Bias-Adjusted Kappa (PABAK)
A recalibration of Cohen's Kappa that corrects for distortions caused by high prevalence (when one category is overwhelmingly common) and observer bias (when raters have differing tendencies to classify items into specific categories). In medication safety, if true discrepancies are rare (low prevalence), standard Kappa can paradoxically be low despite high raw agreement. PABAK adjusts for this paradox.
Gold Standard Corpus Creation
The process of establishing a definitive, annotated dataset against which model performance is measured. It relies on rigorous IRR measurement:
- Adjudication: A third, senior annotator resolves disagreements between initial raters.
- Consensus Review: All annotators discuss discrepancies to refine annotation guidelines.
- Iterative Refinement: The annotation schema is updated until a target Kappa (e.g., >0.80) is achieved before large-scale labeling begins.
Kappa Paradoxes and Limitations
Critical statistical caveats that must be understood to avoid misinterpreting Kappa values:
- High Agreement, Low Kappa: Occurs when the trait prevalence is extremely skewed, causing the chance agreement correction to dominate.
- Marginal Homogeneity: Kappa assumes raters are equally likely to use each category; violations distort the metric.
- Dependence on Number of Categories: Kappa values are not directly comparable across classification tasks with different numbers of categories.

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us