Krippendorff's alpha


Krippendorff's alpha coefficient, named after academic Klaus Krippendorff, is a statistical measure of the agreement achieved when coding a set of units of analysis in terms of the values of a variable. Since the 1970s, alpha is used in content analysis where textual units are categorized by trained readers, in counseling and survey research where experts code open-ended interview data into analyzable terms, in psychological testing where alternative tests of the same phenomena need to be compared, or in observational studies where unstructured happenings are recorded for subsequent analysis.
Krippendorff's alpha generalizes several known statistics, often called measures of inter-coder agreement, inter-rater reliability, reliability of coding given sets of units but it also distinguishes itself from statistics that are called reliability coefficients but are unsuitable to the particulars of coding data generated for subsequent analysis.
Krippendorff's alpha is applicable to any number of coders, each assigning one value to one unit of analysis, to incomplete data, to any number of values available for coding a variable, to binary, nominal, ordinal, interval, ratio, polar, and circular metrics, and it adjusts itself to small sample sizes of the reliability data. The virtue of a single coefficient with these variations is that computed reliabilities are comparable across any numbers of coders, values, different metrics, and unequal sample sizes.
Software for calculating Krippendorff's alpha is available.

Reliability data

Reliability data are generated in a situation in which m ≥ 2 jointly instructed but independently working coders assign any one of a set of values 1,...,V to a common set of N units of analysis. In their canonical form, reliability data are tabulated in an m-by-N matrix containing N values vij that coder ci has assigned to unit uj. Define mj as the number of values assigned to unit j across all coders c. When data are incomplete, mj may be less than m. Reliability data require that values be pairable, i.e., mj ≥ 2. The total number of pairable values is nmN.
To help clarify, here is what the canonical form looks like, in the abstract:
u1u2u3...uN
c1v11v12v13...v1N
c2v21v22v23...v2N
c3v31v32v33...v3N
..................
cmvm1vm2vm3...vmN

General form of alpha

We denote by the set of all possible responses an observer can give. The responses of all observers for an example is called a unit. We denote a multiset with these units as the items,.
Alpha is given by:
where is the disagreement observed and is the disagreement expected by chance.
where is a metric function, is the total number of pairable elements, is the number of items in a unit, number of pairs in unit, and is the permutation function. This can be seen to be the average observed distance from the diagonal.
where is the number of ways the pair can be made. This can be seen to be the average distance from the diagonal of all possible pairs of responses that could be derived from the multiset of all observations.
The above is equivalent to the usual form of once it has been simplified algebraically.
One interpretation of Krippendorff's alpha is:
In this general form, disagreements Do and De may be conceptually transparent but are computationally inefficient. They can be simplified algebraically, especially when expressed in terms of the visually more instructive coincidence matrix representation of the reliability data.

Coincidence matrices

A coincidence matrix cross tabulates the n pairable values from the canonical form of the reliability data into a v-by-v square matrix, where v is the number of values available in a variable. Unlike contingency matrices, familiar in association and correlation statistics, which tabulate pairs of values, a coincidence matrix tabulates all pairable values. A coincidence matrix omits references to coders and is symmetrical around its diagonal, which contains all perfect matches, viu = vi'u for two coders i and i' , across all units u. The matrix of observed coincidences contains frequencies:
omitting unpaired values, where I = 1 if is true, and 0 otherwise.
Because a coincidence matrix tabulates all pairable values and its contents sum to the total n, when four or more coders are involved, ock may be fractions.
The matrix of expected coincidences contains frequencies:
which sum to the same nc, nk, and n as does ock. In terms of these coincidences, Krippendorff's alpha becomes:

Difference functions

Difference functions between values v and v' reflect the metric properties of their variable.
In general:
In particular:

Significance

Inasmuch as mathematical statements of the statistical distribution of alpha are always only approximations, it is preferable to obtain alpha’s distribution by bootstrapping. Alpha's distribution gives rise to two indices:
The minimum acceptable alpha coefficient should be chosen according to the importance of the conclusions to be drawn from imperfect data. When the costs of mistaken conclusions are high, the minimum alpha needs to be set high as well. In the absence of knowledge of the risks of drawing false conclusions from unreliable data, social scientists commonly rely on data with reliabilities α ≥ 0.800, consider data with 0.800 > α ≥ 0.667 only to draw tentative conclusions, and discard data whose agreement measures α < 0.667.

A computational example

Let the canonical form of reliability data be a 3-coder-by-15 unit matrix with 45 cells:
Units u:123456789101112131415
Coder A*****34121133*3
Coder B1*213343*******
Coder C**21344*21133*4

Suppose “*” indicates a default category like “cannot code,” “no answer,” or “lacking an observation.” Then, * provides no information about the reliability of data in the four values that matter. Note that unit 2 and 14 contains no information and unit 1 contains only one value, which is not pairable within that unit. Thus, these reliability data consist not of mN = 45 but of n = 26 pairable values, not in N = 15 but in 12 multiply coded units.
The coincidence matrix for these data would be constructed as follows:
Values v or v′:1234nv
Value 1617
Value 244
Value 317210
Value 4235
Frequency nv'7410526

In terms of the entries in this coincidence matrix, Krippendorff's alpha may be calculated from:
For convenience, because products with and, only the entries in one of the off-diagonal triangles of the coincidence matrix are listed in the following:
Considering that all when for nominal data the above expression yields:
With for interval data the above expression yields:
Here, because disagreements happens to occur largely among neighboring values, visualized by occurring closer to the diagonal of the coincidence matrix, a condition that takes into account but does not. When the observed frequencies ovv are on the average proportional to the expected frequencies ev ≠ v',.
Comparing alpha coefficients across different metrics can provide clues to how coders conceptualize the metric of a variable.

Alpha's embrace of other statistics

Krippendorff's alpha brings several known statistics under a common umbrella, each of them has its own limitations but no additional virtues.
Krippendorff's alpha is more general than any of these special purpose coefficients. It adjusts to varying sample sizes and affords comparisons across a wide variety of reliability data, mostly ignored by the familiar measures.

Coefficients incompatible with alpha and the reliability of coding

Semantically, reliability is the ability to rely on something, here on coded data for subsequent analysis. When a sufficiently large number of coders agree perfectly on what they have read or observed, relying on their descriptions is a safe bet. Judgments of this kind hinge on the number of coders duplicating the process and how representative the coded units are of the population of interest. Problems of interpretation arise when agreement is less than perfect, especially when reliability is absent.
Naming a statistic as one of agreement, reproducibility, or reliability does not make it a valid index of whether one can rely on coded data in subsequent decisions. Its mathematical structure must fit the process of coding units into a system of analyzable terms.