Skip to main content

bexvar

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

paper: https://arxiv.org/abs/2106.14529

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 Publication

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

If you use this software, please cite this paper: https://arxiv.org/abs/2106.14529

Changelog

Metadata

Release files for bexvar 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bexvar 1.1.1
File Size Uploaded
bexvar-1.1.1.tar.gz 19.5 kB Details

Release files / bexvar-1.1.1.tar.gz

Download URL bexvar-1.1.1.tar.gz
Size 19.5 kB
Tags Source
SHA-256 checksum
How to use checksums
7832274bb03696b70feedbfd2f2d6db192b82c13d26bae750be22cc82882984c
BLAKE2b-256 checksum
How to use checksums
2208af06ca041bb29484c2694792559f1f70384d071f92508b5ed50bad93a87b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.1.1 This release

1 release file

1.1.0

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page