kedm.ccm

kedm.ccm(lib: Annotated[numpy.typing.ArrayLike, numpy.float32], target: Annotated[numpy.typing.ArrayLike, numpy.float32], *, lib_sizes: collections.abc.Sequence[SupportsInt] = [], sample: SupportsInt = 1, E: SupportsInt = 1, tau: SupportsInt = 1, Tp: SupportsInt = 0, seed: SupportsInt = 0, accuracy: SupportsFloat = 1.0) list[float]

Estimate the strength of causal interaction between two time series using Convergent Cross Mapping (CCM).

Parameters:
  • lib – Library time series

  • target – Target time series

  • lib_sizes – List of library sizes

  • sample – Number of random samples

  • E – Embedding dimension

  • tau – Time delay

  • Tp – Prediction interval

  • seed – Random seed (randomly initialized if 0)

  • accuracy – Approximation accuracy

Returns:

List of Pearson’s correlation coefficient for each library size

Note

If accuracy < 1.0, approximate nearest neighbor search is used to speed up execution with a slightly reduced accuracy. For example, 99.9% of the true neighbors is expected to be used if accuracy is set to 0.999.