Skip to content

DisagrementMeasure agreement calculation wrong for 100 agreement? #35

@reckart

Description

@reckart

The KrippendorffAlphaAgreement is a disagreement measure. If there is a full agreement, then the expected and observed disagreement is calculated as 0.0 in

    @Override
    public double calculateAgreement()
    {
        double D_O = calculateObservedDisagreement();
        double D_E = calculateExpectedDisagreement();
        if (D_O == D_E) {
            return 0.0;
        }
        else {
            return 1.0 - (D_O / D_E);
        }
    }

However, a disagreement of 0 in this case does not yield an agreement of 1.0 but instead an agreement of 0.0.... seems wrong?

Suggested fix:

                double D_O = calculateObservedDisagreement();
                double D_E = calculateExpectedDisagreement();
                if (D_O == 0.0 && D_E == 0.0) {
                    return 1.0;
                }
                return 1.0 - (D_O / D_E);

Metadata

Metadata

Assignees

No one assigned

    Labels

    🐛BugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions