# Questions tagged [cross-correlation]

A measure of correlation between different time series, at the same or different times.

302 questions
Filter by
Sorted by
Tagged with
114 views

### Assessing correlations, adjusted for time

I have time series data for two signals, $X$ and $Y$. At $\text{time}=0$, the both $X$ and $Y$ are roughly 50. As time progresses, $X$ increases to settle at 100 and $Y$ decreases to settle at 0. ...
20k views

### Cross Correlation (xcorr in MATLAB) vs Pearson Correlation (corr in MATLAB)

Are the values of xcorr(x,y) in MATLAB correlation values or not? I'm asking this because in MATLAB xcorr(x,y,'coeff') ...
4k views

### Jointly stationary random process

If two wide-sense stationary processes $X(t)$ and $Y(t)$ are uncorrelated, then the cross correlation is $R_{XY}(t_1,t_2) = E\{X(t_1)Y(t_2)\} = E\{X(t_1)\}E\{Y(t_2)\}$, which will be a constant, ...
282 views

### Probability distribution of windowed cross-correlation

This question is in the context of time-delay estimation. Say I have a stationary Gaussian stochastic process $g$, and I know its autocorrelation function $R_g(\tau)$. To do time-delay estimation, I'm ...
601 views

### Correlation of non-stationary time series

I am looking at finding correlations between house price time series and the time series of multiple indicators in an area. For example These two trends clearly show a sort of strong negative ...
858 views

### Interpreting ccf() plot in R

I was hoping you could help me interpret the following cross-correlation plot of U.S. and China short-term interest rate time series(1997-2015). I am a beginner to statistics, so I apologize if I am ...
2k views

### Spatial cross-correlation: What is the correlation statistic used by the correlog function?

I want to look at the spatial cross-correlation between 2 variables. I am currently using the function correlog from the package ...
619 views

### Calculate correlation between events and signals in time series

I have a time series signal (continuous values) and some events occurring. An event for me is characterized by the fact that it only has a single timestamp assigned to it and not a timespan. Is there ...
622 views

### What are good values for autocorrelation, Gelman, and cross-correlation in rjags?

I don't want to post my whole code since it is long, so I will only post part of it: ...
146 views

### Using cross correlation to infer dependence, can it be done?

I have a very particular question, I have seen a similar one here, but my knowledge is too limited to make use of it. I will try to explain myself as clearly as possible... Wish me luck! I have a ...
2k views

### MATLAB interpretation of xcorr2 cross correlation function

I have two vectors of matching lengths. They are readings from two different sensors (one is from a smartphone and the other is from a wiimote) of the same hand movement. I am trying to find the time ...
128 views

### polar analog of cartesian cross-correlation function

Background: The cross-correlation function, wrapped in frequency domain convolution, is used in particle image velocimetry to allow sub-pixel metrology. It is also used in convolutional neural ...
416 views

### (Cross) Correlation of time series with very different sampling intervals (sec. vs days)

This is my first post on Cross-Validated. I read a lot of question related to my problem, but no one was completely satisfying. I have two time series that are sampled at very different time ...
297 views

### Two variables correlated to a third one but not together

Let's consider the following correlation matrix: $$\begin{pmatrix} 1 & 1 & 1 \\ 1 & 1 & 0 \\ 1 & 0 & 1 \end{pmatrix}$$ which describes the correlation between 3 random ...
504 views

### Multiple Cross-correlation

I'm trying to compare two sets of time series. I've successfully used cross-correlation to compare two series between them, but I'm not sure about the way to go for several series. Let me be more ...
3k views

### Comparing time series: Pearson correlation, Kendall's tau b or Spearman's rho?

Which correlation coefficient is the most appropriate to compare 2 time series? I want to compare the variation of one variable for 2 regions, have regional data for the last 30 years. Is Pearson ...
92 views

### Correlation of one binary input series and continous response series

I have one input series of type 0/1 (it is an intervention time series) and some metric response series. I need to have a look at cross correlations. Normally I would use Box-Jenkins-technique. But ...
1k views

### How to calculate p-value for Cross-Correlation for two time series with delay?

I have two stationery time series that I want to see are they correlated or not. I decided to work with cross correlation, there is a good answer in Correlation between two time series but I dont know ...
217 views

### Can I compute cross correlation after decomposition?

Given two time series within the same time period, I can use the ccf function in R to compute a notion of similarity of these ...
8k views

### Is my time series stationary?

I am using R and have found that both KPSS ( Kwiatkowski-Phillips-Schmidt-Shin ) and the adf (Dickey-Fuller) tests indicate stationarity, having a p-value of 0.01. Here is a plot of the original data:...
1k views

### Reproduce Cross Correlation results in Python

I'm trying and failing to reproduce the results found in this paper, where the cross correlation between two distributions is calculated: ...
850 views

### Pairwise correlations of time series variables

I am analyzing a group of related time-series variables, and am wondering the best way to think of in-group correlations. For example, suppose that my population is daily leaf-fall for all trees. ...
785 views

### Finding a subset of the data in which two variables are independent

I have a dataset of ~400 subjects. For each subject, I have about 18 variables (V1...V18), all of those continuous and measured at the same timepoint. A paper I'm working on would benefit from ...
48 views

### correlation of predictions and actuals

I should say that this question has nothing to do with regression. I am familar with the Sums of Squares Decomposition when there is an intercept in a regression but I'm not referring to that in this ...
2k views

### Testing significance of cross-correlated series

I want to prove that, overall, signal B is correlated to signal A. I was thinking of using cross-correlation (in R) to measure this. Essentially I have two kinds of signals: signal A is a series of ...
657 views

### Help w/ finding correlation between unemployment rate and home prices over the same time period?

I am interested in analyzing the correlation between nationwide home prices and nationwide unemployment rates, both of which are leading economic indicators. I have data on nationwide home prices by ...
68 views

### Crosscorrelation of stochastic process

Let $Z_1,Z_2$ i.i.d. standard normal  X(t) = \begin{cases} 0, & \text{if } t<Z_1, t<Z_2\\ 1, & \text{if } Z_1\le t <Z_2 \text{ or } Z_2\le t <Z_1 \\ 2, & \text{if } t\ge ...
322 views

441 views

### How to find cross correlation of a response variable with three independent predictor variables for time series data to identify useful lags?

I have a time series data y (response variable) which I want to predict using 3 independent time series data x1, x2 and x3. My goal is to build a multivariate regression model for which I want to ...
174 views

### How to detect inversions in the behavior of two time series through an online algorithm?

I would like to know if there is any technique which is capable to detect online (i.e. considering a sliding window) if there is a correlation between two time series. In particular, I'm trying to ...
1k views

### Time series and cross correlation

I have two time series: numbers of subscriptions per hours for 10 days, for a website. the time where TV ads, for a specific TV channel, have been displayed e.g. 10:25AM on Monday 12 of August, TV ...
200 views

### If F = F1+F2 is some measured random field, how to find out if F2 has been correctly estimated and subtracted?

I have a random field, F, defined on the surface of a sphere pixellized into about a million points. I know that F must consist of two components - F1 and F2, F1 being a true signal and F2 being some ...
87 views

### Identifying Early Indicators Time Series Analysis

I have a time series representing demand for a product which looks as follows: Clearly, this time series shows an upward trend and it's variance does seem non-stationary as well. Further, I have a ...
26 views

### ARIMA predictors - clarification

I'm working on multivariate time series (still), and would like some clarification. I was reading this site: Duke Forecasting and I came across this statement: "We see that the most significant ...
175 views

### Using non-stationary time series in cross-correlation analysis

I have modelled organism dynamics and abiotic factors time series in order to understand their seasonal oscillation and trend over time. Now I want to identify if there are any correlation between ...
138 views

### Cross correlations

I have a question about cross correlations and multivariate time series. I've read several articles and posts on SE about how to properly prewhiten data for cross correlation of two time series, and ...
29 views

### If I recover VAR model coefficients from PCA-derived coefficients, do I need to ensure that the model has zero cross-correlation in the residuals?

I am investigating how to appropriately combine PCA with VAR modeling. I am using PCA to reduce the number of vars I fit to a VAR model, and am attempting to recover the non-dim. reduced coefficients ...
394 views

### Normalised and “Normal” Cross Correlation giving different lag positions

Using numpy's np.correlate() am trying to find the lag position of two data sets of different length. When I use this operation by its own I find a lag position ...