PyPTE
Pythonic implementation of the Phase Transfer Entropy method using NumPy and SciPy
Install / Use
/learn @patrk/PyPTEREADME
pyPTE: Phase Transfer Entropy in Python
pyPTE is an open-source Python implementation of the Phase Transfer Entropy method, designed to analyze directed connectivity in networks influenced by oscillatory interactions. This tool is inspired by the following foundational works:
- Lobier et al., 2014: Phase transfer entropy: A novel phase-based measure for directed connectivity in networks coupled by oscillatory interactions.
- Hillebrand et al., 2016: Direction of information flow in large-scale resting-state networks is frequency-dependent.
Introduction
Phase Transfer Entropy (PTE) is a measure for directed connectivity in networks coupled by oscillatory interactions. The pyPTE library provides a Python implementation of this method, allowing researchers and developers to apply PTE analysis to their data.
Mathematical Background
The mathematical formulation of PTE can be described as follows:
Given two time series $X$ and $Y$, the PTE is defined as:
$$PTE_{X \to Y} = H(Y_{t+1} | Y_t) - H(Y_{t+1} | Y_t, X_t)$$
The PTE value quantifies the amount of uncertainty reduced in predicting the future phase of $Y$ when considering the current phase of $X$.
Contributing
Contributions to pyPTE are welcome! If you have suggestions, bug reports, or want to contribute code via Pull Requests
License
pyPTE is released under the GPL-3.0 license. For more details, see the LICENSE file.
Related Skills
node-connect
335.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
82.5kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
335.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
82.5kCommit, push, and open a PR
