dirconn.AnalyticTestResult#

class dirconn.AnalyticTestResult(observed: Connectivity, pvalues: ndarray, statistic: ndarray, df: tuple[int, int], null: str, limitations: tuple[str, ...], alpha: float)#

F-test p-values of a Granger result, with the premise they rest on.

observed#

The Granger result that was tested, with its provenance.

Type:

Connectivity

pvalues, statistic

Shape (source, target, 1, 1); the F statistic and its upper-tail p-value. Undefined cells (the diagonal) are NaN.

Type:

ndarray

df#

Numerator and denominator degrees of freedom.

Type:

tuple of int

null#

The null hypothesis.

Type:

str

limitations#

Ways the p-values can be wrong or misleading.

Type:

tuple of str

alpha#

Default level for significant().

Type:

float

__init__(observed: Connectivity, pvalues: ndarray, statistic: ndarray, df: tuple[int, int], null: str, limitations: tuple[str, ...], alpha: float) → None#

Methods

__init__(observed, pvalues, statistic, df, ...)

adjusted([method])

Return the p-values adjusted over the family (see adjust_pvalues()).

significant([alpha, method])

Return a boolean mask of the cells that survive correction.

Attributes

antisymmetric

Whether the tested method is antisymmetric (MethodInfo.antisymmetric).

defined

Boolean mask of the cells that have a p-value.

method

Name of the estimator.

observed

pvalues

statistic

df

null

limitations

alpha