ArticleslgStudy

mathematics

Cohen's kappa

Cohen's kappa is a mathematics topic covered in the lgStudy science library. This page brings together a partial reference excerpt, illustrations, worked examples, real-world applications and a short study plan, so you can understand Cohen's kappa rather than just read about it. In short: Cohen's kappa coefficient (symbol κ, lowercase Greek kappa) is a statistic used to measure inter-rater reliability for qualitative or categorical data. It is generally thought to be a more robust measure than simple percent agreement calculation, as κ incorporates the possibility of the agreement occurring by chance.

Cohen's kappa — main illustration
Cohen's kappa — illustration

Key takeaways

  • Cohen's kappa belongs to mathematics; place it in that map before memorising details.
  • Learn the definition first, then one example that makes the definition concrete.
  • Connect Cohen's kappa to a quantity you can measure, compute or draw — that is where exam questions come from.
  • Reproduce the core statement of Cohen's kappa from memory before moving on to harder problems.

Reference excerpt

Cohen's kappa coefficient (symbol κ, lowercase Greek kappa) is a statistic used to measure inter-rater reliability for qualitative or categorical data. It is generally thought to be a more robust measure than simple percent agreement calculation, as κ incorporates the possibility of the agreement occurring by chance. There is controversy surrounding Cohen's kappa due to the difficulty in interpreting indices of agreement. Some researchers have suggested that it is conceptually simpler to evaluate disagreement between items. Cohen's kappa coefficient ranges from -1 (complete disagreement) to 1 (complete agreement).

History The first mention of a kappa-like statistic is attributed to Galton in 1892. The seminal paper introducing kappa as a new technique was published by Jacob Cohen in the journal Educational and Psychological Measurement in 1960.

Definition Cohen's kappa measures the agreement between two raters who each classify N items into C mutually exclusive categories. The definition of κ is

κ≡po−pe1−pe=1−1−po1−pe, where po is the relative observed agreement among raters, and pe is the hypothetical probability of chance agreement, using the observed data to calculate the probabilities of each observer randomly selecting each category. If the raters are in complete agreement then κ=1. If there is no agreement among the raters other than what would be expected by chance (as given by pe), κ=0. It is possible for the statistic to be negative, which can occur by chance if there is no relationship between the ratings of the two raters, or it may reflect a real tendency of the raters to give differing ratings. Let O be the C × C confusion matrix, that is, let Oi,j denote the number of items that the first rater placed in the ith category and the second rater placed in the jth category. Then:

po=1N∑k=1COk,k and

pe=1N2∑k=1COk,⋅ O⋅,k where

Ok,⋅=∑j=1COk,j and O⋅,k=∑i=1COi,k are the number of items put into category k by the first and second rater, respectively. The value of pe is derived from the following reasoning:

pe=∑kpk,k^ =ind. ∑kpk,⋅^ p⋅,k^=∑kOk,⋅NO⋅,kN=1N2∑kOk,⋅ O⋅,k Where pk,k^ is the estimated probability that both rater 1 and rater 2 will classify the same item as k, while pk,⋅^ is the estimated probability that rater 1 will classify an item as k (and rater 2 as anything), and similarly p⋅,k^ is the estimated probability that rater 2 will classify an item as k. The relation pk,k^=pk,⋅^⋅p⋅,k^ is based on the assumption that the rating of the two raters are independent. The term pk,⋅^ is estimated by using the empirically observed distribution: the number Ok,⋅ of items classified as k by rater 1, divided by the total number N of items to classify: pk,⋅^=Ok,⋅N (and similarly for rater 2).

Binary classification confusion matrix In the traditional 2 × 2 confusion matrix employed in machine learning and statistics to evaluate binary classifications, the Cohen's Kappa formula can be written as:

κ=2×(TP×TN−FN×FP)(TP+FP)×(FP+TN)+(TP+FN)×(FN+TN) where TP are the true positives, FP are the false positives, TN are the true negatives, and FN are the false negatives. (In this case, Cohen's Kappa is equivalent to the Heidke skill score known in meteorology.) The measure was first introduced by Myrick Haskell Doolittle in 1888.

Examples

Simple example Suppose that you were analyzing data related to a group of 50 people applying for a grant. Each grant proposal was read by two readers and each reader either said "Yes" or "No" to the proposal. Suppose the disagreement count data were as follows, where A and B are readers, data on the main diagonal of the matrix (a and d) count the number of agreements and off-diagonal data (b and c) count the number of disagreements:

e.g.

The observed proportionate agreement is:

po=a+da+b+c+d=20+1550=0.7 To calculate pe (the probability of random agreement) we note that:

Reader A said "Yes" to 25 applicants and "No" to 25 applicants. Thus reader A said "Yes" 50% of the time. Reader B said "Yes" to 30 applicants and "No" to 20 applicants. Thus reader B said "Yes" 60% of the time. So the expected probability that both would say yes at random is:

pYes=a+ba+b+c+d⋅a+ca+b+c+d=0.5×0.6=0.3 Similarly:

pNo=c+da+b+c+d⋅b+da+b+c+d=0.5×0.4=0.2 Overall random agreement probability is the probability that they agreed on either Yes or No, i.e.:

pe=pYes+pNo=0.3+0.2=0.5 So now applying our formula for Cohen's Kappa we get:

κ=po−pe1−pe=0.7−0.51−0.5=0.4

Same percentages but different numbers A case sometimes considered to be a problem with Cohen's Kappa occurs when comparing the Kappa calculated for two pairs of raters with the two raters in each pair having the same percentage agreement but one pair give a similar number of ratings in each class while the other pair give a very different number of ratings in each class. (In the cases below, notice B has 70 yeses and 30 nos, in the first case, but those numbers are reversed in the second.) For instance, in the following two cases there is equal agreement between A and B (60 out of 100 in both cases) in terms of agreement in each class, so we would expect the relative values of Cohen's Kappa to reflect this. However, calculating Cohen's Kappa for each:

κ=0.60−0.541−0.54=0.1304

κ=0.60−0.461−0.46=0.2593 we find that it shows greater similarity between A and B in the second case, compared to the first. This is because while the percentage agreement is the same, the percentage agreement that would occur 'by chance' is significantly higher in the first case (0.54 compared to 0.46).

Properties

Hypothesis testing and confidence interval P-value for kappa is rarely reported, probably because even relatively low values of kappa can nonetheless be significantly different from zero but not of sufficient magnitude to satisfy investigators. Still, its standard error has been described and is computed by various computer programs. Confidence intervals for Kappa may be constructed, for the expected Kappa values if we had infinite number of items checked, using the following formula:

CI:κ±Z1−α/2SEκ Where Z1−α/2=1.960 is the standard normal percentile when α=5%, and SEκ is calculated by jackknife, bootstrap or the asymptotic formula described by Fleiss & Cohen.

Interpreting magnitude

… excerpt ends here. Continue reading the full article.

Illustrations

Cohen's kappa: Kappa example
Kappa example

Worked examples

Example 1 — a first encounter with Cohen's kappa

Start with the simplest possible case. Write down what Cohen's kappa claims or describes in one sentence, then invent the smallest concrete situation in which that sentence is true. In mathematics, the smallest case is usually a single object, a single equation or a single measurement. Check that every symbol or term in your sentence has a meaning in that case.

Example 2 — changing one variable

Take the situation from Example 1 and change exactly one quantity: double it, halve it, or set it to zero. Predict what should happen to Cohen's kappa before you calculate. Comparing your prediction with the result is the fastest way to find out whether you understand the idea or only the words.

Example 3 — an exam-style question

Typical questions about Cohen's kappa ask you to (a) state it precisely, (b) apply it to given data, and (c) explain a limitation. Practise writing all three answers in under five minutes; the third part is what separates a full-mark answer from an average one.

Applications of Cohen's kappa

In research
Cohen's kappa appears in mathematics research whenever the underlying quantities have to be modelled precisely. Papers usually cite it as a starting assumption and then explore where it breaks down.
In technology and industry
Engineering practice reuses Cohen's kappa in design rules, simulations and safety margins. Knowing the idea lets you read a specification sheet and understand why the numbers look the way they do.
In the classroom
Cohen's kappa is common in secondary-school and first-year university syllabi. It links to neighbouring topics Categorical variable interactions, Inter-rater reliability, Nonparametric statistics, so understanding it makes those chapters shorter.
In everyday life
Look for Cohen's kappa outside the textbook — in sport, cooking, traffic, electronics or the sky above you. An example you found yourself is remembered far longer than one you were given.
Ask Teacher Smith questions about this articleOpens your AI tutor with a question about “Cohen's kappa” →

How to study Cohen's kappa in 20 minutes

  1. Read the reference excerpt below once, without taking notes.
  2. Close the page and write down what Cohen's kappa means in your own words.
  3. Compare your version with the excerpt and mark what you missed.
  4. Work through the three examples above with pen and paper.
  5. Explain Cohen's kappa out loud to somebody else — or to Teacher Smith in the lgStudy chat.

Frequently asked questions

What is Cohen's kappa in simple terms?

Cohen's kappa coefficient (symbol κ, lowercase Greek kappa) is a statistic used to measure inter-rater reliability for qualitative or categorical data. It is generally thought to be a more robust measure than simple percent agreement calculation, as κ incorporates the possibility of the agreement o…

Why does Cohen's kappa matter?

Because it connects several mathematics ideas at once: it gives you a definition you can apply, a quantity you can calculate, and a way to check whether a result is plausible.

How should I study Cohen's kappa?

Read the excerpt, restate it from memory, then work through the examples and applications listed on this page. The five-step study plan above takes about twenty minutes.

What does this page cover?

It gives you a compact reference excerpt plus original lgStudy explanations, examples, applications and study material on Cohen's kappa.

Tags

  • Categorical variable interactions
  • Inter-rater reliability
  • Nonparametric statistics
  • Summary statistics for contingency tables

Keep exploring