Class RandolphKappaAgreement
java.lang.Object
org.dkpro.statistics.agreement.AgreementMeasure
org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
org.dkpro.statistics.agreement.coding.RandolphKappaAgreement
- All Implemented Interfaces:
ICodingAgreementMeasure,IAgreementMeasure,IChanceCorrectedAgreement
public class RandolphKappaAgreement extends CodingAgreementMeasure implements IChanceCorrectedAgreement
Generalization of Bennett et al.'s (1954) S-measure for calculating a chance-corrected
inter-rater agreement for multiple raters, which is known as Randolph's (2005) kappa. The measure
assumes a uniform probability distribution for all raters and categories. It yields thus
identical results as Bennett's S.
References:
References:
- Bennett, E.M.; Alpert, R. & Goldstein, A.C.: Communications through limited response questioning. Public Opinion Quarterly 18(3):303-308, 1954.
- Randolph, J.J.: Free-marginal multirater kappa (multirater kappa_free): An alternative to Fleiss' fixed-marginal multirater kappa. In: Proceedings of the 5th Joensuu University Learning and Instruction Symposium, 2005.
- Warrens, M.J.: Inequalities between multi-rater kappas. Advances in Data Analysis and Classification 4(4):271-286, 2010.
- Author:
- Christian M. Meyer
-
Field Summary
-
Constructor Summary
Constructors Constructor Description RandolphKappaAgreement(ICodingAnnotationStudy study)Initializes the instance for the given annotation study. -
Method Summary
Modifier and Type Method Description doublecalculateExpectedAgreement()Calculates the expected inter-rater agreement that assumes a uniform distribution over all raters and annotations.Methods inherited from class org.dkpro.statistics.agreement.coding.CodingAgreementMeasure
calculateObservedAgreement, doCalculateItemAgreement, ensureTwoRaters, warnIfMissingValuesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dkpro.statistics.agreement.IAgreementMeasure
calculateAgreementMethods inherited from interface org.dkpro.statistics.agreement.IChanceCorrectedAgreement
calculateObservedAgreement
-
Constructor Details
-
RandolphKappaAgreement
Initializes the instance for the given annotation study. The study may never be null.
-
-
Method Details
-
calculateExpectedAgreement
public double calculateExpectedAgreement()Calculates the expected inter-rater agreement that assumes a uniform distribution over all raters and annotations.- Specified by:
calculateExpectedAgreementin interfaceIChanceCorrectedAgreement- Overrides:
calculateExpectedAgreementin classAgreementMeasure- Throws:
java.lang.NullPointerException- if the annotation study is null.java.lang.ArithmeticException- if there are no annotation categories.
-