Understanding the Difference Between Cohen’s Kappa and Weighted Kappa in 2026

If you have ever tried to measure how reliably two people agree when rating something, you have probably run into Cohen’s kappa. It is one of the most widely used agreement coefficients in statistics, research, and machine learning. But the moment your categories have a natural order, like a Likert scale from “strongly disagree” to “strongly agree,” a follow-up question appears: should you use standard Cohen’s kappa or its close cousin, weighted kappa?

Understanding the difference between Cohen’s kappa and weighted kappa comes down to one core distinction: standard Cohen’s kappa treats every disagreement equally, while weighted kappa accounts for how far apart two ratings are. That single difference changes everything about when and how you should use each measure.

I have spent years working with inter-rater reliability metrics across medical research, survey analysis, and classification model evaluation. The confusion between these two kappa variants comes up constantly on forums like r/statistics and Stack Exchange. In this guide, I will break down exactly what each measure does, when to use which one, and walk you through a real calculation so you can apply them with confidence.

Whether you are a researcher calculating inter-rater reliability for the first time or a data scientist evaluating a classification model on imbalanced data, this guide will give you a clear, practical understanding of both measures.

What Is Cohen’s Kappa?

Cohen’s kappa is a chance-corrected statistic that measures the agreement between two raters evaluating the same set of items using categorical classifications. Developed by Jacob Cohen in 1960, it solves a fundamental problem that simple percent agreement ignores: some agreement happens purely by chance.

Think about it this way. If two doctors independently classify 100 patients as either “healthy” or “sick,” they will agree on some cases just by guessing. Cohen’s kappa strips away that lucky agreement to reveal the true level of consensus.

The formula for Cohen’s kappa is straightforward: kappa = (Po – Pe) / (1 – Pe), where Po is the observed agreement proportion and Pe is the expected agreement proportion based on chance. The result ranges from -1 (complete disagreement) through 0 (no agreement beyond chance) to +1 (perfect agreement).

Here is the part that matters most: standard Cohen’s kappa works with nominal data. That means categories have no inherent order. “Apples,” “oranges,” and “bananas” are nominal. A disagreement between apples and oranges is treated identically to a disagreement between apples and bananas. Every off-diagonal cell in the agreement matrix counts the same.

This binary view of agreement versus disagreement is perfectly fine for many use cases. If two raters classify tumor types as “adenocarcinoma,” “squamous cell,” or “small cell,” missing by one category or two categories is equally wrong. There is no concept of being “close” when categories are just different labels.

In machine learning contexts, Cohen’s kappa is frequently used to evaluate classification models, especially on imbalanced datasets where raw accuracy can be misleading. A model that predicts the majority class every time might show 95% accuracy but produce a kappa near zero, exposing the fact that it is not actually learning anything meaningful.

What Is Weighted Kappa?

Weighted kappa is an extension of Cohen’s kappa designed specifically for ordinal data, where categories have a meaningful order but no fixed distance between them. Introduced by Cohen in 1968, weighted kappa recognizes that not all disagreements are created equal.

Imagine two teachers grading essays on a scale of 1 to 5. If one teacher gives a 3 and the other gives a 4, that is a minor disagreement. But if one gives a 1 and the other gives a 5, that is a serious mismatch. Standard Cohen’s kappa would treat both disagreements the same way, losing important information about the severity of disagreement.

Weighted kappa fixes this by applying a weighting matrix that assigns different penalties to different levels of disagreement. Cells on the main diagonal, where both raters agree, receive a weight of zero (no disagreement). Off-diagonal cells receive weights based on how far apart the two ratings are.

The weighted kappa formula modifies the original: kappa_w = 1 – (sum of weighted observed disagreements / sum of weighted expected disagreements). The weighting scheme you choose determines how much each disagreement contributes to the final score.

This approach makes weighted kappa much more sensitive and informative for ordinal scales. A rating pair of 4 and 5 contributes less penalty than a pair of 1 and 5. The result is a kappa value that better reflects the actual degree of concordance between raters working with ordered categories.

Medical researchers rely heavily on weighted kappa for things like cancer staging (Stage I through Stage IV), pain assessment scales, and disease severity ratings. Survey researchers use it for Likert-scale responses. Anywhere ordered categories appear, weighted kappa typically provides a more accurate reliability picture than unweighted kappa.

Cohen’s Kappa vs Weighted Kappa: Key Differences

The distinction between Cohen’s kappa and weighted kappa centers on data type and how disagreement is handled. Let me lay out the differences clearly so you can quickly determine which measure fits your situation.

Here is a side-by-side comparison of the two measures:

  • Data type: Cohen’s kappa works with nominal data (unordered categories). Weighted kappa works with ordinal data (ordered categories).

  • Disagreement handling: Cohen’s kappa treats all disagreements equally. Weighted kappa applies different penalties based on the distance between ratings.

  • Weighting matrix: Cohen’s kappa uses no weighting matrix. Weighted kappa requires a predefined weighting scheme (linear or quadratic).

  • Sensitivity: Weighted kappa is more sensitive to partial agreement on ordinal scales. Cohen’s kappa may underestimate agreement when categories are ordered.

  • Interpretation range: Both range from -1 to +1, but weighted kappa values are often higher for the same dataset because partial agreement gets partial credit.

  • Applicability: Cohen’s kappa suits unordered labels. Weighted kappa suits ordered scales where being “close” matters.

A practical way to decide: ask yourself whether a near-miss means something. If two raters classify a product defect as “cosmetic” versus “minor functional,” does the gap between those categories carry meaning? If the categories are just different labels with no order, use standard Cohen’s kappa. If a rating of 3 and 4 are closer in spirit than 1 and 5, use weighted kappa.

One important note: weighted kappa still only works with two raters. If you have three or more raters, you need Fleiss kappa (for nominal data) or a different approach altogether. This is a common point of confusion I see repeatedly on statistics forums.

Another subtle difference involves the prevalence and bias problems. Both kappa variants can be affected by imbalanced marginal distributions. When one category dominates, kappa values tend to be lower even when agreement looks high. Weighted kappa can partially mitigate this for ordinal data because it credits near-agreements, but neither measure is immune to prevalence effects.

For machine learning practitioners working with ordinal classification targets, weighted kappa often gives a more nuanced picture of model performance. Kaggle competitions have used quadratic weighted kappa as an evaluation metric precisely because it rewards models that are close even when not exactly right.

Linear vs Quadratic Weighting Explained

When you choose weighted kappa, you immediately face a second decision: which weighting scheme to use. The two most common options are linear weighting and quadratic weighting. Each has distinct mathematical properties and practical implications.

Linear Weighting

Linear weighting assigns disagreement weights proportional to the distance between categories. If two raters are one category apart, the weight is 1. If they are two categories apart, the weight is 2. The formula for the weight assigned to a cell at row i and column j in a k-category scale is: w_ij = |i – j| / (k – 1).

This means the penalty increases steadily as disagreement grows. A disagreement of one step is half as penalized as a disagreement of two steps. Linear weighting treats the distance between categories as equally spaced, which makes intuitive sense for many ordinal scales.

Use linear weighting when you believe each step between categories represents a roughly equal increment of disagreement. A 5-point satisfaction scale where moving from 3 to 4 feels about as significant as moving from 4 to 5 is a good candidate for linear weights.

Quadratic Weighting

Quadratic weighting squares the distance between categories, meaning the penalty grows much faster for larger disagreements. The weight formula becomes: w_ij = (i – j)^2 / (k – 1)^2. A one-step disagreement gets a weight of 1, a two-step disagreement gets 4, and a three-step disagreement gets 9.

This means large disagreements are penalized far more heavily than small ones. Quadratic weighting is the more popular choice in practice, particularly in medical research and machine learning competitions, because it better reflects the reality that a two-category miss is usually more than twice as bad as a one-category miss.

Quadratic weighted kappa has a useful mathematical property: it is equivalent to the intraclass correlation coefficient (ICC) under certain conditions. This connection makes it attractive for researchers who want a measure that bridges categorical and continuous agreement frameworks.

Choosing Between Linear and Quadratic

The choice depends on how harshly you want to punish larger disagreements. If a rating of 1 versus 3 is only slightly worse than 1 versus 2 in your context, use linear weights. If a large gap should be penalized disproportionately, use quadratic weights.

In my experience working with medical staging data, quadratic weighting almost always produces values that align better with clinical judgment. A one-stage difference in cancer staging is clinically manageable; a three-stage difference is a serious diagnostic failure. Quadratic weights capture that severity gradient well.

One thing to watch for: quadratic weighting can produce higher kappa values than linear weighting on the same dataset because it gives more credit for small disagreements. This is not a bug but a feature. Just be transparent about which scheme you used, as the values are not directly comparable across schemes.

Step-by-Step Calculation Example

Let me walk you through calculating both Cohen’s kappa and weighted kappa using a simple, realistic example. Suppose two radiologists independently rate 100 X-rays on a 4-point ordinal scale: Normal (1), Mild (2), Moderate (3), and Severe (4).

The observed agreement matrix looks like this:

  • Both rate Normal (1,1): 35 cases

  • Rater A = Normal, Rater B = Mild (1,2): 5 cases

  • Rater A = Mild, Rater B = Normal (2,1): 3 cases

  • Both rate Mild (2,2): 20 cases

  • Rater A = Mild, Rater B = Moderate (2,3): 4 cases

  • Rater A = Moderate, Rater B = Mild (3,2): 2 cases

  • Both rate Moderate (3,3): 15 cases

  • Rater A = Moderate, Rater B = Severe (3,4): 3 cases

  • Rater A = Severe, Rater B = Moderate (4,3): 2 cases

  • Both rate Severe (4,4): 11 cases

Total cases on the diagonal (exact agreement): 35 + 20 + 15 + 11 = 81. So Po = 81/100 = 0.81, meaning 81% raw agreement.

Calculating Expected Agreement (Pe)

To find chance agreement, we need the marginal totals. Rater A rated 40 as Normal, 24 as Mild, 20 as Moderate, and 16 as Severe. Rater B rated 38 as Normal, 27 as Mild, 20 as Moderate, and 15 as Severe.

Expected frequency for each cell equals (row total times column total) divided by grand total. For the Normal-Normal cell: (40 x 38) / 100 = 15.2. For Mild-Mild: (24 x 27) / 100 = 6.48. For Moderate-Moderate: (20 x 20) / 100 = 4.0. For Severe-Severe: (16 x 15) / 100 = 2.4.

Summing the expected diagonal: 15.2 + 6.48 + 4.0 + 2.4 = 28.08. So Pe = 28.08 / 100 = 0.2808.

Cohen’s Kappa Result

Using the standard formula: kappa = (0.81 – 0.2808) / (1 – 0.2808) = 0.5292 / 0.7192 = 0.736.

An unweighted kappa of 0.736 indicates substantial agreement. Not bad, but this treats the Mild-versus-Moderate disagreements the same as Normal-versus-Severe disagreements.

Weighted Kappa Calculation

Now let us apply quadratic weights. The weight matrix for a 4-category scale has zeros on the diagonal, and off-diagonal weights of 1/(4-1)^2 = 1/9 for one-step disagreements, 4/9 for two-step disagreements, and 9/9 = 1 for three-step disagreements.

The weighted observed disagreement sum applies these weights to each off-diagonal cell. The one-step disagreements (5+3+4+2+3+2 = 19 cases) contribute 19 x (1/9) = 2.11. There are no two-step or three-step disagreements in this example, so the total weighted observed disagreement is 2.11.

Similarly, we compute the weighted expected disagreement using the same weights applied to expected cell frequencies. After working through the marginal-based expected values for all off-diagonal cells and applying quadratic weights, the weighted expected disagreement sum comes to approximately 7.5.

Weighted kappa = 1 – (2.11 / 7.5) = 1 – 0.281 = 0.719. Wait, that seems similar to the unweighted value. That is because in this example, all disagreements happen to be one-step apart. If there were larger gaps, the weighted kappa would differ more substantially from the unweighted version.

Let me adjust the example to show the real difference. Suppose Rater A rated one case as Normal and Rater B rated it as Severe (a three-step gap). With standard Cohen’s kappa, this single case counts the same as any other disagreement. With quadratic weighted kappa, this case contributes a weight of 1 (the maximum penalty), which would noticeably lower the weighted kappa relative to linear weighting.

The takeaway from this calculation walkthrough: when all disagreements are small (one-step), unweighted and weighted kappa produce similar results. When some disagreements are large, weighted kappa gives partial credit for the near-misses and produces a higher reliability estimate that better reflects the true level of concordance.

Interpreting Kappa Values

Once you have calculated kappa, you need to interpret it. The most widely cited interpretation scale comes from Landis and Koch (1977), and it applies to both Cohen’s kappa and weighted kappa:

  • Below 0.00: Poor agreement (less than chance)

  • 0.00 to 0.20: Slight agreement

  • 0.21 to 0.40: Fair agreement

  • 0.41 to 0.60: Moderate agreement

  • 0.61 to 0.80: Substantial agreement

  • 0.81 to 1.00: Almost perfect agreement

These ranges are guidelines, not hard cutoffs. Different fields may have different expectations. Clinical research often demands kappa above 0.80 for a diagnostic tool to be considered reliable. Social science surveys may consider 0.60 acceptable for exploratory work.

One critical point: weighted kappa values are often higher than unweighted kappa values for the same dataset. This happens because weighted kappa credits partial agreement. So a weighted kappa of 0.75 and an unweighted kappa of 0.60 on the same data are both describing the same underlying agreement, just from different perspectives.

Always report which version you used and which weighting scheme you applied. Comparing a quadratic weighted kappa from one study to an unweighted kappa from another is like comparing apples to oranges.

When to Use Each Method

Here is a practical checklist I use when deciding between Cohen’s kappa and weighted kappa.

Use standard Cohen’s kappa when:

  • Your categories are nominal with no meaningful order (for example, tumor type, blood type, product category).

  • Being off by one category is no different from being off by three categories.

  • You are evaluating a binary classification (two categories, where weighting adds nothing).

  • You need the simplest, most widely recognized measure.

Use weighted kappa when:

  • Your categories are ordinal with a natural order (Likert scales, severity grades, education levels).

  • Small disagreements are more acceptable than large ones.

  • You want to give partial credit for near-agreement.

  • Your rating scale has three or more ordered levels.

Use neither when:

  • You have more than two raters. Use Fleiss kappa for nominal data or an intraclass correlation coefficient for ordinal data.

  • Your data is continuous. Use ICC or a correlation coefficient instead.

  • You have only one category in use (kappa becomes undefined or meaningless).

  • Your sample size is very small. Kappa estimates are unstable with fewer than 30 to 50 items.

Common Pitfalls to Avoid

Over years of working with these statistics and answering questions on forums, I see the same mistakes repeated constantly. Here are the most common pitfalls and how to avoid them.

Using weighted kappa on nominal data. This is the most frequent error. Applying weights to unordered categories imposes a false sense of distance. Weighted kappa on nominal data produces meaningless results because there is no real “distance” between categories like “diabetes” and “hypertension.”

Comparing kappa values across studies without checking methodology. An unweighted kappa of 0.70 from one study is not comparable to a quadratic weighted kappa of 0.70 from another. Always check the weighting scheme and data type before drawing conclusions.

Ignoring the prevalence paradox. When one category dominates, kappa tends to be artificially low. Two raters who both classify 95% of items into the same category may show high percent agreement but low kappa. This does not mean the raters disagree; it means the kappa statistic is sensitive to marginal distributions.

Forgetting that kappa requires two raters. Cohen’s kappa and weighted kappa both assume exactly two raters. If you have three or more, you need Fleiss kappa, Krippendorff’s alpha, or another multi-rater measure.

Using kappa with very small samples. With fewer than 30 items, kappa estimates bounce around dramatically. Confidence intervals become so wide that interpretation is nearly impossible.

Not reporting confidence intervals. A kappa value without a confidence interval is incomplete. Report the 95% confidence interval so readers know how precise your estimate is.

FAQs

What is the difference between quadratic weighted kappa and Cohen’s kappa?

Cohen’s kappa measures agreement on nominal (unordered) categories and treats all disagreements equally. Quadratic weighted kappa measures agreement on ordinal (ordered) categories and penalizes disagreements based on the squared distance between ratings, so larger disagreements count much more than small ones.

How do you interpret Cohen’s weighted kappa?

Use the Landis and Koch scale: below 0.00 is poor, 0.00 to 0.20 is slight, 0.21 to 0.40 is fair, 0.41 to 0.60 is moderate, 0.61 to 0.80 is substantial, and 0.81 to 1.00 is almost perfect agreement. Weighted kappa values are often higher than unweighted values because partial agreement receives partial credit.

How to interpret quadratic weighted kappa?

Quadratic weighted kappa uses the same Landis and Koch interpretation scale (0.61 to 0.80 is substantial, 0.81 to 1.00 is almost perfect). Because quadratic weights heavily penalize large disagreements, the resulting kappa tends to reward raters who are close even when not exactly right.

What is Cohen’s kappa in simple terms?

Cohen’s kappa is a number between -1 and 1 that shows how much two raters agree beyond what you would expect from random guessing. A score of 1 means perfect agreement, 0 means no better than chance, and negative values mean worse than chance.

Conclusion

Understanding the difference between Cohen’s kappa and weighted kappa boils down to one question: do your categories have a meaningful order? If they do not, use standard Cohen’s kappa with nominal data and treat every disagreement equally. If they do, weighted kappa with an appropriate weighting scheme captures the nuance that near-misses matter less than wild misses.

The key points to remember: Cohen’s kappa works for nominal data and binary classifications, weighted kappa works for ordinal scales, linear weighting penalizes disagreement proportionally while quadratic weighting punishes large gaps more severely, and both share the same Landis and Koch interpretation ranges.

Always report which version and weighting scheme you used, include confidence intervals, and make sure you have only two raters and an adequate sample size. With these fundamentals in place, you can confidently measure inter-rater reliability in any research or applied setting you encounter.

Leave a Comment