Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 73275

How do I calculate average pairwise correlation?

$
0
0
Dear all,
Hi, I have a dataset, where P_(i,j,t) is the stock price of firm i in sector j at time t.
I am interested in,
1. calculating average pairwise correlation of stock prices between firms in the same sector;
2. calculating average pairwise correlation of stock prices between firms in two different sectors.
I feel like there must be an efficient way of doing this, but I'm not aware of it. I'd really appreciate your guidance. Thank you!

Best,
John

Viewing all articles
Browse latest Browse all 73275


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>