Skip to main content

Pure Python library that implements Wolff's method to compute autocorrelation timesof Monte Carlo series.

Project description

Author: Dirk Hesse <herr.dirk.hesse@gmail.com>

We implement the method to estimate autocorrelation times of Monte Carlo data presented in

U. Wolff [ALPHA Collaboration], Monte Carlo errors with less errors, Comput. Phys. Commun. 156, 143 (2004) [hep-lat/0306017].

PUBLICATIONS MAKING USE OF THIS CODE MUST CITE THE PAPER.

The main objective is the following: Data coming from a Monte Carlo simulation usually suffers from autocorrelation. It is not straight-forward to estimate this autocorrelation, which is required to give robust estimates for errors. This program implements a method proposed by Wolff to estimate autocorrelations in a safe way.

Quick start

This package contains code to generate correlated data, so we can conveniently demonstrate the basic functionality of the code in a short example:

>>> from puwr import tauint, correlated_data
>>> correlated_data(2, 10)
[[array([ 1.02833043,  1.08615234,  1.16421776,  1.15975754,
          1.23046603,  1.13941114,  1.1485227 ,  1.13464388,
          1.12461557,  1.15413354])]]
>>> mean, delta, tint, d_tint = tauint(correlated_data(10, 200), 0)
>>> print "mean = {0} +/- {1}".format(mean, delta)
mean = 1.42726267057 +/- 0.03013853
>>> print "tau_int = {0} +/- {1}".format(tint, d_tint)
tau_int = 9.89344869217 +/- 4.10466090332

The data is expected to be in the format data[observable][replicum][measurement]. See the documentation that comes with this code for more information.

License

See LICENSE file.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

py_uwerr-0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file py_uwerr-0.1-py3-none-any.whl.

File metadata

  • Download URL: py_uwerr-0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.26.0

File hashes

Hashes for py_uwerr-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 18d56950ad4ffeaf750ec15a256a3a261b42a20327ea7ecd7aef742b7d476483
MD5 1f53090c421865149ec419fbbe4d634c
BLAKE2b-256 4d321fe59cf9cdd3512b1dbe326aff8cf93e466258e828af7b842d2da98ae548

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page