Skip to content

Linear transformation

A linear transformation preserves addition and scaling. Follow a holdings-to-factor-exposure map, interpret its matrix columns and units, and distinguish affine offsets and nonlinear risk.

A linear transformation, or linear map, is a rule between vector spaces that preserves addition and scalar multiplication. Combining two inputs and then applying the rule gives the same result as transforming each input and combining the outputs. On a risk desk, this lets instrument holdings become a vector of factor exposures: two books can be aggregated before or after their exposures are calculated, provided both use the same fixed loadings.

For a real linear map T:V→WT:V\to W, the requirements are

T(u+v)=T(u)+T(v),T(cu)=cT(u)T(\mathbf{u}+\mathbf{v})=T(\mathbf{u})+T(\mathbf{v}), \qquad T(c\mathbf{u})=cT(\mathbf{u})
for every input pair and every real scalar cc, including zero and negative values. These properties are called additivity and homogeneity. Together they imply that TT preserves any linear combination:
T(au+bv)=aT(u)+bT(v).T(a\mathbf{u}+b\mathbf{v})=aT(\mathbf{u})+bT(\mathbf{v}).

A quick necessary check is T(0)=0T(\mathbf{0})=\mathbf{0}. It is not sufficient: squaring a scalar sends zero to zero but fails homogeneity because (2q)2=4q2(2q)^2=4q^2, rather than 2q22q^2. A few successful numerical tests cannot establish the universal identity; one failed test can refute it.

Turning holdings into exposures

Consider two fictional instruments, A and B, and two return factors. At one market snapshot, their fixed sensitivity matrix is

B=(10.502),e=T(x)=Bx.B=\begin{pmatrix}1&0.5\\0&2\end{pmatrix}, \qquad \mathbf{e}=T(\mathbf{x})=B\mathbf{x}.
Columns are instruments A, B; rows are factors 1, 2. The input x=(x1,x2)⊤\mathbf{x}=(x_1,x_2)^\top gives signed holdings in lots. The output e=(e1,e2)⊤\mathbf{e}=(e_1,e_2)^\top gives sensitivities in thousand USD per percentage-point move, abbreviated kUSD/pp. Each matrix entry therefore has units kUSD/(pp·lot). Here one pp means a factor return change from, for example, 0% to 1%, rather than a decimal return of 1.
Fixed sensitivity per lotInstrument AInstrument B
Factor 1, kUSD/(pp·lot)10.5
Factor 2, kUSD/(pp·lot)02

Holding two lots of A and three lots of B produces

B(23)=(1(2)+0.5(3)0(2)+2(3))=(3.56)kUSD/pp.B\begin{pmatrix}2\\3\end{pmatrix} =\begin{pmatrix}1(2)+0.5(3)\\0(2)+2(3)\end{pmatrix} =\begin{pmatrix}3.5\\6\end{pmatrix} \quad\text{kUSD/pp}.
The row calculation adds contributions to the same factor sensitivity, in compatible units. The column calculation tells the portfolio story:
2(10)+3(0.52)=(20)+(1.56)=(3.56).2\begin{pmatrix}1\\0\end{pmatrix} +3\begin{pmatrix}0.5\\2\end{pmatrix} =\begin{pmatrix}2\\0\end{pmatrix} +\begin{pmatrix}1.5\\6\end{pmatrix} =\begin{pmatrix}3.5\\6\end{pmatrix}.

Thus the two single-instrument books have exposure vectors (2,0)(2,0) and (1.5,6)(1.5,6); adding the books produces their sum. Doubling the holdings to (4,6)(4,6) doubles exposures to (7,12)(7,12). Reversing all holdings gives (−3.5,−6)(-3.5,-6), and an empty book gives (0,0)(0,0). These illustrate the rule. The proof for arbitrary inputs comes from matrix distributivity:

B(au+bv)=aBu+bBv.B(a\mathbf{u}+b\mathbf{v})=aB\mathbf{u}+bB\mathbf{v}.
A synthetic fixed loading map sends holdings of 2 lots of A and 3 lots of B to factor sensitivities of 3.5 and 6 thousand USD per percentage point. Dashed contribution arrows show holdings (2,0) and (0,3) becoming exposures (2,0) and (1.5,6), which add to the blue total.
A synthetic fixed loading map sends holdings of 2 lots of A and 3 lots of B to factor sensitivities of 3.5 and 6 thousand USD per percentage point. Dashed contribution arrows show holdings (2,0) and (0,3) becoming exposures (2,0) and (1.5,6), which add to the blue total.
Original synthetic example. The left axes measure holdings in lots; the right axes measure factor sensitivities in kUSD/pp. Arrow lengths across the two panels are not a measure of economic risk.
This map aggregates sensitivities, not realised profit. With factor changes measured in pp, the first-order P&L estimate is ΔV≈e1Δf1+e2Δf2\Delta V\approx e_1\Delta f_1+e_2\Delta f_2 in kUSD. Fixed position sensitivities add exactly under the model; using them to estimate P&L over a finite market move is a local approximation. Option curvature, changing sensitivities and omitted factors can make that approximation inaccurate.

Why the columns determine the rule

Every fixed m×nm\times n matrix defines a linear map from Rn\mathbb{R}^n to Rm\mathbb{R}^m. Conversely, once input and output bases are chosen, every linear map between finite-dimensional spaces has a matrix representation. Column jj records the output coordinates obtained from input basis vector jj. All other outputs follow by linear combination.
A map need not be square or invertible. Several instruments might map to fewer reported factors, and a nonzero holding vector in the null space produces zero of those measured exposures. That alone says nothing about its cost, unmeasured risks or whether it is an arbitrage. A projection can discard a direction; the zero map discards all directions and is still linear.

The input and output also need not describe the same kind of object. Our BB converts instrument holdings into factor sensitivities. A change of basis, by contrast, changes coordinates for the same underlying vector. Identical matrix notation does not make those interpretations interchangeable.

Where linearity stops

An affine rule F(x)=Bx+bF(\mathbf{x})=B\mathbf{x}+\mathbf{b} includes a fixed offset. If b≠0\mathbf{b}\ne\mathbf{0}, then F(0)=bF(\mathbf{0})=\mathbf{b} and the map is not linear: adding two separately transformed books counts the offset twice. For example, a report of existing book exposure plus trade exposure is affine in the new trade holdings. Subtracting the fixed existing exposure leaves a linear map of the trade increment.
A linear exposure map does not make every downstream calculation linear. A quadratic position cost scales by four when a position doubles. With a fixed covariance matrix, portfolio variance is quadratic in holdings; volatility scales by the absolute leverage factor, so reversing a book does not negate its volatility. Neither is a linear map of signed holdings. Execution prices that depend on trade size can also invalidate fixed-coefficient cost calculations.

Finally, linearity is a property of the rule on a vector space. Long-only, integer-lot or budget constraints can restrict admissible portfolios without changing the algebraic exposure rule. The feasible holdings themselves may fail to form a vector space. Keep the model, its permitted inputs and its economic interpretation separate.

For a fuller treatment of the definition, rotations, projections and counterexamples, read Linear Transformations: Definition and Examples. To construct representations in different bases, continue to The Matrix of a Linear Transformation and Change of Basis. Both offer public previews; full lessons require membership.

Sources

Last updated
  • linear algebra
  • linear maps
  • factor exposures
  • superposition
  • matrix vector product
← Back to the glossaryBack to top ↑