# 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
arrndarray, shape (n_samples, …)

The input data on which to calculate the confidence interval.

cifloat

Level of the confidence interval between 0 and 1.

n_bootstrapsint

Number of bootstraps.

stat_fun

Can be “mean”, “median”, or a callable operating along axis=0.

random_state

The seed at which to initialize the bootstrap.

Returns
cisndarray, shape (2, …)

Containing the lower boundary of the CI at cis[0, ...] and the upper boundary of the CI at cis[1, ...].