Skip to content

Transfer Entropy Test Question #13

@jwhowse4

Description

@jwhowse4

I have done what I thought was a simple test of your transfer entropy code, but I do not understand the answers that I am getting.

Generate two realizations from the same uniform distribution.
unif_1 = scipy.stats.uniform.rvs( size=15000, loc=-0.25, scale=1.0 )
unif_2 = scipy.stats.uniform.rvs( size=15000, loc=-0.25, scale=1.0 )

Compute the transfer entropy using the 'ordinal' method. First compute the transfer entropy where both samples are 'unit_1'.

infomeasure.transfer_entropy( unif_1, unif_1, approach='ordinal', embedding_dim=4, base='e', step_size=1, prop_time=0, src_hist_len=5, dest_hist_len=5 )
Out: np.float64(0.0)

The answer is 0 which is what I expected.

Next compute the transfer entropy where one sample is 'unif_1' and the other is 'unit_2'.

infomeasure.transfer_entropy( unif_1, unif_2, approach='ordinal', embedding_dim=4, base='e', step_size=1, prop_time=0, src_hist_len=5, dest_hist_len=5 )
Out: np.float64(0.8017785056845319)

I expected this answer to be very small if not zero. Why is this value not near zero?

The situation becomes more confusing for me when I compute transfer entropy using the 'metric' method. First compute the transfer entropy where both samples are 'unit_1'.

infomeasure.transfer_entropy( unif_1, unif_1, approach='metric', minkowski_p=numpy.inf, k=4, base='e', noise_level=1.0e-8, step_size=1, prop_time=0, src_hist_len=5, dest_hist_len=5 )
Out: np.float64(2.6662238315844906)

I expected this answer to be zero as it was for the 'ordinal' case. Why is this value not zero?

Next compute the transfer entropy where one sample is 'unif_1' and the other is 'unit_2'.

infomeasure.transfer_entropy( unif_1, unif_2, approach='metric', minkowski_p=numpy.inf, k=4, base='e', noise_level=1.0e-8, step_size=1, prop_time=0, src_hist_len=5, dest_hist_len=5 )
Out: np.float64(3.1566700132055603)

Why is this value not near zero?

I would really appreciate any thoughts or suggestions. Am I doing something wrong in using these functions?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requestedtheoryInformation-theoretic or statistical backgroundusageHow-to and interpretation questions

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions