Investment portfolio analysis and diversification