I have a portfolio of long/short positions in stocks. I would like to calculate the portfolio correlation. Should I somehow account for the short position while calculating the portfolio correlation? I am using formula a) from here.
Would be grateful for help!