Skip to main content

Bursty Dynamics

PyPI Documentation DOI

bursty_dynamics is a Python package designed to facilitate the analysis of temporal patterns in longitudinal data. It provides functions to calculate the burstiness parameter (BP) and memory coefficient (MC), detect event trains, and visualise results.

This package implements the alternate burstiness parameter described in the paper ‘Measuring Burstiness for Finite Event Sequences’ by Kim, Eun-Kyeong, and Hang-Hyun Jo, and memory coefficient described in ‘Burstiness and Memory in Complex Systems’ by Goh, K.-I., and A.-L. Barabási.

Features

  • Burstiness Parameter (BP) and Memory Coefficient (MC) Calculation: Calculate BP and MC to quantify the irregularity and memory effects of event timing within longitudinal data.

  • Event Train Detection: Detect and label event trains based on user-defined criteria such as maximum inter-event time and minimum burst size.

  • Train-Level Analysis: Analyse BP and MC for detected event trains, providing insights into temporal patterns within trains of events.

  • Visualisation Tools: Visualise temporal patterns with scatter plots, histograms, kernel density estimates (KDE), and more, facilitating interpretation of analysis results.

  • User-Friendly Interface: Designed for ease of use, with clear function parameters and output formats, making it accessible to both novice and experienced users.

Installation

You can install bursty_dynamics via pip:

pip install bursty_dynamics

Usage

Here’s a quick overview of how to use the main functionalities of the package

from bursty_dynamics.scores import calculate_scores
from bursty_dynamics.trains import train_detection, train_info, train_scores

# Load your longitudinal data into a DataFrame
# df = load_data()

# calculate BP and MC
score_df = calculate_scores(df, subject_id = 'eid', time_col = 'event_dt')

For more example of usage, please take a look at examples.ipynb in the example folder.

Getting Help

For more information about bursty_dynamics, please check out:

License

License

bursty_dynamics is licensed under the MIT License. See the LICENSE file for more details.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvements, feel free to open an issue or for questions, suggestions, or general discussion related to our project, please visit our GitHub Discussions page.

Metadata

Release files for bursty-dynamics 0.1.7

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

Source distribution (sdist)

Source distribution for bursty-dynamics 0.1.7
File Size Uploaded
bursty_dynamics-0.1.7.tar.gz 13.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for bursty-dynamics 0.1.7
File Interpreter ABI Platform
bursty_dynamics-0.1.7-py3-none-any.whl Python 3 none any Details

Total release size: 27.8 kB

Release files / bursty_dynamics-0.1.7.tar.gz

Download URL bursty_dynamics-0.1.7.tar.gz
Size 13.3 kB
Tags Source
SHA-256 checksum
How to use checksums
be183c833bae68cab1af3907dcfdc98613de1f8bea64a4f4fca0bed701f3d01b
BLAKE2b-256 checksum
How to use checksums
727128473349cbf1733d4cd251a16947e134d939ea9ebd84e95971ed235f9e5f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release files / bursty_dynamics-0.1.7-py3-none-any.whl

Download URL bursty_dynamics-0.1.7-py3-none-any.whl
Size 14.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
dea0d3675c98be14f310dafa73598481d1d01fccbd7fa0d7a90b5e702a7ac4e5
BLAKE2b-256 checksum
How to use checksums
e5e027e796be5366bc5822a58b80b2164346a431611fbf428803bb9357e274b2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.9.23

Release history Release notifications | RSS feed

This release

0.1.7 This release

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

0.1.0

3 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

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