Skip to main content

Bayesian excess variance for Poisson data time series with backgrounds.

Project description

Bayesian excess variance for Poisson data time series with backgrounds. Excess variance is over-dispersion beyond the observational poisson noise, caused by an astrophysical source.

Introduction

In high-energy astrophysics, the analysis of photon count time series is common. Examples include the detection of gamma-ray bursts, periodicity searches in pulsars, or the characterisation of damped random walk-like accretion in the X-ray emission of active galactic nuclei.

Methods

This repository provides new statistical analysis methods for light curves. They can deal with

  • very low count statistics (0 or a few counts per time bin)

  • (potentially variable) instrument sensitivity

  • (potentially variable) backgrounds, measured simultaneously in an ‘off’ region.

The tools can read eROSITA light curves. Contributions that can read other file formats are welcome.

The bexvar_ero.py tool computes posterior distributions on the Bayesian excess variance, and source count rate.

quick_ero.py computes simpler statistics, including Bayesian blocks, fraction variance, the normalised excess variance, and the amplitude maximum deviation statistics.

Licence

AGPLv3 (see COPYING file). Contact me if you need a different licence.

Install

https://img.shields.io/pypi/v/bexvar.svg https://github.com/JohannesBuchner/bexvar/actions/workflows/test.yml/badge.svg

Install as usual:

$ pip3 install bexvar

This also installs the required ultranest python package.

Example

Run with:

$ bexvar_ero.py 020_LightCurve_00001.fits

Run simpler variability analyses with:

$ quick_ero.py 020_LightCurve_*.fits.gz

Contributing

Contributions are welcome. Please open pull requests with code contributions, or issues for bugs and questions.

Contributors include:

  • Johannes Buchner

  • David Bogensberger

Changelog

Project details


Download files

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

Source Distribution

bexvar-1.0.1.tar.gz (67.7 kB view details)

Uploaded Source

File details

Details for the file bexvar-1.0.1.tar.gz.

File metadata

  • Download URL: bexvar-1.0.1.tar.gz
  • Upload date:
  • Size: 67.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for bexvar-1.0.1.tar.gz
Algorithm Hash digest
SHA256 b6885a22defc1c38521821a416ef1868d922850fb4aed7fb8f14e84530e85e64
MD5 3ed3d4939bc767b5d77750b22b28a993
BLAKE2b-256 2134faae0405f9f0c504599a554b016965b29569caf906b911198f42b8dd8d7b

See more details on using hashes here.

Supported by

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