Skip to content
Calculus II: Vector Calculus and Multivariable Analysis / Vectors and Curves in Space

The Dot Product: Angles, Projections, and Correlation

The Pearson correlation between two return series is the dot product of their standardised versions. This is not a metaphor — it is the mathematical definition. Understanding the dot product geometrically as a measure of "how parallel" two vectors are translates directly into understanding why diversification reduces portfolio risk (uncorrelated assets have zero dot product), why high-correlation portfolios concentrate rather than hedge (near-parallel vectors), and why the covariance matrix entry Σij\Sigma_{ij} measures co-movement in the direction of joint returns. Everything in risk and portfolio theory that involves "correlation" is, at its core, a dot product.

Learning objectives. By the end of this note you should be able to:
  • compute the dot product v⋅w\mathbf{v} \cdot \mathbf{w} algebraically (componentwise) and verify its basic algebraic properties (commutativity, distributivity, homogeneity);
  • state and apply the geometric formula v⋅w=∥v∥∥w∥cos⁡θ\mathbf{v} \cdot \mathbf{w} = \|\mathbf{v}\|\|\mathbf{w}\|\cos\theta to find angles between vectors;
  • characterise orthogonality (v⋅w=0\mathbf{v} \cdot \mathbf{w} = 0) and parallelism (∣v⋅w∣=∥v∥∥w∥|\mathbf{v} \cdot \mathbf{w}| = \|\mathbf{v}\|\|\mathbf{w}\|) in terms of the dot product;
  • state and use the Cauchy–Schwarz inequality ∣v⋅w∣≤∥v∥∥w∥|\mathbf{v} \cdot \mathbf{w}| \le \|\mathbf{v}\|\|\mathbf{w}\|;
  • compute the projection of v\mathbf{v} onto w\mathbf{w} and decompose v\mathbf{v} into a component parallel to w\mathbf{w} and a component orthogonal to w\mathbf{w};
  • explain Pearson correlation as a normalised dot product.

In this lesson

    1. The Dot Product: Definition and Algebraic Rules
    1. The Geometric Formula: Angles
    1. Orthogonality, Parallelism, and Cauchy–Schwarz
    1. Projection
    1. Direction Cosines
    1. Correlation as a Normalised Dot Product

Before you start

The full lesson, with worked examples and exercise solutions, is for members.

Read the full lesson

New to SelfMadeQuant.com? See membership options or explore the curriculum.