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.(adsbygoogle = window.adsbygoogle || []).push({});

Looking for formula or a MATLAB function :)

**Physics Forums | Science Articles, Homework Help, Discussion**

Dismiss Notice

Join Physics Forums Today!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Correlation Coefficent

Tags:

**Physics Forums | Science Articles, Homework Help, Discussion**