Skip to main content

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.

Project description

Bursty dynamics

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 memeory 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 clusters 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 the 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.

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.

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

bursty_dynamics-0.1.0.tar.gz (11.7 kB view details)

Uploaded Source

Built Distributions

bursty_dynamics-0.1.0-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

bursty_dynamics-0.1-py3-none-any.whl (12.9 kB view details)

Uploaded Python 3

File details

Details for the file bursty_dynamics-0.1.0.tar.gz.

File metadata

  • Download URL: bursty_dynamics-0.1.0.tar.gz
  • Upload date:
  • Size: 11.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for bursty_dynamics-0.1.0.tar.gz
Algorithm Hash digest
SHA256 c1ec53b107d3379cb647ded1bac113434f0863244aeda8aabe6c66358b0f9bf6
MD5 d6f0837225db9341023037d52c3e1557
BLAKE2b-256 d701672692eac0d42b3e665be449eec2a1e0d64e77e4f7d2c98e288a3c9c0fbd

See more details on using hashes here.

File details

Details for the file bursty_dynamics-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for bursty_dynamics-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b7b0f936c6cef981e04be2eded1755516a0cbc0a3a081a7acb0b003f9acbea9a
MD5 b05925d44cc61827e81773f0912797cb
BLAKE2b-256 4562da6fa03e61bd38506896f018d464f2f382548ed43b94a3692aa914c894c2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for bursty_dynamics-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bc46f1319b7501c161a0a95ba199a21a9dbd167ab7e7987c14c4dbfef17d3cd5
MD5 be39eaf377547cfd8d8fe6286dd6e717
BLAKE2b-256 b6529beadd4746a689cdcbf5a30ed613c3bbbe7eb9e9c2c670207a345c490369

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