I have two simple time series, xs and ys, having 5000 samples each. I attempted to compute the transfer entropy via
T=transfer_entropy(xs, ys, k)
using various lag values, k. Each attempt yielded the following error message:
Traceback (most recent call last):
File "/Users/fishbacp/Desktop/Python2022/transfer_entropy.py", line 16, in <module>
T=transfer_entropy(x_source,x_target,1)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyinform/transferentropy.py", line 222, in transfer_entropy
error_guard(e)
File "/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyinform/error.py", line 63, in error_guard
raise InformError(e, func)
pyinform.error.InformError: an inform error occurred - "negative state in timeseries"
Any insights as to the error source? Should I be adjusting other keyword arguments?