In many clinical studies, two observers classify the same patients, images or samples. For example, two radiologists may read the same chest radiographs, or two pathologists may grade the same biopsies. Researchers then need to know how well the two observers agree. The kappa statistic, also called Cohen’s kappa, measures this agreement after removing the agreement that is expected by chance. A common mistake is to report only the percentage of agreement, which overestimates the true agreement. This guide explains the kappa statistic step by step, using one hypothetical clinical example.
Table of Contents
Working on a study? StatisMed biostatisticians can run your analysis, calculate your sample size, and write your Results section. Get a free quote →
What Is the Kappa Statistic?
The kappa statistic is a measure of inter-rater agreement for categorical data. It compares the observed agreement between two raters with the agreement expected by chance alone. Its formula is κ = (Po − Pe) ÷ (1 − Pe), where Po is the observed agreement and Pe is the expected agreement. A value of 1 indicates perfect agreement, and a value of 0 indicates agreement equal to chance. Moreover, a negative value indicates agreement worse than chance (McHugh, 2012).
Cohen’s Kappa for Two Raters
Cohen’s kappa is the classic version. It is used when two raters classify the same subjects into the same nominal categories, such as “disease present” or “disease absent”. This is the version used in the clinical example below.
Weighted Kappa for Ordinal Categories
When the categories are ordered, such as mild, moderate and severe, some disagreements are more serious than others. Weighted kappa gives partial credit to close disagreements. Therefore, a mild versus moderate disagreement counts less than a mild versus severe disagreement.
Fleiss’ Kappa for More Than Two Raters
When three or more raters classify each subject, Fleiss’ kappa is used. It extends the same idea of chance-corrected agreement to multiple raters (Tang et al., 2015).
Importance of the Kappa Statistic in Medical Research
Correction for Chance Agreement
Two raters will agree on some cases by chance, even if they guess. This is especially true when one category is common. The kappa statistic removes this chance agreement. Therefore, it gives a more honest estimate of agreement than the simple percentage.
Evidence of Reliable Measurement
A study result is only as good as its measurements. If two clinicians cannot agree on a diagnosis, the outcome variable contains error. In addition, reviewers and journals often ask for an inter-rater agreement analysis before they accept a diagnostic or observational study.
A Single, Comparable Number
The kappa statistic summarizes agreement in one number between −1 and 1. Moreover, it can be reported with a 95% confidence interval and compared across studies, similar to the way Cronbach’s alpha summarizes the internal consistency of a questionnaire.
Applications of the Kappa Statistic in Clinical Studies
Diagnostic Imaging and Pathology
Radiology and pathology studies often use the kappa statistic to measure agreement between readers. Examples include the detection of pneumonia on radiographs, fracture classification, and tumor grading. These studies often accompany ROC curve analysis of diagnostic accuracy.
Clinical Trials and Outcome Assessment
In clinical trials, outcomes such as “response” or “relapse” are sometimes judged by assessors. The kappa statistic shows whether these judgments are reproducible. Our guide to statistics for clinical trials explains where such reliability checks fit into trial analysis.
Chart Review and Data Abstraction
In retrospective studies, two data collectors may extract the same variables from medical records. The kappa statistic measures how consistently they code categorical variables. Furthermore, a low kappa can reveal unclear definitions in the data collection form.
Assumptions of the Kappa Statistic
Before calculating the kappa statistic, check that the data meet the following assumptions:
- The outcome is categorical (nominal for Cohen’s kappa, ordinal for weighted kappa).
- The same subjects are rated by each rater, and each subject receives one rating from each rater.
- The raters work independently and do not see each other’s ratings.
- Both raters use the same set of categories, and the categories are mutually exclusive.
- The subjects are independent of each other.
If the outcome is continuous, such as blood pressure or tumor size, the kappa statistic is not appropriate. In this case, the intraclass correlation coefficient or a Bland-Altman analysis should be used instead.
How to Calculate the Kappa Statistic: A Clinical Example
Consider a hypothetical study in which two radiologists independently read the same 200 chest radiographs. Each radiologist classified each radiograph as “pneumonia” or “no pneumonia”. The question is how well the two radiologists agree beyond chance. All the numbers below were calculated with Python.
Step 1: State the Hypotheses
The null hypothesis (H0) states that the agreement between the two radiologists is equal to chance agreement (κ = 0). The alternative hypothesis (H1) states that the agreement is different from chance (κ ≠ 0). The significance level is set at 0.05.
Step 2: Build the Agreement Table
In an agreement table, the rows show the ratings of Radiologist 1 and the columns show the ratings of Radiologist 2. Each radiograph appears in one cell only. Therefore, the table total is 200 radiographs.
| Radiologist 1 | Radiologist 2: Pneumonia | Radiologist 2: No pneumonia | Total |
|---|---|---|---|
| Pneumonia | 60 | 15 | 75 (37.5%) |
| No pneumonia | 10 | 115 | 125 (62.5%) |
| Total | 70 (35.0%) | 130 (65.0%) | 200 |
Step 3: Calculate the Observed Agreement
The two radiologists agreed on 60 radiographs with pneumonia and on 115 radiographs without pneumonia. The observed agreement is Po = (60 + 115) ÷ 200 = 0.875, or 87.5%. However, part of this agreement would occur by chance.
Step 4: Calculate the Expected Agreement by Chance
The expected count in each agreement cell equals the row total multiplied by the column total, divided by the grand total. This is the same calculation used in the chi-square test. Table 2 shows the expected counts.
| Agreement cell | Observed count | Expected count | Calculation |
|---|---|---|---|
| Both: Pneumonia | 60 | 26.25 | 75 × 70 ÷ 200 |
| Both: No pneumonia | 115 | 81.25 | 125 × 130 ÷ 200 |
| Total agreement | 175 (87.5%) | 107.5 (53.75%) |
Therefore, the expected agreement is Pe = 107.5 ÷ 200 = 0.5375. In other words, the radiologists would agree on more than half of the radiographs by chance alone.
Step 5: Calculate the Kappa Statistic
The kappa statistic is κ = (0.875 − 0.5375) ÷ (1 − 0.5375) = 0.3375 ÷ 0.4625 = 0.73. Notably, this value is clearly lower than the observed agreement of 87.5%, because the chance agreement was removed.
Step 6: Calculate the Confidence Interval and the P-Value
The asymptotic standard error of kappa is 0.050. Therefore, the 95% confidence interval is 0.73 ± 1.96 × 0.050, which gives 0.63 to 0.83. For the test against κ = 0, the standard error under the null hypothesis is 0.071. The z value is 0.73 ÷ 0.071 = 10.34, and the p-value is less than 0.001 (κ = 0.73, 95% CI, 0.63 to 0.83, p < 0.001).
Step 7: Interpret the Kappa Statistic
Table 3 shows two common scales for Cohen’s kappa interpretation. Both are described by McHugh (2012). On the commonly used scale, a kappa of 0.73 indicates substantial agreement. However, on McHugh’s stricter scale for health research, the same value indicates moderate agreement. Therefore, always state which scale you used.
| Commonly used scale | Level | McHugh’s scale | Level |
|---|---|---|---|
| ≤ 0 | No agreement | 0 to 0.20 | None |
| 0.01 to 0.20 | None to slight | 0.21 to 0.39 | Minimal |
| 0.21 to 0.40 | Fair | 0.40 to 0.59 | Weak |
| 0.41 to 0.60 | Moderate | 0.60 to 0.79 | Moderate |
| 0.61 to 0.80 | Substantial | 0.80 to 0.90 | Strong |
| 0.81 to 1.00 | Almost perfect | Above 0.90 | Almost perfect |
How to Report Kappa Statistic Results in a Manuscript
In the Methods section, state the measure, the scale for interpretation, and the software. For example: “Inter-rater agreement was assessed with Cohen’s kappa statistic and interpreted according to the scale described by McHugh (2012).” In the Results section, report the significant findings only, as in the model paragraph below.
Inter-Rater Agreement in the Diagnosis of Pneumonia
The two radiologists agreed on 175 of the 200 chest radiographs (87.5%). Moreover, the agreement beyond chance was substantial and statistically significant (κ = 0.73, 95% CI, 0.63 to 0.83, p < 0.001) (Table 1).
Notice that the paragraph gives the numbers without any explanation of why the radiologists disagreed. The interpretation and the comparison with previous studies belong in the Discussion section.
Common Mistakes When Using the Kappa Statistic
Reporting Only the Percentage of Agreement
In the example, the percentage of agreement was 87.5%, but the kappa statistic was 0.73. The percentage ignores chance agreement and therefore overestimates reliability. Report both values, with the kappa statistic as the main measure.
Using the Chi-Square Test to Measure Agreement
The chi-square test of independence on Table 1 gives χ² = 106.81, df = 1, p < 0.001. However, this test measures association, not agreement. Two raters can be strongly associated and still disagree systematically. Similarly, the McNemar test answers a different question: whether one rater says “yes” more often than the other.
Ignoring the Effect of Prevalence
Kappa depends on the prevalence of the condition. When one category is very common, kappa can be low even when the observed agreement is high. This is known as the kappa paradox (Tang et al., 2015). Therefore, report the agreement table, the positive and negative agreement (82.8% and 90.2% in this example), or the prevalence-adjusted bias-adjusted kappa (PABAK = 0.75 in this example).
Testing Only Against Zero
A significant p-value only shows that agreement is better than chance. It does not show that agreement is good. Therefore, the 95% confidence interval and the level of agreement are more useful than the p-value. Like any effect size, kappa should be reported with its interval.
Using Too Few Subjects
A kappa statistic from 20 or 30 subjects has a very wide confidence interval. Plan an adequate sample size for the agreement study, based on the expected kappa and the desired precision.
Running the Kappa Statistic in SPSS and R
In SPSS, Cohen’s kappa is available through Analyze → Descriptive Statistics → Crosstabs. Move the ratings of Radiologist 1 to Rows and the ratings of Radiologist 2 to Columns, then click Statistics and select “Kappa”. SPSS reports the kappa value, its asymptotic standard error, and the approximate significance. In R, the analysis is performed with one line of code using the psych package: psych::cohen.kappa(matrix(c(60, 10, 15, 115), nrow = 2)). For weighted kappa, the same function also reports the weighted estimate.
Conclusion
The kappa statistic is the standard measure of agreement between two raters for categorical data. It corrects the observed agreement for chance, and it is easy to calculate from an agreement table. Moreover, a complete report includes the agreement table, the observed agreement, the kappa value with its 95% confidence interval, and the scale used for interpretation. If you are not sure which statistical test to choose, or you need help with an agreement study and its Results section, the StatisMed team of biostatisticians provides statistical analysis services for medical studies. You can request a free quote today.
Frequently Asked Questions
1. What is a good kappa statistic value?
On the commonly used scale, values from 0.61 to 0.80 indicate substantial agreement, and values above 0.80 indicate almost perfect agreement. However, McHugh (2012) recommended that health studies should aim for a kappa of at least 0.60, and preferably 0.80 or higher.
2. What is the difference between Cohen’s kappa and percent agreement?
Percent agreement is the proportion of subjects on whom the raters agree. Cohen’s kappa removes the part of this agreement that is expected by chance. Therefore, kappa is always lower than or equal to the percent agreement when the agreement is better than chance.
3. Can I use the kappa statistic for continuous data?
No. The kappa statistic is designed for categorical ratings. For continuous measurements, use the intraclass correlation coefficient or a Bland-Altman analysis. For ordinal categories, use weighted kappa.
References
McHugh, M. L. (2012). Interrater reliability: The kappa statistic. Biochemia Medica, 22(3), 276–282. https://doi.org/10.11613/BM.2012.031
Tang, W., Hu, J., Zhang, H., Wu, P., & He, H. (2015). Kappa coefficient: A popular measure of rater agreement. Shanghai Archives of Psychiatry, 27(1), 62–67. https://doi.org/10.11919/j.issn.1002-0829.215010




