Tools › Statistics › Hypothesis Tests › Intercoder Reliability › Method

Intercoder Reliability: Method

Open the free Intercoder Reliability (Krippendorff's Alpha)

Intercoder Reliability: Krippendorff's Alpha from a Units-by-Coders Table

The tool takes a table in which several coders (raters, annotators, judges, graders) have each given a category or a number to the same units, with blanks where a coder did not code a unit, and computes Krippendorff's alpha at the nominal, ordinal, interval or ratio level with two bootstrap intervals. It then shows where the disagreement sits: which pairs of values, which units and which coder. It reports figures; it does not say whether a coefficient is high enough for a purpose.

The idea: compare every pair of values inside a unit

Percent agreement counts how often two coders give the same value. It is easy to read and easy to be misled by: when nine units in ten belong to one category, two coders who mark every unit with that category agree 100 % of the time and have shown nothing about the tenth. Alpha sets the disagreement that was observed against the disagreement that the same values would show if they were paired at random.

One unit coded neutral by coder A, neutral by coder B and positive by coder C: the pair A and B is a match, the pairs A and C and B and C are mismatches
Figure 1: The three values of one unit form three pairs. Alpha is 1 minus the observed disagreement of all such pairs divided by the disagreement expected by chance.

A unit coded by m coders holds m(m − 1) ordered pairs of values. Each pair is entered in a square table of values by values, the coincidence matrix, with weight 1/(m − 1), so that a unit adds exactly as many entries as it has values. A unit that only one coder coded has no pair and is left out; a blank is not a disagreement.

The equations

QuantityFormulaNote
Coincidences of values c and kock = sum over units of (number of c-k pairs in the unit) ÷ (mu − 1)mu = number of values in unit u; the matrix is symmetric
Pairable valuesnc = sum of row c; n = sum of all ncvalues in units with two or more values
Observed disagreementDo = (1/n) × sum over c and k of ock δ²ckaverage difference of the pairs found within units
Expected disagreementDe = 1/(n(n − 1)) × sum over c and k of nc nk δ²ckaverage difference of all pairs the n values can form
Alphaalpha = 1 − Do / De1: every pair matches; 0: as chance pairing; below 0: more disagreement than chance
Nominal differenceδ² = 1 when c and k differ, 0 when they are the samecategories without order
Ordinal differenceδ² = (sum of ng for the ranks g from c to k − (nc + nk)/2)²depends on how often the ranks between and at c and k were used
Interval differenceδ² = (c − k)²numbers on an even scale
Ratio differenceδ² = ((c − k)/(c + k))²numbers from a true zero; 0 for two zeros
Percent agreementAo = (sum of the diagonal occ) ÷ nfor a complete table, the mean share of matching pairs of coders

Level of measurement. The level says how far apart two different values count, and it belongs to the coding scheme, not to the data. At the nominal level "1" against "2" is as much of a disagreement as "1" against "5". At the ordinal and interval levels neighbors disagree little and distant values a great deal, so the same table can give 0.38 at one level and 0.82 at another. The page prints alpha at every level the table allows so that the effect of the choice is visible.

Missing values. Nothing is filled in. A unit with fewer values simply forms fewer pairs, and the weight 1/(m − 1) keeps each value counting once. This is what lets alpha handle designs in which each unit is coded by two or three coders out of a larger team.

Where the disagreement is. Each off-diagonal cell of the coincidence matrix carries the share ock δ²ck of the observed disagreement; the page ranks the cells by that share and prints beside each the count that chance pairing would give, nc nk / (n − 1). Each unit's share is its own pairs' part of Do. For nominal and ordinal data each value is also set against all the others (the table recoded into two categories) and its own nominal alpha is computed.

Coders. Alpha is recomputed with each coder left out and for each pair of coders. Alpha is a property of the data, so these figures point at where to look: a coder whose removal raises the coefficient reads the instructions differently from the rest, for whatever reason.

The two bootstrap intervals

No simple formula gives the sampling distribution of alpha, so the page resamples, in two ways, and prints both intervals.

  • Pairs of values (Krippendorff, revision of 2016). All pairs of values observed within units are listed, each with its part of the disagreement. A sample is built by drawing, for every unit, as many pairs from the whole list as the unit holds; the drawn parts, divided by mu − 1, are taken off 1. De of the data is kept. The source's instruction for a second pick that repeats the first is read here as: draw again when the second pick in a unit is the same list entry as the first. Samples below −1 are set to −1. When the units hold unequal numbers of values, the mean of these samples need not equal alpha of the table; the results print both.
  • Whole units. A sample draws as many units as the table has, with replacement, recomputes Do from them and keeps De of the data. This is the resampling scheme described by Hughes (2021), applied here to Krippendorff's Do.

The limits are percentiles of the samples, by the rule of Krippendorff's note. Hughes (2021) reports from simulations that the pair procedure produced intervals that were too narrow (95 % intervals covering the true value 74 % of the time in his example) and that resampling units performed well; the page takes no side and shows both. Neither applies when every pair matches. The random numbers come from a seeded generator, so a result can be reproduced.

A reference value. The coefficient's author suggests 0.800 as the smallest alpha for data to be relied on (Krippendorff, 2016), and his book is usually cited as allowing tentative conclusions down to 0.667; that second figure was not read at its source for this page. These are his conventions. The page draws no line of its own: a reference value is an input, blank by default, and the page states only the share of bootstrap samples below it.

Alpha beside kappa

For a complete nominal table (no blanks) the page also prints Fleiss' kappa and the mean of Cohen's kappa over all pairs of coders. All three start from the same share of matching pairs and differ in the chance agreement they take off. Fleiss' kappa squares the category shares, which is drawing chance pairs with replacement; alpha draws them without replacement, so that 1 − alpha = (1 − kappa)(n − 1)/n and the two meet as the table grows. Cohen's kappa gives each coder their own category shares. The two kappas are computed here for complete nominal tables only; alpha covers blanks and the other levels with one formula.

What it assumes

  • The coders worked independently of one another, from the same written instructions, on the same units.
  • The units are a fair sample of the material that the coding scheme will be applied to; alpha speaks for that material only.
  • The coders are interchangeable: it does not matter who gave which value, only which values met in a unit.
  • Blanks arose for reasons unrelated to the content of the unit (a rota, a time limit), not because a unit was hard to code.
  • The level of measurement chosen is that of the coding scheme.

When it misleads

  • Almost no variation. When one category takes nearly all values, De is close to zero and a handful of units decide the coefficient; the bootstrap interval is then very wide. With no variation at all alpha is 0/0 and the page prints no number.
  • Few units. With a few dozen units the bootstrap interval is wide, and the point value alone says little.
  • Numbers used as names. Category codes 1, 2, 3 that stand for unordered categories treated at the interval level give a meaningless coefficient; so do ordered ratings treated as nominal, in the other direction.
  • Ratio level with zeros. Any value paired with zero counts as the largest possible difference, however small the value.
  • Coders who conferred. Values agreed in discussion measure the discussion, and agreement between coders does not show that the coding is valid: coders can share a mistake.
  • The pair bootstrap keeps the units and De fixed and can be narrower than the uncertainty over a fresh sample of units; compare the two intervals.

Common mistakes

  • Reporting percent agreement alone, or reading 90 % agreement as a high alpha.
  • Typing a zero or a filler category where a coder did not code a unit: a filler is counted as a value. Leave the cell blank or write NA.
  • Choosing the level of measurement after seeing which one gives the highest coefficient.
  • Spelling one category in several ways (the page ignores capitals and extra spaces, not typing errors): each spelling becomes a category. The list of categories in the results shows them.
  • Pasting the table on its side. With rows as coders choose that layout; the results state how many coders and units were read.
  • Averaging the alphas of pairs of coders and calling it the alpha of the team; the coefficient of the whole table weighs the pairs by the units they share.
  • Dropping the coder who lowers alpha and reporting the higher figure without saying so.
  • Computing one alpha over several variables at once. Alpha is for one variable; run each variable of a codebook on its own.

Limits of this page

At most 2,000 units and 30 coders; at most 40 categories at the nominal and ordinal levels and 1,000 different values at the interval and ratio levels. Large tables get fewer bootstrap samples, and the results say how many. The circular and bipolar differences of Krippendorff's paper, multi-valued coding and unitizing (alpha for segments of a continuum) are not covered.

Related tools

  • Diagnostic Accuracy and Agreement: Cohen's and weighted kappa for two raters, Fleiss' kappa from counts, Bland-Altman and the intraclass correlation. This page adds alpha for tables with blanks, any number of coders and four levels, with the diagnostics of where the disagreement is.
  • Gauge R&R: repeatability and reproducibility of a measuring system from a crossed study of parts, operators and trials. This page is for codes and ratings given by people to texts, images or cases, and needs no balanced design.
  • Survey Analysis: estimates and margins of error from coded survey answers. This page checks the coding of open answers before they are counted there.

Open the free Intercoder Reliability (Krippendorff's Alpha)