JuliaDynamics / ComplexityMeasures.jl

Estimators for probabilities, entropies, and other complexity measures derived from data in the context of nonlinear dynamics and complex systems
MIT License
56 stars 14 forks source link

[Q] How to calculate MI between two vectors? #400

Closed shayandavoodii closed 5 months ago

shayandavoodii commented 5 months ago

How to calculate MI between two vectors? Considering two vectors of v1 and v2, it is possible to estimate the MI between those vectors using the CausalityTools:

using CausaltyTools
vec1, vec2 = rand(10), rand(10);
est = ValueHistogram(FixedRectangularBinning(0, 1, 10))
mutualinfo(est, vec1, vec2)

I want to know whether there is an equivalent method in the ComplexityMeasures.

Datseris commented 5 months ago

CausalityTools is the continuation of ComplexityMeasures. ComplexityMeasures is for quantities from 1 input data. CausalityTools is for quantities between 2 or more input data.

Datseris commented 5 months ago

Was there any problem with using CausalityTools.jl? If yes, can you please open an issue there? The same developers that develop ComplexityMeasures.jl also develop CausalityTools.jl.

shayandavoodii commented 5 months ago

Was there any problem with using CausalityTools.jl? If yes, can you please open an issue there? The same developers that develop ComplexityMeasures.jl also develop CausalityTools.jl.

Yes, this issue: https://github.com/JuliaDynamics/CausalityTools.jl/issues/364 I should mention that this problem doesn't exist on v2.7.1.