Correlation of two variables over time: can this happen?
Mostra commenti meno recenti
I have a variable x1 and x2 between January 1 till December 31. When I calculate the correlation between Janaury and June it is positive. When I calculate the correlation between July to December it is positive. But the correlation between Janauary and December is negative. Can it happen?
1 Commento
Matt Gaidica
il 17 Dic 2020
Yes. However, you probably want to perform a statistical test to determine if the fluctuating correlation is significant.
Risposta accettata
Più risposte (1)
Matt Gaidica
il 17 Dic 2020
Modificato: Matt Gaidica
il 17 Dic 2020
1 voto
Sure, it can happen. What's your concern about it?

4 Commenti
alpedhuez
il 17 Dic 2020
alpedhuez
il 17 Dic 2020
Image Analyst
il 17 Dic 2020
For a thorough explanation see the Wikipedia link in the Cyclist's answer below. (He beat me to it, posting this fun paradox.)
It would be interesting for us to know what real world measurements x1 and x2 are so we can see a real world situation that gives rise to this parabox. What do x1 and x2 represent?
Categorie
Scopri di più su Gaussian Process Regression in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
