Skip to content

Confusion about dispersion entropy outcomes and probabilities #433

@rusandris

Description

@rusandris

Hi!
I came across a strange behaviour related to the Dispersion outcome space.
Following the same example given in Rostaghi, M. and Azami, H. (2016), I get the same symbolic time series as presented in the paper.

using ComplexityMeasures
x=[9,8,1,12,5,-3,1.5,8.01,2.99,4,-1,10]
d = Dispersion(; c = 3, m = 2, τ = 1)
codify(d,x) #[3,  3,  1,  3,  2,  1,  1,  3,  2,  2,  1,  3]

However, when I try to calculate the probabilities of the dispersion patterns with m=2,

probs,outc = probabilities_and_outcomes(d,x)
probs
 Probabilities{Float64,1} over 7 outcomes
 [1, 1]  0.09090909090909091
 [1, 2]  0.18181818181818182
 [1, 3]  0.09090909090909091
 [2, 2]  0.09090909090909091
 [2, 3]  0.18181818181818182
 [3, 1]  0.2727272727272727
 [3, 3]  0.09090909090909091

the output contains patterns that aren't even observed ([1,2]), others appear with the incorrect probability ([1,3]). Is this due to some difference in the definitions/implementation? What am I missing?
Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions