I am using the ccf (cross correlation) as follows:
from statsmodels.tsa.stattools import ccf
print ccf(np.array(X), np.array(Y), unbiased=True)
I am having a hard time interpreting the results. My question is whether the output is the cross-correlation at all possible lags or is this the result of multiplications of all data points at lag 0? The documentation does not provide any insights on this issue. Thanks in advance.
I believe it is for all possible lags. Since the core is np.correlate('full'). However, in my case I got value close to -2. Which does not seem right.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With