Package gPy :: Module PC :: Class Chi2Separator
[hide private]
[frames] | no frames]

Class Chi2Separator

source code


Instance Methods [hide private]
 
__init__(self, data, p_null=0.05)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
separates(self, x, y, s)
Tests if x is separated from y given the separator s.
source code
 
confidence(self, x, y, s)
Returns the confidence in the hypothesis x_|_y|s.
source code
 
test_independ(self, x, y, s)
Test if x _|_ y | s.
source code

Inherited from HypotheticalSeparator: variables

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, data, p_null=0.05)
(Constructor)

source code 

x.__init__(...) initializes x; see x.__class__.__doc__ for signature

Parameters:
  • p_null (float in (0,1)) - threshold at which to reject null hypothesis of conditional independence
Overrides: object.__init__

separates(self, x, y, s)

source code 

Tests if x is separated from y given the separator s. Test rejects this hypothesis at p_null.

Returns:
True if hypothesis is not rejected
Overrides: HypotheticalSeparator.separates
(inherited documentation)

confidence(self, x, y, s)

source code 

Returns the confidence in the hypothesis x_|_y|s. Higher return value should imply a higher confidence.

Overrides: HypotheticalSeparator.confidence
(inherited documentation)

test_independ(self, x, y, s)

source code 

Test if x _|_ y | s. returns (p,s,d) where p is the probability of the available data, given the null hypothesis of independence, s is the test statistic, and d is the number of degrees of freedom in the available data for this test.