OrdinalCTEEstimator#
- class infomeasure.estimators.transfer_entropy.OrdinalCTEEstimator(source, dest, *, cond=None, embedding_dim: int, stable: bool = False, prop_time: int = 0, step_size: int = 1, src_hist_len: int = 1, dest_hist_len: int = 1, cond_hist_len: int = 1, offset: int = None, base: int | float | str = 'e', **kwargs)[source]
Bases:
BaseOrdinalTEEstimator,ConditionalTransferEntropyEstimatorEstimator for the Ordinal / Permutation conditional transfer entropy.
- Attributes:
- source, dest, condarray_like
The source (X), destination (Y), and conditional (Z) data used to estimate the conditional transfer entropy.
- embedding_dim
int The size of the permutation patterns.
- prop_time
int,optional Number of positions to shift the data arrays relative to each other (multiple of
step_size). Delay/lag/shift between the variables, representing propagation time. Assumed time taken by info to transfer from source to destination.- step_size
int Step size between elements for the state space reconstruction.
- src_hist_len, dest_hist_len, cond_hist_len
int Number of past observations to consider for the source, destination, and conditional data.
- Raises:
ValueErrorIf the
embedding_dimis negative or not an integer.ValueErrorIf the
embedding_dimis too large for the given data.ValueErrorIf
step_size,prop_time, andembedding_dimare such that the data is too small.
Notes
If
embedding_dimis set to 1, the transfer entropy is always 0.