C# Class Accord.Statistics.Testing.KappaTest

Inheritance: Accord.Statistics.Testing.ZTest
Show file Open project: accord-net/framework Class Usage Examples

Public Methods

Method Description
AsymptoticKappaVariance ( GeneralConfusionMatrix matrix ) : double

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.

AsymptoticKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double

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.

AsymptoticKappaVariance ( WeightedConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double

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.

DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix ) : double

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.

DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev ) : double

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.

KappaTest ( GeneralConfusionMatrix matrix, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System

Creates a new Kappa test.

KappaTest ( GeneralConfusionMatrix matrix, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Creates a new Kappa test.

KappaTest ( WeightedConfusionMatrix matrix, double hypothesizedWeightedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Creates a new Kappa test.

KappaTest ( double sampleKappa, double standardError, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System

Creates a new Kappa test.

KappaTest ( double sampleKappa, double standardError, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System

Creates a new Kappa test.

Private Methods

Method Description
square ( double x ) : double

Method Details

AsymptoticKappaVariance() public static method

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 static AsymptoticKappaVariance ( GeneralConfusionMatrix matrix ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
return double

AsymptoticKappaVariance() public static method

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 static AsymptoticKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
stdDev double Kappa's standard deviation.
nullHypothesis bool True to compute Kappa's variance when the null hypothesis /// is true (i.e. that the underlying kappa is zer). False otherwise. Default is false.
return double

AsymptoticKappaVariance() public static method

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 static AsymptoticKappaVariance ( WeightedConfusionMatrix matrix, double &stdDev, bool nullHypothesis = false ) : double
matrix Accord.Statistics.Analysis.WeightedConfusionMatrix A representing the ratings.
stdDev double Kappa's standard deviation.
nullHypothesis bool True to compute Kappa's variance when the null hypothesis /// is true (i.e. that the underlying kappa is zer). False otherwise. Default is false.
return double

DeltaMethodKappaVariance() public static method

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.
public static DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
return double

DeltaMethodKappaVariance() public static method

Compute Cohen's Kappa variance using the large sample approximation given by Congalton, which is common in the remote sensing literature.
public static DeltaMethodKappaVariance ( GeneralConfusionMatrix matrix, double &stdDev ) : double
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix A representing the ratings.
stdDev double Kappa's standard deviation.
return double

KappaTest() public method

Creates a new Kappa test.
public KappaTest ( GeneralConfusionMatrix matrix, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix The contingency table to test.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
return System

KappaTest() public method

Creates a new Kappa test.
public KappaTest ( GeneralConfusionMatrix matrix, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
matrix Accord.Statistics.Analysis.GeneralConfusionMatrix The contingency table to test.
hypothesizedKappa double The hypothesized value for the Kappa statistic. If the test /// is being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error will be computed with the null hypothesis parameter set to true.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
return System

KappaTest() public method

Creates a new Kappa test.
public KappaTest ( WeightedConfusionMatrix matrix, double hypothesizedWeightedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
matrix Accord.Statistics.Analysis.WeightedConfusionMatrix The contingency table to test.
hypothesizedWeightedKappa double The hypothesized value for the Kappa statistic. If the test /// is being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error will be computed with the null hypothesis parameter set to true.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
return System

KappaTest() public method

Creates a new Kappa test.
public KappaTest ( double sampleKappa, double standardError, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsGreaterThanHypothesis ) : System
sampleKappa double The estimated Kappa statistic.
standardError double The standard error of the kappa statistic. If the test is /// being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error should be computed with the null hypothesis parameter set to true.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
return System

KappaTest() public method

Creates a new Kappa test.
public KappaTest ( double sampleKappa, double standardError, double hypothesizedKappa, OneSampleHypothesis alternate = OneSampleHypothesis.ValueIsDifferentFromHypothesis ) : System
sampleKappa double The estimated Kappa statistic.
standardError double The standard error of the kappa statistic. If the test is /// being used to assert independency between two raters (i.e. testing the null hypothesis /// that the underlying Kappa is zero), then the /// standard error should be computed with the null hypothesis parameter set to true.
hypothesizedKappa double The hypothesized value for the Kappa statistic.
alternate OneSampleHypothesis The alternative hypothesis (research hypothesis) to test. If the /// hypothesized kappa is left unspecified, a one-tailed test will be used. Otherwise, the /// default is to use a two-sided test.
return System