VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

Why Mathematics? | Cohen’s Kappa, Marginal Agreement and Paired Classifications

Three learners review open books together at a classroom table, with stacks of textbooks, stationery and a whiteboard in the bright room.

Two teachers can agree on most of their classifications and still leave an important question unanswered: how much of that agreement comes from the way they use the categories? Cohen’s kappa makes that question explicit. It compares observed agreement with a reference agreement calculated from the two teachers’ separate category proportions.

The adjustment is useful only when its meaning stays visible. Kappa does not discover whether either teacher is correct, and it does not remove every influence of an uneven category distribution. Its value depends on the classification task, the sampled cases and the particular chance model in the denominator. Learning to read those dependencies is a practical reason to study mathematics.

This guide builds the calculation from a synthetic two-by-two table. It then changes the margins, examines disagreement, and shows how a parent or student can ask a better question about a reported reliability score. The examples are enrichment in statistical reasoning, rather than claims about any particular school, assessment or examination syllabus.

Full chapter index

Chapters 1–4 · Understand the question
  1. Begin with the classification question
  2. What observed agreement counts
  3. Why category proportions enter the reference
  4. The kappa formula and its denominator
Chapters 5–9 · Reproduce the example
  1. Read the worked table before calculating
  2. Calculate observed and reference agreement
  3. Use an independent arithmetic check
  4. Change the margins while keeping raw agreement
  5. Inspect the two directions of disagreement
Chapters 10–17 · Check assumptions
  1. Agreement needs a defensible pairing
  2. Independence concerns the sampling design
  3. A coefficient is not a validity study
  4. Ordered categories require another decision
  5. More categories change the bookkeeping
  6. Missing labels change the analysed cases
  7. Uncertainty deserves its own calculation
  8. Avoid universal adjective bands
Chapters 18–19 · Explore applications
  1. Use disagreement to improve a rubric
  2. A spreadsheet audit students can perform
Chapters 20–23 · Study and verify
  1. Practice with answers and explanations
  2. Guidance for parents and students
  3. Frequently asked questions
  4. Sources and a useful next step

CHAPTER 1 OF 23 · Understand the question

1. Begin with the classification question

Back to contents

Imagine that two reviewers independently read the same twenty anonymised explanations. Each records either “criterion met” or “criterion not met” using a written rubric. Before comparing their decisions, we need to know what the criterion asks, which explanations were selected, and whether both reviewers saw the same evidence. A numerical agreement measure cannot repair an unclear task.

The objects being classified are the explanations. The categories are the two rubric decisions. The reviewers form a fixed pair for this illustration. Those three roles matter: confusing an object with a reviewer can produce the wrong table and the wrong uncertainty calculation. Repeating one explanation twenty times does not create twenty independent examples of judgement.

Our first question is whether these two reviewers make the same classifications on comparable work. A later question might be whether their classifications predict a trusted outcome. The first concerns agreement; the second requires additional evidence about validity. Keeping the questions separate makes the eventual coefficient easier to interpret and less likely to be used as a label for teaching quality.

Contents · Next chapter

CHAPTER 2 OF 23 · Understand the question

2. What observed agreement counts

Back to contents

Observed agreement is the proportion of objects on which the two classifications match. If both say “met” for eight explanations and both say “not met” for seven, they agree on fifteen of twenty. The observed agreement, usually written pₒ, is 15/20 = 0.75. Every explanation contributes once to the denominator.

That calculation treats the two matching categories symmetrically. It does not decide that an agreement on “met” is more educationally valuable than an agreement on “not met”. If the consequences differ, report them separately rather than silently changing what the agreement percentage means. A single summary can hide a rare but important kind of disagreement.

Raw agreement remains useful after kappa is calculated. A reader understands “fifteen of twenty matched” more directly than an isolated coefficient. The table also reveals which mismatches occurred. Reporting the raw count, total sample and category definitions gives the adjusted measure something concrete to describe. Kappa should add information to this account, not replace the account with a more impressive-looking decimal.

Contents · Previous chapter · Next chapter

CHAPTER 3 OF 23 · Understand the question

3. Why category proportions enter the reference

Back to contents

Suppose one reviewer almost always chooses “met”. Even without matching individual explanations well, a second reviewer who also almost always chooses “met” will produce many matching labels. This does not mean their judgements were literally random. It means that a reference model based on category usage can help interpret the observed matching rate.

Cohen’s reference uses the two reviewers’ own marginal proportions. For each category, multiply the proportion assigned by reviewer A by the proportion assigned by reviewer B. Add those products over all categories. The result, pₑ, is the agreement expected under independent label generation with those marginal probabilities.

“Expected” therefore belongs to a specified mathematical construction. It is not an estimate of how many reviewers guessed carelessly. Real reviewers may reason carefully, share training, or rely on the same ambiguous clue. Those processes require a study design or a substantive explanation. The reference calculation supplies a comparison point, and its usefulness rests on whether that comparison suits the question being asked.

Contents · Previous chapter · Next chapter

CHAPTER 4 OF 23 · Understand the question

4. The kappa formula and its denominator

Back to contents

Cohen’s kappa is κ = (pₒ − pₑ)/(1 − pₑ). The numerator is observed agreement above the marginal-product reference. The denominator is the distance from that reference to perfect agreement. Dividing expresses the observed excess as a fraction of the available excess under this construction.

If pₒ = 1 and pₑ is below one, kappa equals one. If pₒ = pₑ, kappa equals zero. If observed agreement is below the reference, kappa is negative. Negative values do not automatically establish deliberate opposition; they indicate a relationship to this benchmark that deserves inspection of the actual table.

The denominator explains why similar raw agreement rates can produce different kappas. When pₑ is close to one, little room remains between the reference and perfection. A small absolute disagreement can occupy a large part of that room. If pₑ equals one, the formula divides by zero and is undefined. Software output in a degenerate case should prompt a check of category use, rather than a forced interpretation of an unavailable statistic.

Contents · Previous chapter · Next chapter

CHAPTER 5 OF 23 · Reproduce the example

5. Read the worked table before calculating

Back to contents

In our synthetic table, rows are reviewer A’s decisions and columns are reviewer B’s. The cells are 8 for met–met, 2 for met–not met, 3 for not met–met, and 7 for not met–not met. The row totals are 10 and 10. The column totals are 11 and 9. The grand total is 20.

Start by saying one off-diagonal cell aloud. The cell containing two means that A said “met” while B said “not met” on two explanations. It does not mean two explanations were wrong according to an external answer key. The table records the two classifications, not an independently established truth.

This verbal check protects against an easy error: treating every row as an independent sample from a different group. Here the classifications are paired because both reviewers assessed each explanation. The cells preserve those paired outcomes. A table with the same row totals but shuffled pairing could give a different observed agreement, even though each reviewer used the categories equally often.

Reviewer AB: metB: not metTotal
Met8210
Not met3710
Total11920
Twenty paired synthetic classifications. Rows are A and columns B.

Contents · Previous chapter · Next chapter

CHAPTER 6 OF 23 · Reproduce the example

6. Calculate observed and reference agreement

Back to contents

The diagonal total is 8 + 7 = 15, so pₒ = 15/20 = 0.75. Reviewer A assigns “met” to 10/20 = 0.50 and “not met” to 0.50. Reviewer B assigns “met” to 11/20 = 0.55 and “not met” to 9/20 = 0.45. Keep each reviewer’s distribution separate at this stage.

The marginal-product reference is pₑ = 0.50 × 0.55 + 0.50 × 0.45 = 0.275 + 0.225 = 0.50. The products concern matching category labels in the reference construction. Multiplying the diagonal cell proportions instead would not implement Cohen’s model.

Now substitute into the formula: κ = (0.75 − 0.50)/(1 − 0.50) = 0.25/0.50 = 0.50. The result is exact for this table. It says that the observed agreement reaches half of the possible increase above the specified marginal-product reference. It does not say that half the reviewers are reliable, half the decisions are correct, or half the disagreements have been explained.

Contents · Previous chapter · Next chapter

CHAPTER 7 OF 23 · Reproduce the example

7. Use an independent arithmetic check

Back to contents

The same calculation can be written using counts. With total N, diagonal count D, row totals rⱼ and column totals cⱼ, kappa equals (N D − Σrⱼcⱼ)/(N² − Σrⱼcⱼ), provided the denominator is nonzero. This form is helpful for detecting rounding mistakes in a spreadsheet.

Here N D = 20 × 15 = 300. The marginal cross-product sum is 10 × 11 + 10 × 9 = 200. The numerator is 100 and the denominator is 400 − 200 = 200. Their ratio is again 0.50. Agreement between two independently organised calculations is a stronger arithmetic check than simply rereading the same line.

Avoid rounding the marginal proportions before multiplying when a table is large or uneven. Store full precision and round only the final displayed result. A short audit should retain the original cell counts, category order and total. These details allow another reader to reproduce the result without having to infer which cells a polished chart may have combined or omitted.

Contents · Previous chapter · Next chapter

CHAPTER 8 OF 23 · Reproduce the example

8. Change the margins while keeping raw agreement

Back to contents

Consider a second synthetic table with cells 15, 2, 3 and 0 in the same row-major order. There are still twenty explanations and fifteen diagonal matches. Raw agreement is still 0.75. However, A now says “met” seventeen times and B eighteen times. Their category usage is much more concentrated.

The new reference agreement is (17/20)(18/20) + (3/20)(2/20) = 0.765 + 0.015 = 0.78. Kappa becomes (0.75 − 0.78)/(1 − 0.78) = −0.03/0.22 = −3/22, approximately −0.1364. The change is large because the reference changed, not because the observed matching count changed.

This example shows why a reliability report should include its margins. It also shows why comparing kappas from different case mixes needs care. A sample dominated by one category asks a different empirical question from a balanced sample. Selecting a balanced set can be useful for training, but its coefficient does not automatically describe performance in a population where that category is rare.

Contents · Previous chapter · Next chapter

CHAPTER 9 OF 23 · Reproduce the example

9. Inspect the two directions of disagreement

Back to contents

In the first table, five explanations receive different labels. Two are A-met/B-not-met; three are A-not-met/B-met. Those directions can matter when investigating a rubric. Perhaps one reviewer applies a condition more strictly, or perhaps the sample is too small to distinguish a stable difference from ordinary variation.

Kappa combines both types into overall agreement. It does not estimate a directional tendency by itself. The off-diagonal counts should therefore remain available even when the headline coefficient looks satisfactory. A review meeting can inspect the actual explanations associated with each direction and identify which wording caused uncertainty.

For a binary paired table, a question about equal marginal proportions leads toward a different analysis, such as McNemar’s discordant-pair approach. That question is not the same as the amount of agreement above a reference. Two reviewers can have similar category totals while disagreeing on many individual objects. Choosing the question before the test prevents one statistic from being asked to answer both.

Contents · Previous chapter · Next chapter

CHAPTER 10 OF 23 · Check assumptions

10. Agreement needs a defensible pairing

Back to contents

Each row of the original data should identify one object and carry both reviewers’ labels. A unique object identifier protects the pairing when files are sorted or merged. If one spreadsheet is sorted by score and the other by date before labels are compared, a perfectly valid formula can produce a meaningless result.

The classifications should also correspond to the same version of the work. A revised explanation and its earlier draft are related but different objects for an agreement study. A reviewer who sees an answer key or the other reviewer’s comments may no longer provide an independent judgement in the practical sense intended by the investigation.

Specify exclusions before analysis where possible. If incomplete or ambiguous cases are removed after seeing the disagreements, the reported agreement can become misleadingly high. Keeping a flow count of eligible objects, objects with two labels and excluded objects makes the scope visible. Mathematics helps here by requiring the denominator to refer to an identifiable set, rather than to whichever cases make the result easiest to present.

Contents · Previous chapter · Next chapter

CHAPTER 11 OF 23 · Check assumptions

11. Independence concerns the sampling design

Back to contents

The reference formula uses independent marginal label generation, but that is distinct from the independence assumptions needed for uncertainty calculations. If the same student contributes several explanations, those objects may share vocabulary, understanding or presentation habits. Treating every explanation as an unrelated draw can understate uncertainty.

Similarly, agreement measured on one narrow exercise may not generalise to different topics, age groups or response formats. The point estimate faithfully describes the supplied table; broader inference requires a defensible account of how those cases represent the intended population. A large count alone does not supply that account.

When planning a study, decide what the independent sampling unit is. It might be a student, a response, a classroom or a randomly selected document. Resampling or modelling should respect that structure. For a small classroom learning exercise, it may be sufficient to present the observed table descriptively and avoid a population confidence claim. Choosing a modest interpretation is often more useful than attaching an unjustified interval to a carefully calculated coefficient.

Contents · Previous chapter · Next chapter

CHAPTER 12 OF 23 · Check assumptions

12. A coefficient is not a validity study

Back to contents

Two reviewers can agree perfectly while using a faulty criterion. They might both overlook a mathematical misconception because the rubric rewards a familiar phrase. Kappa would then describe consistent classification under that rubric, while the educational interpretation remained weak. Agreement and correctness need different evidence.

To investigate validity, one might compare decisions with a justified reference assessment, inspect whether the rubric captures the intended reasoning, or examine performance on new tasks. None of these automatically follows from a high kappa. Even an external reference can contain error, so the source and limitations of that reference should be stated.

For a parent reading an assessment report, the useful question is what decision the agreement supports. Is the study checking whether two trained markers apply the same categories, whether a placement result would repeat, or whether a student has mastered a concept? These are related questions with different designs. A clear report connects the coefficient to its particular role instead of letting the word “reliability” carry several meanings at once.

Contents · Previous chapter · Next chapter

CHAPTER 13 OF 23 · Check assumptions

13. Ordered categories require another decision

Back to contents

Our binary example has no intermediate category. With labels such as beginning, developing and secure, the researcher must decide whether all disagreements should count equally. Unweighted kappa counts every mismatch as a mismatch, even if two labels are adjacent on an ordered scale.

Weighted kappa introduces an agreement or disagreement weight for each pair of categories. Linear and quadratic choices make different judgements about distance. They should be chosen because the task supports them, not because one produces a larger number. The coding and the software convention for weights must also be checked: some interfaces request agreement weights, while others describe penalties.

An ordinal label does not automatically justify treating category numbers as equally spaced measurements. Moving from category one to two may have a different substantive meaning from moving from two to three. Explain the weighting rule in ordinary language before calculating. If that explanation cannot be defended, the apparent precision of a weighted coefficient may hide a decision that has not actually been made.

Contents · Previous chapter · Next chapter

CHAPTER 14 OF 23 · Check assumptions

14. More categories change the bookkeeping

Back to contents

For K nominal categories, the table becomes K by K. Observed agreement is still the diagonal total divided by N. The reference remains the sum of products of corresponding row and column proportions. The same formula therefore extends naturally beyond a binary classification.

The category order must match on both axes. If “uncertain” appears in the second column but the third row, a diagonal calculation can pair different meanings. Explicit labels and a documented category dictionary are safer than relying on numerical codes that happen to look aligned.

Rare categories create another practical concern. A respectable overall agreement can coexist with poor recognition of a category that matters to the decision. Report category frequencies and relevant disagreement patterns alongside the summary. Combining rare labels after analysis changes the task being measured and should be disclosed. A smaller table may be easier to calculate, but that convenience does not establish that the merged categories are educationally equivalent or that their different consequences can safely be ignored.

Contents · Previous chapter · Next chapter

CHAPTER 15 OF 23 · Check assumptions

15. Missing labels change the analysed cases

Back to contents

Cohen’s kappa for a pair of reviewers needs paired classifications. If one label is absent, that object cannot simply contribute a diagonal or off-diagonal count. A complete-pair calculation concerns the objects with both labels, which may be a selected subset of the original collection.

Missingness deserves a reason, not just a software option. A reviewer may skip unreadable work, uncertain cases or responses outside their expertise. Removing those objects can make the remaining task easier. Treating “missing” as an ordinary category answers a different question and is not automatically a remedy.

Keep the total number of intended objects, the number with two usable labels and the pattern of missing labels in the report. For more complex rating designs, other agreement frameworks may handle variable numbers of ratings, but their assumptions still need examination. The important habit is to connect every reported denominator to the process that created it. An unexplained deletion can alter the meaning more than a third decimal place ever will.

Contents · Previous chapter · Next chapter

CHAPTER 16 OF 23 · Check assumptions

16. Uncertainty deserves its own calculation

Back to contents

Our twenty-object example is deliberately small and is used to teach arithmetic. Its kappa is not a precise estimate of a school-wide or population-wide agreement level. Different samples could yield different margins and different diagonal counts, which would alter both parts of the formula.

Confidence intervals require a method suited to the design. Large-sample formulas and bootstrap approaches make different approximations. With very few cases, highly concentrated categories or dependent observations, a convenient default may behave poorly. An interval that crosses a wide range is useful information about limited precision.

A significance test against κ = 0 addresses the chosen reference benchmark, not whether the agreement is adequate for a consequential decision. A large study can detect a small positive kappa that is practically insufficient; a small study can be inconclusive despite a promising observed table. Define the practical standard using the consequences of disagreement, and use uncertainty to judge how well the data support that standard.

Contents · Previous chapter · Next chapter

CHAPTER 17 OF 23 · Check assumptions

17. Avoid universal adjective bands

Back to contents

Readers sometimes encounter fixed verbal bands attached to kappa values. Such labels are easy to remember, but they do not know the consequences of a particular classification error. A coefficient that is acceptable for exploratory annotation may be inadequate for a decision that changes access to support.

Describe the task and the disagreement count before using a broad adjective. In the worked example, five of twenty classifications differ. That concrete statement helps a reader consider whether the rubric needs revision and whether the sample includes difficult cases. Calling the coefficient “moderate” cannot replace that judgement.

Comparisons should also respect differences in sampling, category prevalence, reviewer training and missing-data rules. A change from 0.50 to 0.60 across two studies may reflect a changed case mix rather than improved judgement. Where improvement is the question, use a design that keeps the comparison meaningful and report what changed. The useful role of a coefficient is to organise evidence, not to make contextual evaluation unnecessary.

Contents · Previous chapter · Next chapter

CHAPTER 18 OF 23 · Explore applications

18. Use disagreement to improve a rubric

Back to contents

After an initial independent rating round, reviewers can inspect disagreements and identify the exact decision point. One may require an explicit justification while the other accepts a correct final answer. That difference suggests a rubric clarification rather than an accusation that one reviewer is careless.

Once the rubric changes, use fresh cases or clearly distinguish a training re-rating from an independent evaluation. Agreement on the same discussed examples may rise because reviewers remember the conversation. That can be useful evidence of calibration during training, but it does not alone establish generalisation to unseen work.

A practical cycle is to define the criterion, rate independently, inspect the table, discuss examples, revise the wording and evaluate again under a documented procedure. Kappa contributes one measurement within that cycle. The educational benefit comes from making the source of disagreement understandable enough to improve decisions, while retaining room for legitimate uncertainty in borderline responses.

Contents · Previous chapter · Next chapter

CHAPTER 19 OF 23 · Explore applications

19. A spreadsheet audit students can perform

Back to contents

Enter the four cell counts in a labelled two-by-two area. Use row and column sums rather than typing marginal totals separately. Calculate the diagonal proportion, each reviewer’s category proportions, the sum of matching marginal products and finally the kappa ratio. Display a warning if 1 − pₑ equals zero.

Next, calculate kappa from the count formula in a separate cell. The two results should agree within numerical precision. Check that every count is nonnegative, totals are consistent and category labels align. A spreadsheet can calculate a wrong arrangement very quickly, so these structural checks are part of the mathematics.

Finally, make a copy of the table and alter one cell deliberately. Predict how observed agreement and the margins will change before recalculating. If the result surprises you, trace both the numerator and denominator. This turns software into a tool for testing a mental model instead of a device that produces an unexplained answer at the end of an exercise.

Contents · Previous chapter · Next chapter

CHAPTER 20 OF 23 · Study and verify

20. Practice with answers and explanations

Back to contents

For the table with cells 8, 2, 3 and 7, identify the number of mismatches. The answer is five, because the two off-diagonal cells sum to 2 + 3. Then calculate the proportion of “met” labels used by B. It is 11/20, since the first column contains 8 + 3 labels.

Now replace the table with cells 9, 1, 1 and 9. Both reviewers use each category ten times, pₒ = 18/20 = 0.90 and pₑ = 0.50. Kappa is therefore 0.80. Explain why an increase in matching counts raises the coefficient here: the margins remain balanced, so the benchmark has not changed.

For a final challenge, use cells 20, 0, 0 and 0. Observed agreement is one, but pₑ is also one and kappa is undefined. Describe the data directly: both reviewers used only one category on all twenty objects. The absence of an estimable adjusted coefficient does not erase their matching labels; it reveals that this particular adjustment has no denominator in that case.

Contents · Previous chapter · Next chapter

CHAPTER 21 OF 23 · Study and verify

21. Guidance for parents and students

Back to contents

A parent does not need to memorise kappa to ask useful questions about a report. Ask what was classified, how many cases were included, whether both reviewers worked independently, and what the disagreements looked like. Ask how the sample resembles the work on which the classification will actually be used.

A student learning the method can connect it to familiar ideas: fractions, contingency tables, independent probabilities and algebraic normalisation. The advanced part is deciding what the probabilities represent. Writing “0.50 × 0.55” is easy; explaining why those two quantities are multiplied is the step that builds statistical understanding.

Use a small invented dataset before working with sensitive educational records. The learning goal is to see how pairing and margins interact, not to rank classmates or teachers. Once that mechanism is clear, a student can read a published coefficient with more confidence and more appropriate questions. This is one way mathematics supports careful judgement without pretending that every educational decision can be reduced to a single score.

Contents · Previous chapter · Next chapter

CHAPTER 22 OF 23 · Study and verify

22. Frequently asked questions

Back to contents

Can kappa be negative? Yes. It is negative when observed agreement lies below the marginal-product reference. Inspect the table and coding before giving that result a behavioural explanation. A negative value is a relationship to a model, not evidence of intent.

Is 75 per cent agreement always the same kappa? No. Our two tables both have 75 per cent raw agreement, while their kappas differ because their margins differ. Reporting the margins makes that difference explainable.

Does a high kappa prove that the labels are correct? No. Accuracy needs an appropriate reference or another justified validation design. Shared mistakes can create agreement. Can the same formula be used for more categories? Yes for two raters with aligned nominal categories; weighted variants require an explicit weighting choice. Should disagreements be deleted as outliers? A difficult classification is often precisely the evidence an agreement study needs. Exclusions require a defensible rule that is documented independently of a desire to improve the score.

Contents · Previous chapter · Next chapter

CHAPTER 23 OF 23 · Study and verify

23. Sources and a useful next step

Back to contents

The official statsmodels documentation for Cohen’s kappa describes the table-based estimator, variance calculations and weighting options. Its inter-rater source code makes the marginal-product computation inspectable. These references support the method; the twenty-object teaching tables here are synthetic and can be reproduced directly from the displayed counts.

Keep raw agreement, category frequencies and the specific study design beside any adjusted coefficient. If the task involves several raters rather than a fixed pair, the sampling and chance model need a fresh decision. Merely choosing a new function name does not resolve those design questions.

Return to the Mathematics Learning Hub to connect this example with probability, data analysis and other mathematical mechanisms. A useful next exercise is to design two different tables with the same raw agreement and explain, before calculating, why their references should differ. That explanation is the part that transfers beyond this one formula.

Contents · Previous chapter · Mathematics Learning Hub