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

learn more… | top users | synonyms

4
votes
1answer
96 views

What type of analysis to choose for this data?

I am trying to create a model of refrigeration having the energy consumption and the temperature over time. So far, I've tried regression but fitting this data into linear model seems impossible. ...
2
votes
1answer
53 views
+50

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 ...
0
votes
0answers
9 views

Correlation between Lomb-Scargle periodograms

I have a bunch of Lomb-Scargle periodograms (functionally Power Spectral Densities for non-uniformly, discretely sampled time data). I am interested in grouping them into subgroups that have similar ...
1
vote
3answers
41 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 ...
3
votes
2answers
141 views

Cross correlation influenced by self auto correlation

I have two stationary time series ts1, ts2, I wanna find the cross correlation ($\textrm{CCF}$) between them. As a result, it ...
1
vote
0answers
26 views

Consistent estimate vs out-of-sample performance

When there is a cross-correlation structure in linear regression errors, the usual approach is to model the errors as an ARIMA process. It leads to a consistent estimate of the parameters of the ...
0
votes
2answers
42 views

Uncertainty of average due to correlation between auto-correlated time series

I want to calculate the average value of $n_i$ time series each of length $n_t$, i.e. an average of $n_i \times n_t$ values, together with a measure of uncertainty. To be more concrete, I have ...
0
votes
0answers
29 views

Cross- correlation between two non-stationary time series

I have two time series that are growing together. I want to measure if these series are growing similarly together with some lag. Originally, I was thinking I would just take the cross-correlation ...
0
votes
1answer
25 views

Event data correlation

I have two sets of data from two different types of sensor. For each instance a sensors output exceeds a threshold the amplitude and time is it is logged as an event. Thus each event consists of a ...
1
vote
0answers
33 views

cross correlation of partially correlated signals

I measure $x(t)$ and $y(t)$, two stationary random signals, and I want to find out if, and how much, they are correlated. What I'm doing is to plot the cross correlation ...
1
vote
0answers
67 views

C++ Pattern Matching with FFT cross-correlation (Images) [closed]

Hello everyone I am trying to implement patter matching with FFT (cross-correlation) (I am using this https://www.cs.uaf.edu/2007/spring/cs481/lecture/03_29_fft_image.html as reference) The idea of my ...
2
votes
1answer
47 views

Do we need to detrend when do Cross-Correlation between two time series?

I have a group of time series variables and I want to found out the relationship among them. The method I use is to calculate pair-wise correlation between two time series and found out those with ...
2
votes
1answer
94 views

What algorithm can I use to find correlations between events?

I am new to machine learning so I am trying to find some literature but I'm not even sure what to Google for. My data is of the following form: ...
0
votes
0answers
9 views

Event Study Market Model Index Selection

my sample firms are 7 banks of which four are european banks and three american banks. When using the market model in an event study what would be an optimal market index? Also, is it better to use ...
0
votes
0answers
33 views

cross correlation using fft giving unexpexted results

I tried posting this question last week, but since it wasn't answered I decided to rewrite the question with a simpler, more direct format. I am using r to compute the cross correlation between two ...
0
votes
0answers
34 views

Does possible autocorrelation in data affect simple correlations?

I have a question concerning autocorrelation in data affecting correlation coefficients. Consider a time series of stock returns (e.g. 10 trading days) of different stock markets (A, B, C and D) and I ...
1
vote
1answer
57 views

Help needed with correlating two datasets

First cross-validated question so please be gentle :o) I have two datasets all gathered and managed in 'R'... Dataset 1 - News Corpus. Contains 3,270 entries from the period 1/Apr/13 to 31/Mar/14. ...
1
vote
0answers
16 views

CCF time lag in minutes in R

I have data sampled every 5m and I want to estimate the ccf between them, in order to do it I prewhiten the time series x and y and then I apply CCF But lags are not direct related with my sampling ...
2
votes
1answer
63 views

How to calculate the cross correlation between two time series measured at different instants?

I have two time series with measurements of the same type but different stations. I would like to know if the two series are correlated and how much is the "lag" between them. The idea is that in this ...
0
votes
0answers
13 views

Suggestion about: Image based position estimation with cross correlation

I have a image processing project.the process steps are: Take two image from google maps with longitude and latitude Calculate distance between two images from longitude and latitude with haversine ...
2
votes
1answer
45 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 ...
0
votes
0answers
64 views

Calculate cross correlation between two time series when translating one along the time

When calculating cross correlation coefficient between two time series A and B, both being in their time windows of finite lengths, I translate one time series, say B, along the time by each lag, and ...
0
votes
0answers
55 views

Correlating two time series with delay and non-periodic sampling times

I am trying to analyze some data using Matlab. There are two datasets sampled by different sources over time (no fixed sampling frequency). After reading the data I perform a linear interpolation of ...
1
vote
0answers
28 views

Analysing the correlation between two trends

I've got 2 growing trends. One is the input (the number of published articles on a website) and I want to understand if the other appears to be correlated (the number of daily visitors). The problem ...
0
votes
1answer
133 views

Code for detrended cross-correlation in R

I want to code for Detrended Cross Correlation in R for time-series data but I'm still stuck. I don't know why the coefficient is not in range -1 : 1. I try to write following these equation below ...
0
votes
0answers
19 views

Cross spectrum problem

I'm looking for some advice to find the cross-spectrum for this system. $$ y_t= r_t+\epsilon_t$$ $$ r_t=\frac{\theta}{1-\psi z^{-1}}u_t $$ and the input is $$u_t=(1-\gamma z^{-1})w_t $$ ...
1
vote
0answers
33 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: ...
2
votes
1answer
99 views

R Own Implementation of Cross Correlation using Convolution

I try to implement my own cross correlation function in R by translating it as a convolution problem. Part I: So I have two arrays, e.g. two identical arrays, and I want to get the cross correlation ...
2
votes
1answer
67 views

How can I estimate the delay between two non-periodic time series?

I'm wondering what the best way to estimate the delay and confidence between two non-periodic time series would be. Specifically, I thought it would be interesting to look at the different economic ...
2
votes
0answers
50 views

Why and when stationarity is achieved by decomposition rather than differencing in ARIMA model

I would like to understand relationships between variables by which cross-correlation function, that means what is the extent one variable influence the other one. ARMA model is used to fit two ...
0
votes
2answers
175 views

Coefficient for a zero lag cross-correlation different from Pearson correlation r

Reading around I understood that using a cross correlation with lag zero should give the same results of a normal pearson correlation. It happens that this is not the case for me. What could be the ...
0
votes
0answers
20 views

What is the expected Normalized Cross Correlation of one noise signal with another?

I'm attempting to make amendments to a machine vision program that makes use of Normalized Cross Correlation (e.g. as defined at https://siddhantahuja.wordpress.com/tag/normalized-cross-correlation/) ...
2
votes
1answer
239 views

Feature selection for time series data

I am looking for methods for feature selection (or feature extraction) for time series data. Of course I did some research before, but it was not satisfying. I am aware of methods like PCA, ...
1
vote
0answers
16 views

Correction of data using a correlation

Suppose I have measured the outcome variable A using a (psychophysical) test that determines the ability of a subject to discriminate between two stimuli with a certain difference (the variable X). It ...
0
votes
0answers
62 views

how to specify range of lag in prewhiten CCF using package TSA in R

I am doing time series regression using package TSA in R. I have 2 time series, say x and y, so I started by doing prewhitened CCF. So, 2 issues I have encountered and would really appreciate if any ...
4
votes
3answers
127 views

Random variables have non-zero covariance but expected sample covariance is zero? (intuition)

This post asks "why a familiar and widely used estimator of sample covariance has expected value zero, in a situation where the variables involved are characterized by non-zero and equal pair-wise ...
0
votes
0answers
22 views

What normalization factor to use in Inverse Discrete Fourier Transform of Cross-Spectrum?

I have applied the Lomb-Scargle approach to estimating the cross-spectrum of two irregularly sampled time series and I am trying to obtain their cross-correlation by applying the inverse Discrete ...
0
votes
0answers
35 views

similarities between two signal using correlation

let say we have two signal ,there is given their time domain plots and also correlation plot and final correlation plot it should be noted that both signal have same spectral structure,they ...
0
votes
0answers
60 views

Can I use correlation metrics also for time series?

I was using the cross correlation function in R (ccf) until now to discover correlations and lags between two time series. I was wondering if I can use all other ...
0
votes
0answers
12 views

Can the coherency spectrum be used as a substitute for cross-correlation?

I know I could inverse Fourier Transform from the frequency domain to the time domain, but let's say I don't want that. Can I make the same conclusions by using the coherency spectrum just as I would ...
0
votes
1answer
76 views

Similarity between two samples (2D matrices)

I have two matrices: A= 4000x78 where 78 is the dimension of features and 4000 is the number of samples. B= 1000x78 where 78 is the dimension of features and 1000 is the number of samples again. ...
1
vote
1answer
64 views

How to obtain cross-correlation function from cross-spectrum?

I have implemented a piece of code based on the Lomb-Scargle approach for determining the cross-spectrum of two time series. My cross spectrum contains complex numbers and I have used the basic fft ...
0
votes
0answers
16 views

Time series causation and probability

I have a series for an individual that looks like this: There are observations of the individual at random times. At each time they may experience an event and the outcome fo that event is binary ...
0
votes
3answers
166 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 ...
2
votes
1answer
111 views

How do you generate correlated ARMA(1,1) models?

I am interested in generating two ARMA(1,1) time series with a pre-defined cross-correlation p between x(t) and y(t). If you could please provide the mathematical framework and the code in R for ...
1
vote
1answer
79 views

How to Determine whether Simulation Draws are Correct

I have implemented algorithm 1 and 2 in this paper http://www.lse.ac.uk/statistics/documents/researchreport61.pdf for the analysis/simulation hidden states for some time series. The reason why I am ...
3
votes
1answer
183 views

How to synchronize two signals using FFT in R?

I have two signals that I want to synchronize. I could achieve this by doing a cross-correlation using the ccf function and finding the lag time at which the ...
0
votes
0answers
16 views

Cross correlation using photographic film

I used to work for a guy who told me about working for an oil company, probably in the 1960's, doing cross correlation work by sliding two pieces of developed film strips across each other (maybe they ...
2
votes
0answers
59 views

How to estimate the percent of the variation of a time series explained by another time series (non-stationary)?

I've been learning about time series analysis because I want to understand how much groundwater level changes in an aquifer affect land subsidence (land sinking). I have two time series: (1) ...
0
votes
0answers
155 views

Hayashi yoshida estimator for correlation not coming between -1 to 1

I took two time series data with 141 data points in total with time stamps. i found out actual correlation between them which is about 0.97. Now i find the Hayashi Yoshida estimator for correlation. ...