pytc.vmc.blocking.block_analysis

pytc.vmc.blocking.block_analysis(data)[source]

Perform block analysis on a 1D array of correlated data to estimate standard error.

Parameters:

data (numpy.ndarray) – 1D numpy array of correlated samples (e.g. energies from MCMC).

Returns:

  • block_sizes: Array of block sizes used.

  • block_errors: Array of estimated standard errors for each block size.

  • block_overall_means: Array of the mean value of the data for the given block size.

Return type:

A tuple of (block_sizes, block_errors, block_overall_means)