This free programming book presents the mathematical theory of portfolio modeling in financial mathematics as a coherent whole, with justifications for each step.
Capital market theory and mean-variance portfolio analysis are among the subjects. The book includes a lot of examples and solutions. For portfolio analysis, linear algebra is employed as a basis rather than calculus; this more conceptual approach helps to avoid laborious calculations.