Automated shifting correlation test

AI Thread Summary
The discussion focuses on testing the correlation between two datasets with various shifts, specifically using automated methods in R or SAS. The term "cross correlations" in time series analysis is highlighted, with the R function 'ccf' recommended for this purpose. Participants suggest searching for resources on "cross correlation time series" for broader guidance. The original poster expresses satisfaction after experimenting with sine and cosine functions in R and acknowledges potential applications in their work. The conversation emphasizes the importance of foundational knowledge in statistical analysis for practical applications.
austinboston
Messages
2
Reaction score
0
Hello everyone I'm new here:

So I was about to write some SAS or R to do the following, but now I'm getting old enough to realize most things I think of were thought of before (usually by people way smarter than me). I've done some googling, but I haven't found the golden answer yet.

I'd like to test correlation between two data sets but I want to test a ton of "shifts" between the two sets. I want to automatically play with the lead and lag of the two sets and look at some sort of clever graphical representation of the relationships.

If anyone out there can point me to some R/SAS functions that is great, but even better would be the 10,000 foot guide of the basics for this type of question. The high level type guidance is usually what I have trouble googling up, instead I usually get too specialized information.

Thanks,
Austin
 
Physics news on Phys.org
austinboston said:
Hello everyone I'm new here:

So I was about to write some SAS or R to do the following, but now I'm getting old enough to realize most things I think of were thought of before (usually by people way smarter than me). I've done some googling, but I haven't found the golden answer yet.

I'd like to test correlation between two data sets but I want to test a ton of "shifts" between the two sets. I want to automatically play with the lead and lag of the two sets and look at some sort of clever graphical representation of the relationships.

If anyone out there can point me to some R/SAS functions that is great, but even better would be the 10,000 foot guide of the basics for this type of question. The high level type guidance is usually what I have trouble googling up, instead I usually get too specialized information.

Thanks,
Austin

Hi Austin,

Yeah, you're right, I think most of us have been in the situation "Oh! My God! I just invented the wheel!" :smile:

What you describe is called cross correlations in time series and the function for this in R is named ccf

About the guide, just search for 'cross correlation time series' and you will find tons.

PS: Just guessing, but If you intend you get rich with this in the stock market just save your money and thank me later :-p
 
viraltux said:
Hi Austin,

Yeah, you're right, I think most of us have been in the situation "Oh! My God! I just invented the wheel!" :smile:

What you describe is called cross correlations in time series and the function for this in R is named ccf

About the guide, just search for 'cross correlation time series' and you will find tons.

PS: Just guessing, but If you intend you get rich with this in the stock market just save your money and thank me later :-p

That was what I needed, thanks. I had some fun playing with sin & cos cross correlation in R to get my feet wet. Ha, this idea did come to me while in a conversation about the stock market, but I think I have a problem at work I can use this for as well. Thanks again.
 
I was reading a Bachelor thesis on Peano Arithmetic (PA). PA has the following axioms (not including the induction schema): $$\begin{align} & (A1) ~~~~ \forall x \neg (x + 1 = 0) \nonumber \\ & (A2) ~~~~ \forall xy (x + 1 =y + 1 \to x = y) \nonumber \\ & (A3) ~~~~ \forall x (x + 0 = x) \nonumber \\ & (A4) ~~~~ \forall xy (x + (y +1) = (x + y ) + 1) \nonumber \\ & (A5) ~~~~ \forall x (x \cdot 0 = 0) \nonumber \\ & (A6) ~~~~ \forall xy (x \cdot (y + 1) = (x \cdot y) + x) \nonumber...
Back
Top