Tested tool guide
Tested browser tools
Checked August 16, 2026
What Portfolio Correlation Matrix Builder does, with a checked example
A correlation matrix shows how much each pair of assets in your portfolio moves together, measured as the Pearson correlation of their return series, from -1 (moving in opposite directions) to +1 (moving together). The tool renders that matrix as a color-coded heat map, condenses the pairwise values into a single diversification score, and plots an efficient frontier of weight combinations. The surprise for most users: the numbers are a historical average, not a promise. Correlations measured in calm markets drift upward during selloffs, so a matrix built on quiet years will understate how your assets behave in a crash.
Worked example
A concrete input and expected output from the current implementation.
Input
Asset A monthly returns (%): 4, -2, 5, 1. Asset B monthly returns (%): 3, -1, 4, 2.
->
Expected output
Correlation matrix (rounded to 2 decimals):
A B
A 1.00 0.98
B 0.98 1.00
Both off-diagonal cells land at the hot end of the heat map scale. Diversification score: at the poor end, since the only pair in this two-asset portfolio moves almost in lockstep. Both series average 2% a month. The summed products of the deviations from those means is 20, and the summed squared deviations are 30 and 14, so the Pearson coefficient is 20 / sqrt(30 x 14) = 0.98. The diagonal is 1.00 by definition; the off-diagonal 0.98 says the two assets moved almost in lockstep over these four months, so pairing them adds little diversification.