dirconn.BootstrapResult#

class dirconn.BootstrapResult(observed: Connectivity, lower: ndarray, upper: ndarray, std: ndarray, ci: float, n_boot: int, seed: int, interval: str, resampling: dict[str, Any], checks: AssumptionChecklist)#

Percentile bands of the magnitude of a connectivity result.

All arrays have the shape of observed.values; undefined cells are NaN.

observed#

The estimate on the original data (after reduce), with its provenance.

Type:

Connectivity

lower, upper

Percentiles (1 - ci) / 2 and (1 + ci) / 2 of |value| over the resamples.

Type:

ndarray

std#

Standard deviation (ddof 1) of |value| over the resamples.

Type:

ndarray

ci#

Confidence level of the band.

Type:

float

n_boot, seed

How the bootstrap was run.

Type:

int

interval#

Always "percentile": no bias correction.

Type:

str

resampling#

unit ("trial" or "block"), n_units and, for blocks, block_size and dropped_samples (samples after the last whole block).

Type:

dict

checks#

bootstrap_units (enough trials or blocks) and bootstrap_fits (diagnostics raised inside the resampled fits).

Type:

AssumptionChecklist

__init__(observed: Connectivity, lower: ndarray, upper: ndarray, std: ndarray, ci: float, n_boot: int, seed: int, interval: str, resampling: dict[str, Any], checks: AssumptionChecklist) → None#

Methods

__init__(observed, lower, upper, std, ci, ...)

Attributes

defined

Boolean mask of the cells that have a band.

method

Name of the estimator.

observed

lower

upper

std

ci

n_boot

seed

interval

resampling

checks