11
votes
Why is the correlation coefficient a limited measure of dependence?
This is explained in the Wikipedia entry for Correlation and Dependence. Correlation basically measures how close two variables are to having a linear relationship between them. Consider now $X \sim U(...
9
votes
Accepted
Interpreting output from cross correlation function in R
To answer your question, here is an example:
...
8
votes
Interpreting CCF correlation in R
Your interpretation of the plot is correct. The only significant cross-correlation at the $5\%$ level of significance is at lag zero. Thus, we cannot say that one variable leads the other variable (...
8
votes
Accepted
Is my time series stationary?
Tests for stationarity are notorious for having weak power so keep that in mind. As mentioned in the comments, it helps to use judgement as well. A weakly stationary process by definition has a ...
7
votes
Accepted
How do you generate correlated ARMA(1,1) models?
I know that you want the correlation between the series themselves but a valid way (and to me the most natural way) to achieve it is by choosing the correlation between the disturbance terms. As I ...
7
votes
Accepted
"Associative" Correlation
None of them are (generally) true, and this is easy to prove by counterexamples.
If $E[XY]\ne0$,$E[YZ]\ne0$ then can we say
$$E[XZ]\ne0$$
Suppose we have: $$X=A+B$$ $$Y=A+C$$ $$Z=C+D$$
where ...
6
votes
Accepted
Cross correlation for very sparse binary data
You are right to think of correlation as the mean of the product of the standardized variables: this has great conceptual advantages over other definitions. It also leads to minimal loss of floating ...
6
votes
Accepted
How to perform proper data mining on time-series data?
I'll take the alternative approach to @forecaster and suggest you have the option of not treating this as a time series problem. Instead, with A as the response, ...
6
votes
Accepted
Cross-correlation between two seasonal series
The essential question is, what problem are you trying to solve?
If you intend to build a good model for the data (and later use the model for hypothesis testing, forecasting or whatever), you need ...
5
votes
Cross-correlation significance in R
The cross-correlation coefficient does not measure dependence between time series. The proper tool for it is the coherence function. For example, see Bendat and Piersol, 2010.
5
votes
Accepted
Random variables have non-zero covariance but expected sample covariance is zero? (intuition)
The conditions on the covariances will force the $X_i$ to be strongly correlated to one another, and the $Y_j$ to be strongly correlated to each other, when the mutual correlations between the $X_i$ ...
5
votes
Feature selection for time series data
I was also on the search for a list of time series features quite a while ago. There are publications inspecting individual features but I was not able to find a comprehensive list of features.
...
5
votes
How can I make the correct time-series analysis for my data?
You would likely be looking to calculate the residual autocorrelation function (RACF), also called residual cross-correlation function, which is the autocorrelation function on the residuals of fitted ...
5
votes
Accepted
Does the partial version of the Cross Correlation Function exist? If so, how can it be computed?
So, after some research on the topic... I came to realise that if you execute the following code:
pacf(ts(cbind(dx,dy)),lag.max=10)
You get the partial cross ...
5
votes
Accepted
Why are the results of R's ccf and SciPy's correlate different?
The difference is due to different definitions of cross-correlation and autocorrelation in different domains.
See Wikipedia's article on autocorrelation for more information, but here is the gist. ...
5
votes
Accepted
How to analyze correlation of multivariate time series
What you're calculating (the correlation between $A$ and lagged copies of $B$ and $C$) is called the the cross correlation. This isn't typically suitable for testing causality because it neglects the ...
4
votes
Asynchronous (irregular) Time Series Analysis
I know of one possible solution, but it is sufficiently complicated that I'm going to take the easy option and link you to the relevant academic paper (a critically under-rated paper in my opinion):
...
4
votes
Accepted
Finding a subset of the data in which two variables are independent
I guess some procedure of blind search could be designed in order to test correlations in various partitions of your sample. Assume that you indeed find a sub-sample in which what you think must hold, ...
4
votes
Accepted
Multivariant time series in R. How to find lagged correlation and build model for forecasting
You need to use your ACF & PACF behaviours to help you determine which model suits your data better (e.g. an existence of slow decay in ACF plot indicates that differencing might be needed to make ...
4
votes
Convert Cross Correlation to Probability value
Cross correlation measures the similarity of two signals / images A,B
Only in a very particular sense. Two things can be highly correlated but very different in size (mean, say) and scale (variation ...
4
votes
Accepted
Interpreting CCF correlation in R
How can I extract only acf value for lag=0?
The acf at lag 0 ($\text{corr}(X_t,X_t)$) is always 1.
Do interpret it correctly that there is a cross-correlation for the lag=0, as for this lag the ...
4
votes
Reproduce Cross Correlation results in Python
Just as a note, here is the Python solution based on @whuber code:
...
4
votes
Accepted
Spatial Cross-correlation Function
The estimator you are referring to comes from Bias and Variance of Angular Correlation Functions.
$D$ is an empirical sample of galaxies, typically captured as a CCD image.
$R$ is a simulated ...
4
votes
Accepted
Code for detrended cross-correlation in R
Alright, I finally find my mistake. It is before the final line of the DCCA_CC function.
instead of
rho = F2_dcca / (F2_dfa_x * F2_dfa_y)
It must be
...
4
votes
Accepted
What type of analysis to choose for this data?
You clearly have a bimodal (multimodal for the second) distribution:
standby (on the left)
cooling (on the right)
It does not seem that the temperature settings affects the power intake.
Most ...
4
votes
Accepted
Reference to equation of correlation of log-normal random variables
You can find it in Johnson and Kotz (1972) p20. [1]
an alternative reference (that refers to Johnson & Kotz) is Lai, Rayner & Hutchinson (1999) [2]
[1] Johnson, N. L. and Kotz, S. (1972).
...
Community wiki
4
votes
Accepted
What is the difference between Cross Correlation and Correlation Matrix
When it comes to correlation, there are several types in the realm of time series analysis.
Cross correlation is only one measure - which is referring to the correlation of one signal with another.
...
4
votes
Accepted
Interpretation of logistic regression with normalized features
The interpretation of logistic regression coefficients is similar in the case where you've standardized the data (subtract mean, divide by standard deviation of each feature). By standardizing, you ...
3
votes
Accepted
Reproduce Cross Correlation results in Python
Background
The referenced paper is about evaluating the strength of chess players. The data consist of computer evaluations of the strengths of individual moves (for one game in this example but, in ...
3
votes
How to perform proper data mining on time-series data?
Have a look at the ARIMAX model specification. It seems to be closest to what you're doing.
You can use any nonparametric regression or classification model given concatenated Toeplitz design ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
cross-correlation × 381time-series × 184
correlation × 131
r × 57
autocorrelation × 34
arima × 17
lags × 16
regression × 14
statistical-significance × 12
granger-causality × 12
matlab × 11
stationarity × 11
signal-processing × 10
forecasting × 9
covariance × 9
hypothesis-testing × 8
python × 8
multivariate-analysis × 8
similarities × 8
machine-learning × 7
vector-autoregression × 7
spectral-analysis × 7
probability × 6
econometrics × 6
spatial × 6