ACCFIN5277 Chap.6 Vectors, Norms and Inner Products
Vectors, Norms and Inner Products
Vectors, Norms and Inner Products introduces the notation that the statistics half of the course is written in. A vector gathers a list of numbers, such as the quantities traded in several commodities or their prices, under one bold symbol, and by convention it is read as a column. Vectors of equal size add and subtract entry by entry and obey the same axioms as ordinary arithmetic.
The transpose turns a column into a row, which makes the inner product possible: a row times a column of matching length, giving a single number. That one operation turns holdings and prices into a portfolio value, and weights and returns into a portfolio return. The Euclidean norm, the square root of a vector's inner product with itself, measures length and is never negative.
A zero inner product signals orthogonality, and a set of vectors is linearly dependent when one member can be rebuilt from the others. The chapter closes with functions of vectors, separating mappings that return a vector from those that return one number, and shows how expectation applies to a whole sample vector at once.
What this chapter covers
- 01
Column vectors, elements and dimension
- 02
Element-wise addition, subtraction and the axioms
- 03
Transpose and the inner product
- 04
Conformity of dimensions
- 05
Euclidean norm and orthogonality
- 06
Linear independence and functions of vectors
Worked example · free
Compute a portfolio return as an inner product
- 1Set w = (0.5, 0.3, 0.2)' and r = (0.08, 0.05, -0.02)'; both are 3 x 1, so w'r is 1 x 1.
- 2w'r = 0.5(0.08) + 0.3(0.05) + 0.2(-0.02) = 0.040 + 0.015 - 0.004 = 0.051, a portfolio return of 5.1%.
- 1The norm of r is the square root of 0.0064 + 0.0025 + 0.0004 = 0.0093, which is about 0.0964.
Key terms
- Column vector
- An ordered list of n numbers arranged in a single column, the default orientation in the course notes.
- Euclidean norm
- The length of a vector, equal to the square root of the sum of its squared entries.
- Orthogonal vectors
- Two vectors whose inner product is zero, which places them at right angles.
- Linear dependence
- The situation in which some weighted sum of a set of vectors, with not all weights zero, equals the null vector.
Vectors, Norms and Inner Products FAQ
What is the difference between an inner and an outer product?
Both multiply entries of two vectors, but the inner product transposes the first vector and adds the products into one number, while the outer product transposes the second and keeps every pairing in a square matrix. In finance the inner product gives totals such as portfolio value; the outer product appears later when building covariance-style tables.
Why must the dimensions conform before multiplying?
A product of a row and a column only exists when the row length equals the column length, because each entry needs a partner. Writing the sizes underneath, such as (1 x n) followed by (n x 1), shows instantly whether the product is defined and what size it will be, which also prevents shape errors when the same step is coded.
Can a vector norm ever be negative?
No. The norm is the square root of a sum of squares, so for real vectors it is zero or positive. It equals zero only for the null vector, whose entries are all zero. A negative norm in your output therefore signals a coding or algebra error, often a missing square or a sign carried into the root.
How do I tell whether two vectors are linearly independent?
Look for a non-zero multiple of one that reproduces the other. If (6, 9) equals three times (2, 3), the pair is dependent; if no single multiple works, as with (2, 3) and (3, 2), the pair is independent. For larger sets, the matrix rank tests covered in the next chapter give a faster answer.
Why does the course write expectations with vectors?
Treating a sample of n observations as one vector lets the expectation operator act on every entry at once. Each element has the same population mean, so the expected vector is that mean times the one vector. This compact notation is what makes regression formulas and portfolio statistics short enough to manipulate and to code.
Assessment move
Draw every two-dimensional example on squared paper first: plot the vectors, add them tip to tail and check the coordinates against your arithmetic. Then move to three or more dimensions and rely on dimension labels instead of pictures. Practise rewriting sums such as total expenditure as inner products, and back again, until the translation is automatic.
Finally, reproduce each hand result with NumPy, using the at sign for inner products and the norm function for length, and confirm the two agree to four decimals. Keep those checks in your function library.
Working through Vectors, Norms and Inner Products in ACCFIN5277? Sia is AskSia’s AI Finance tutor — ask any ACCFIN5277 Vectors, Norms and Inner Products question and get a clear, step-by-step explanation grounded in how ACCFIN5277 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.