Clear Filters
Clear Filters

Calculate the average % two stocks are correlated

1 view (last 30 days)
I am trying to calculate the average % two stock prices are correlated. I am a new to matlab and am wondering what would be the best function to use?
  1 Comment
CR
CR on 4 Sep 2011
Questions are not duplicated. One is to test for cointegration and the other is to test for correlation.

Sign in to comment.

Answers (1)

David Young
David Young on 1 Sep 2011
corrcoeff, perhaps, if you don't want to introduce the possibility of time lags between the stock price sequences.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!