Glossary

Vectors and matrices

A scalar is one number, a vector a column of numbers, a matrix a grid — a portfolio is a weighted sum of return vectors, and portfolio variance is a quadratic form with the covariance matrix.

What it is

A scalar is one number (today\u2019s return on one name). A vector is numbers in a column (weights, or one day\u2019s returns across names). A matrix of size stacks days of series (Strang). Addition combines like-shaped objects. Multiplication applies weights. Transpose swaps rows and columns.

Worked example

Weights , day\u2019s returns . Then (0.5%). A 252\u00D710 matrix is a year of daily returns for ten names. Risk for that book is not the average of ten variances; it is .

Markdown snapshot for AI agents