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.

