Calculate Correlation Coefficient of X & Y - MATLAB

  • Context: MATLAB 
  • Thread starter Thread starter Tone L
  • Start date Start date
  • Tags Tags
    correlation
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
Tone L
Messages
72
Reaction score
7
Hello I have to variables X and Y, 50,000 in each row (a time series of 2 years). I am curious how to calculate a linear correlation between the two, for example if X decreases does Y increase or decrease.

Looking for formula or a MATLAB function :)
 
Physics news on Phys.org