irreversibility: A Python Package for Assessing and Manipulating the Time Irreversibility of Real-World Time Series
1Instituto de Física Interdisciplinar y Sistemas Complejos CSIC-UIB, Edifici Complex de Recerca de les Illes Balears, Parc Bit, E-07120 Palma de Mallorca, Spain.
Abstract:
Time irreversibility refers to the property of some dynamical systems and time series of being statistically different when observed backward in time. While the theoretical foundations of irreversibility date back to the origin of statistical physics, the analysis of such property in real-world time series has only recently gained momentum. We present irreversibility, an open-source Python (version ≥ 3.11) package aimed at providing a large set of irreversibility metrics and tests and at facilitating their use. Besides the tests themselves, it includes a set of utilities, like functions to downsample and manipulate the time series, and to optimise the parameters of the metrics. By providing a unified software package, irreversibility simplifies the analysis of real data, allowing the researcher to compare multiple tests and obtain a better and more reproducible view of the underlying system. In this contribution we explore the features of the package and provide examples of its use.
Related Concept Videos
Time-Series Graph
Noncompartmental Analysis: Mean Residence Time
After the administration of a drug through intravenous bolus injection, the drug molecules are distributed throughout the body and remain there for varying periods. The MRT represents the average time these drug molecules stay in the...
Basic Operations on Signals
Time Reversal mirrors a continuous-time signal about the vertical axis at t=0. This is achieved by substituting t with −t. For example, if a signal x(t) is considered, the time-reversed signal is x(−t). This operation can be graphically represented, showing the mirrored signal.
Linear time-invariant Systems
The input-output behavior of an LTI system can be fully defined by its response to an impulsive excitation at its input. Once this impulse response is known, the system's reaction to any other input can be...
Chronopharmacokinetics: Time-Dependent Pharmacokinetics
Time-dependent pharmacokinetics refers to non-cyclical changes in drug rate processes over a period of time. It can lead to nonlinear pharmacokinetics, where the relationship between drug concentration and time is not proportional. Non-cyclical...
Basic Continuous Time Signals
The unit step function, denoted u(t), is zero for negative time values and one for positive time values, exhibiting a discontinuity at t=0. This function often represents abrupt changes, such as the step voltage introduced when turning a car's...


