pyeeg.connectivity.jackknife_resample

pyeeg.connectivity.jackknife_resample(data)

Performs jackknife resampling on numpy array.

This technique generates n samples of length n-1 from the input of length n. The ith sample has the ith measurment “knocked-out”. This statistical method may be useful in estimating covariance-based metrics from single trial data.

Parameters:

data (ndarray (n, ...)) – Input data. The first axis is resampled.

Returns:

resampled – Jackknife resampled data: the ith array along the first axis is data with the ith observation removed.

Return type:

ndarray (n, n-1, …)