Calculate the average % two stocks are correlated

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 comentario

CR
CR el 4 de Sept. de 2011
Questions are not duplicated. One is to test for cointegration and the other is to test for correlation.

Iniciar sesión para comentar.

Respuestas (1)

David Young
David Young el 1 de Sept. de 2011

0 votos

corrcoeff, perhaps, if you don't want to introduce the possibility of time lags between the stock price sequences.

Etiquetas

Preguntada:

CR
el 1 de Sept. de 2011

Community Treasure Hunt

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

Start Hunting!

Translated by