Portfolio Variance of a Portfolio of N Assets in Python Portfolio Variance of a Portfolio of N Assets in Python numpy numpy