[triqs/stat] Statistical Analysis
Introduction
This library provides statistical tools to analyze samples that are generated during a simulation. In particular, it provides routines for:
accumulating and binning correlated measurements, arising from a Monte Carlo simulation
calculating averages and errors for data and functions of data
constructing histograms
Averages and Standard Errors
For independent samples \(\lbrace x_i\rbrace _{i=0\dots N-1}\) of the elementary observable \(X\), estimates of the mean and standard error are:
Functions to perform these calculations (including mpi versions), are implemented in the library.
We often want to computing the mean and error for quantities which are derived from our measured and binned data. Consider a general function \(f\) that depend on several observables \(X,Y,\ldots\):
Unless \(f\) is linear, calculating a reliable estimate the error \(\Delta f\) is a difficult problem, which can be addressed using resampling methods – the simplest of these is the jackknife. We implement the jacknife function (and a MPI version), which allows for general user-specified functions \(f\) and input data \(X,Y,\ldots\).
C++ API Reference: