dirconn.AsymptoticTestResult#

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

Per-frequency p-values and thresholds of PDC or rPDC, with the premise they rest on.

observed#

The result that was tested, with its provenance.

Type:

Connectivity

pvalues, statistic, threshold

Shape (source, target, freq, 1). The statistic is N |Abar_ij(f)|^2 / C_ij(f) (PDC) or N lambda (rPDC); threshold is the value of observed that a cell must exceed to be significant at alpha without correction. Undefined cells (the diagonal) are NaN.

Type:

ndarray

df#

Degrees of freedom of the chi-square distribution at every frequency.

Type:

ndarray, shape (n_freqs,)

n_obs#

N, the regression rows of the fit (the predicted samples of all trials).

Type:

int

null#

The null hypothesis.

Type:

str

limitations#

Ways the p-values can be wrong or misleading.

Type:

tuple of str

alpha#

Level of threshold and default level for significant().

Type:

float

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

Methods

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

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

threshold

df

n_obs

null

limitations

alpha