Click or drag to resize
Accord.NET (logo)

KappaTest Class

Kappa Test for agreement in contingency tables.
Inheritance Hierarchy
SystemObject
  Accord.Statistics.TestingHypothesisTestNormalDistribution
    Accord.Statistics.TestingZTest
      Accord.Statistics.TestingKappaTest

Namespace:  Accord.Statistics.Testing
Assembly:  Accord.Statistics (in Accord.Statistics.dll) Version: 3.8.0
Syntax
[SerializableAttribute]
public class KappaTest : ZTest
Request Example View Source

The KappaTest type exposes the following members.

Constructors
Properties
  NameDescription
Public propertyAnalysis
Gets the power analysis for the test, if available.
(Inherited from ZTest.)
Public propertyConfidence
Gets the 95% confidence interval for the EstimatedValue.
(Inherited from ZTest.)
Public propertyCriticalValue
Gets the critical value for the current significance level.
(Inherited from HypothesisTestTDistribution.)
Public propertyEstimatedValue
Gets the estimated value, such as the mean estimated from a sample.
(Inherited from ZTest.)
Public propertyHypothesis
Gets the alternative hypothesis under test. If the test is Significant, the null hypothesis can be rejected in favor of this alternative hypothesis.
(Inherited from ZTest.)
Public propertyHypothesizedValue
Gets the hypothesized value.
(Inherited from ZTest.)
Public propertyPValue
Gets the P-value associated with this test.
(Inherited from HypothesisTestTDistribution.)
Public propertySignificant
Gets whether the null hypothesis should be rejected.
(Inherited from HypothesisTestTDistribution.)
Public propertySize
Gets the significance level for the test. Default value is 0.05 (5%).
(Inherited from HypothesisTestTDistribution.)
Public propertyStandardError
Gets the standard error of the estimated value.
(Inherited from ZTest.)
Public propertyStatistic
Gets the test statistic.
(Inherited from HypothesisTestTDistribution.)
Public propertyStatisticDistribution
Gets the distribution associated with the test statistic.
(Inherited from HypothesisTestTDistribution.)
Public propertyTail
Gets the test type.
(Inherited from HypothesisTestTDistribution.)
Public propertyVariance
Gets the variance of the Kappa statistic.
Top
Methods
  NameDescription
Public methodStatic memberAsymptoticKappaVariance(GeneralConfusionMatrix)
Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969) when the underlying Kappa is assumed different from zero.
Public methodStatic memberAsymptoticKappaVariance(GeneralConfusionMatrix, Double, Boolean)
Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969). If nullHypothesis is set to true, the method will return the variance under the null hypothesis.
Public methodStatic memberAsymptoticKappaVariance(WeightedConfusionMatrix, Double, Boolean)
Computes the asymptotic variance for Fleiss's Kappa variance using the formulae by (Fleiss et al, 1969). If nullHypothesis is set to true, the method will return the variance under the null hypothesis.
Protected methodCompute(Double, OneSampleHypothesis)
Computes the Z test.
(Inherited from ZTest.)
Protected methodCompute(Double, Double, Double, OneSampleHypothesis)
Computes the Z test.
(Inherited from ZTest.)
Public methodStatic memberDeltaMethodKappaVariance(GeneralConfusionMatrix)
Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.
Public methodStatic memberDeltaMethodKappaVariance(GeneralConfusionMatrix, Double)
Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetConfidenceInterval
Gets a confidence interval for the EstimatedValue statistic within the given confidence level percentage.
(Inherited from ZTest.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnSizeChanged
Update event.
(Inherited from ZTest.)
Public methodPValueToStatistic(Double)
Converts a given p-value to a test statistic.
(Inherited from ZTest.)
Public methodStatisticToPValue(Double)
Converts a given test statistic to a p-value.
(Inherited from ZTest.)
Public methodToString
Converts the numeric P-Value of this test to its equivalent string representation.
(Inherited from HypothesisTestTDistribution.)
Public methodToString(String, IFormatProvider)
Converts the numeric P-Value of this test to its equivalent string representation.
(Inherited from HypothesisTestTDistribution.)
Top
Extension Methods
  NameDescription
Public Extension MethodHasMethod
Checks whether an object implements a method with the given name.
(Defined by ExtensionMethods.)
Public Extension MethodIsEqual
Compares two objects for equality, performing an elementwise comparison if the elements are vectors or matrices.
(Defined by Matrix.)
Public Extension MethodTo(Type)Overloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Public Extension MethodToTOverloaded.
Converts an object into another type, irrespective of whether the conversion can be done at compile time or not. This can be used to convert generic types to numeric types during runtime.
(Defined by ExtensionMethods.)
Top
Remarks

The Kappa test tries to assert whether the Kappa measure of a a contingency table, is significantly different from another hypothesized value.

The computations used by the test are the same found in the 1969 paper by J. L. Fleiss, J. Cohen, B. S. Everitt, in which they presented the finally corrected version of the Kappa's variance formulae. This is contrast to the computations traditionally found in the remote sensing literature. For those variance computations, see the DeltaMethodKappaVariance(GeneralConfusionMatrix) method.

This is a z-test kind of test.

References:

  • J. L. Fleiss. Statistical methods for rates and proportions. Wiley-Interscience; 3rd edition (September 5, 2003)
  • J. L. Fleiss, J. Cohen, B. S. Everitt. Large sample standard errors of kappa and weighted kappa. Psychological Bulletin, Volume: 72, Issue: 5. Washington, DC: American Psychological Association, Pages: 323-327, 1969.

See Also