rhino_health.lib.metrics.statistics_tests#

Module Contents#

Classes#

ChiSquare

A metric that calculates the Chi-Square test for multiple Datasets.

Pearson

A metric that calculates the Pearson Correlation Coefficient for multiple Datasets.

ICC

A metric that calculates the Intraclass Correlation Coefficient for multiple Datasets.

Spearman

A metric that calculates Spearman's Rank Correlation Coefficient for multiple Datasets.

Wilcoxon

A metric that calculates the Wilcoxon signed rank test for multiple Datasets.

TTest

A metric that calculates the T test for multiple Datasets.

OneWayANOVA

A metric that calculates the T test for multiple Datasets.

class rhino_health.lib.metrics.statistics_tests.ChiSquare(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates the Chi-Square test for multiple Datasets.

variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
variable_1: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
variable_2: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
class rhino_health.lib.metrics.statistics_tests.Pearson(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates the Pearson Correlation Coefficient for multiple Datasets.

variable_1: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
variable_2: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
class rhino_health.lib.metrics.statistics_tests.ICC(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates the Intraclass Correlation Coefficient for multiple Datasets.

variable_1: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
variable_2: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
class rhino_health.lib.metrics.statistics_tests.Spearman(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates Spearman’s Rank Correlation Coefficient for multiple Datasets.

variable_1: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
variable_2: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
class rhino_health.lib.metrics.statistics_tests.Wilcoxon(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates the Wilcoxon signed rank test for multiple Datasets.

variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
abs_values_variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
class rhino_health.lib.metrics.statistics_tests.TTest(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates the T test for multiple Datasets. The methods used is the Welch’s t-test (equal or unequal sample sizes, unequal variances).

numeric_variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
categorical_variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
class rhino_health.lib.metrics.statistics_tests.OneWayANOVA(**kwargs)#

Bases: rhino_health.lib.metrics.base_metric.AggregatableMetric

A metric that calculates the T test for multiple Datasets. If the numeric variable data column has nans, they will be ignored.

variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
numeric_variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#
categorical_variable: rhino_health.lib.metrics.filter_variable.FilterVariableTypeOrColumnName#