variance of a portfolio with n assets

numbered list in apa 7th edition