I want to find relation between 2 time series: a and b. I followed two ways:
1) Differentiated both 'a' and 'b' at lag 1 to remove trend (giving differenced time series 'ad' and 'bd') and then used xcorr in 'normalized' mode in MATLAB. (refer to figures)
2) I used corrplot (which in turn uses corrcoef): corrplot([a,b]) in matlab
Apparently corrcoef uses mean subtraction by default for detrending, while in xcorr I had to detrend the series manually by differentiating. (See: https://groups.google.com/forum/#!topic/comp.soft-sys.matlab/hFyEasUnKl8 )
Both the methods are conveying correlation cofficients at the end, but what can I understand from these 2 different outcomes?
The purpose of my analysis is two-fold:
1) To see if the time series have a relation or not
2) To use the correlation coefficients for feature selection in a multi-variate problem (several time series).