This document introduces concepts related to investment portfolios including mean, variance, covariance, and matrix algebra. It discusses how to calculate the mean, variance, and covariance of random variables and how these concepts apply to portfolio optimization. Specifically, it explains how to calculate the variance and expected return of a portfolio using covariance matrices and weight vectors. The document also provides examples of generating random portfolios and plotting the efficient frontier.