Correlation coefficient finding software or website?
Posted: Fri Nov 05, 2021 10:19 pm
OK, here is the hypothetical situation:
Say I have four asset classes and I want to find the exact blend of them that is closest in returns on a monthly basis (i.e. has the highest correlation to the fifth asset) to another asset class (or closest to inflation, or closest to the price of oil, etc....basically finding the blend that has the highest monthly coefficient vs the other asset or other return series). Let's call the fifth asset class "Asset Class X" for purposes of discussion. What I am looking for is something that will automatically look over the monthly returns for the four asset classes (or three, or five, or six asset classes) and calculate the exact blend of said asset classes that has the highest monthly correlation to the other asset class (Asset Class X) in question. Is there any website (whether free or paid) that can do this, or any macro (again, whether free or one that costs money) that can be downloaded for Excel or LibreOffice that can do this?
Note that I am fully aware that PortfolioVisualizer (and for that matter Excel or LibreOffice) can calculate correlation coefficients for a given set of return serieses (series? series's? I'm not sure exactly what the correct plural of series is). That is NOT what I am looking for. The problem with using Excel/LibreOffice/PV is that I would have to input the monthly returns for the asset classes, average them for each month (or each year if annually rebalanced), and then when I had calculated the average returns for the blend of these assets then Excel/LibreOffice/PV could tell me what the correlation of said blend was to Asset Class X. Then if I wanted to see if I could get the correlation coefficient any higher (i.e. any closer to a "1" which would be a perfect correlation) I would have to MANUALLY change the blend of the four assets in question; on top of that, there are--assuming I am working with asset class weightings as low as hundredths of a percent which is pretty standard--literally MILLIONS upon millions of potential blends and if I had to input and test them all manually one by one in the software it would take years if not decades.
In sum, what I am basically looking for is something like this:
Say I have four asset classes (let's call them A, B, C, and D) and I want to find out the exact blend that has the highest correlation to another asset class (call it Asset X). I want something that when I put in the returns four all four asset classes and then tell it "find the blend (either the monthly rebalanced blend or the annually rebalanced blend) of asset classes A, B, C, and D that has the highest correlation of its monthly returns to asset class X" it will take the numbers and data (i.e. the monthly return series data for all the asset classes), run the millions of potential blends of all four asset classes in its software brain, and spit out a result something like this:
The blend of the four asset classes you provided (A, B, C, and D) that has the highest monthly return correlation to asset class X is as follows:
Asset Class A: 19.57%
Asset Class B: 32.10%
Asset Class C: 43.64%
Asset Class D: 4.69%
Is there actually anything that can do this or am I asking the impossible?
Say I have four asset classes and I want to find the exact blend of them that is closest in returns on a monthly basis (i.e. has the highest correlation to the fifth asset) to another asset class (or closest to inflation, or closest to the price of oil, etc....basically finding the blend that has the highest monthly coefficient vs the other asset or other return series). Let's call the fifth asset class "Asset Class X" for purposes of discussion. What I am looking for is something that will automatically look over the monthly returns for the four asset classes (or three, or five, or six asset classes) and calculate the exact blend of said asset classes that has the highest monthly correlation to the other asset class (Asset Class X) in question. Is there any website (whether free or paid) that can do this, or any macro (again, whether free or one that costs money) that can be downloaded for Excel or LibreOffice that can do this?
Note that I am fully aware that PortfolioVisualizer (and for that matter Excel or LibreOffice) can calculate correlation coefficients for a given set of return serieses (series? series's? I'm not sure exactly what the correct plural of series is). That is NOT what I am looking for. The problem with using Excel/LibreOffice/PV is that I would have to input the monthly returns for the asset classes, average them for each month (or each year if annually rebalanced), and then when I had calculated the average returns for the blend of these assets then Excel/LibreOffice/PV could tell me what the correlation of said blend was to Asset Class X. Then if I wanted to see if I could get the correlation coefficient any higher (i.e. any closer to a "1" which would be a perfect correlation) I would have to MANUALLY change the blend of the four assets in question; on top of that, there are--assuming I am working with asset class weightings as low as hundredths of a percent which is pretty standard--literally MILLIONS upon millions of potential blends and if I had to input and test them all manually one by one in the software it would take years if not decades.
In sum, what I am basically looking for is something like this:
Say I have four asset classes (let's call them A, B, C, and D) and I want to find out the exact blend that has the highest correlation to another asset class (call it Asset X). I want something that when I put in the returns four all four asset classes and then tell it "find the blend (either the monthly rebalanced blend or the annually rebalanced blend) of asset classes A, B, C, and D that has the highest correlation of its monthly returns to asset class X" it will take the numbers and data (i.e. the monthly return series data for all the asset classes), run the millions of potential blends of all four asset classes in its software brain, and spit out a result something like this:
The blend of the four asset classes you provided (A, B, C, and D) that has the highest monthly return correlation to asset class X is as follows:
Asset Class A: 19.57%
Asset Class B: 32.10%
Asset Class C: 43.64%
Asset Class D: 4.69%
Is there actually anything that can do this or am I asking the impossible?