mne.stats.bootstrap_confidence_interval#
- mne.stats.bootstrap_confidence_interval(arr, ci=0.95, n_bootstraps=2000, stat_fun='mean', random_state=None)[source]#
Get confidence intervals from non-parametric bootstrap.
- Parameters
- arr
ndarray
, shape (n_samples, …) The input data on which to calculate the confidence interval.
- ci
float
Level of the confidence interval between 0 and 1.
- n_bootstraps
int
Number of bootstraps.
- stat_fun
str
|callable()
Can be “mean”, “median”, or a callable operating along
axis=0
.- random_state
int
|float
| array_like |None
The seed at which to initialize the bootstrap.
- arr
- Returns
- cis
ndarray
, shape (2, …) Containing the lower boundary of the CI at
cis[0, ...]
and the upper boundary of the CI atcis[1, ...]
.
- cis
Examples using mne.stats.bootstrap_confidence_interval
#
Explore event-related dynamics for specific frequency bands
Explore event-related dynamics for specific frequency bands