dirconn.time_reversal_asymmetry#
- dirconn.time_reversal_asymmetry(estimator: Estimator, data: TimeSeries) TimeReversalAsymmetry#
Compare an estimator’s result on the data with its result on the time-reversed data.
A heuristic, not a test (there is no p-value): a cell whose value comes from a lagged influence changes when time runs backwards, while one that comes from an instantaneous mixture stays about the same. For a directed measure, a true edge
i -> jgives a positive asymmetry at[i, j]. Large values do not prove an influence and small values do not rule one out; use it next toTRGCor a significance test.Ported from the old package’s
TimeReversalTest; the one change is that a cell where both values are zero is NaN instead of 0 (the old code divided by1e-12).- Parameters:
estimator (Estimator) – Any estimator with real-valued results.
data (TimeSeries) – Input data.
- Return type: