Chapter 1 Portfolio Theory with Matrix Algebra