# Lecture 4: Linear Algebra (cont.); Probability Theory

Source: https://www.youtube.com/watch?v=mtXTs2U1uMA
Recap page: https://rapidrecap.app/video/mtXTs2U1uMA
Generated: 2025-12-03T16:11:00.537+00:00

---
## Quick Overview

The lecture concludes the discussion on linear algebra, covering the diagonalization of matrices using eigenvectors, the utility of singular value decomposition (SVD) for dimensionality reduction, and the Perron-Frobenius theorem for positive matrices, before transitioning into a review of probability theory fundamentals including random variables, moments, Gaussian distributions, and multivariate concepts like covariance matrices and principal components analysis.

**Key Points:**
- Eigenvectors and eigenvalues allow for the diagonalization of a matrix A into the form A = S λ S inverse, where λ is a diagonal matrix of eigenvalues.
- The Singular Value Decomposition (SVD) expresses any matrix A as U D V transpose, which is useful for data analysis as it allows for dimensionality reduction, potentially limited to the rank of A.
- The Perron-Frobenius theorem applies to square matrices with strictly positive elements, guaranteeing a real eigenvalue (λ0) larger in magnitude than any other, with a corresponding eigenvector having all positive elements.
- In probability theory, the Cumulative Distribution Function (CDF), F_x(c) = P(x ≤ c), uniquely specifies a distribution and a monotone transform of a random variable x leads to a uniform distribution via the probability integral transform.
- The variance of a random variable is calculated as the average of the square minus the square of the average, and standardization (z = (x - μ)/σ) yields variables with mean 0 and variance 1.
- For two random variables X and Y, zero correlation does not imply independence; however, the covariance matrix (σ) of a random vector X represents the structure of pairwise covariances.
- Principal Components Analysis (PCA) uses the eigenvectors (γi) and eigenvalues (λi) of the covariance matrix (σ) to transform data into uncorrelated variables (principal components) whose variability decreases according to the ordered eigenvalues.

**Context:** Peter Kempthorne leads this lecture, continuing topics from linear algebra and introducing foundational concepts in probability theory relevant to quantitative analysis, likely in finance given the later examples. The lecture reviews how matrix decompositions, like those involving eigenvalues and eigenvectors, simplify state transition equations (e.g., in Kalman filters) and how SVD aids in data reduction. The transition to probability covers discrete versus continuous random variables, key distribution functions, moments, Gaussian properties, and culminates in multivariate analysis techniques such as covariance matrices and Principal Components Analysis (PCA).

## Detailed Analysis

The lecture begins by revisiting eigenvalues and eigenvectors, noting that matrix multiplication simplifies to rescaling when using eigenvectors, and that the relationship A = S λ S inverse diagonalizes matrix A, provided eigenvectors are linearly independent. The Singular Value Decomposition (SVD) is introduced as a factorization A = U D V transpose, useful for data analysis because it allows representation as a sum of rank 1 terms and facilitates dimensionality reduction by focusing on the rank 'r' non-zero singular values. Linear algebra concludes with the Perron-Frobenius theorem, which guarantees a dominant real eigenvalue for matrices with positive elements. The focus then shifts to probability theory, distinguishing between discrete and continuous random variables and emphasizing the Cumulative Distribution Function (CDF) as a unique specifier of distribution. The probability integral transform converts any distribution to a uniform distribution via a monotone transformation. Moments, including variance (calculated as E[x^2] - (E[x])^2), skewness, and kurtosis, are defined, with Gaussian distributions reviewed, noting their properties like 68-95-99.7% rules within 1, 2, and 3 standard deviations. The lognormal distribution is discussed as a way to model positive asset prices by taking the exponential of a normal variable. Furthermore, the lecture covers the transformation of random variables, deriving the lognormal density using the change of variables formula involving the inverse CDF. In multivariate probability, independence is defined by the factorization of the joint density, and the covariance matrix (σ) is defined for a random vector X as E[(X - μ)(X - μ) transpose]. This leads directly into Principal Components Analysis (PCA), which diagonalizes the symmetric, positive semidefinite covariance matrix σ into orthogonal eigenvectors (γi) corresponding to ordered, non-negative eigenvalues (λi), effectively transforming data into uncorrelated variables with decreasing variance.

### Linear Algebra Review

- Eigenvalues and Diagonalization: Matrix A multiplied by eigenvector V is simple rescaling: A V = λ V
- A diagonalizes to S λ S inverse if eigenvectors form S
- Eigenvectors are orthogonal for distinct eigenvalues of a real symmetric matrix.

### Singular Value Decomposition (SVD)

- Any matrix A can be expressed as U D V transpose where U and V are orthogonal and D is diagonal
- SVD allows reduction of dimensionality by only considering the rank 'r' non-zero diagonal entries.

### Perron-Frobenius Theorem

- States that for square matrices with strictly positive elements, there exists a real eigenvalue λ0 larger in magnitude than all others, with a corresponding eigenvector whose elements are all positive.

### Probability Fundamentals

- Discrete vs Continuous variables are distinguished
- CDF F_x(c) = P(x ≤ c) uniquely specifies distribution
- Probability integral transform maps any distribution to uniform via monotone transformation.

### Moments and Gaussian Models

- Variance is E[x^2] - (E[x])^2
- Standardized variable z has E[z]=0, Var(z)=1
- Gaussian density has inflection points at ±σ from mean μ
- Lognormal distribution models asset prices by exponentiating a normal variable.

### Multivariate Probability and Covariance

- Independence means joint probability factors into marginal products
- Covariance matrix σ for vector X is E[(X - μ)(X - μ) transpose]
- Variance of portfolio Y = A transpose X is A transpose σ A.

### Principal Components Analysis (PCA)

- PCA utilizes the eigenvectors (γi) and eigenvalues (λi) of the covariance matrix σ
- Principal component variables P have mean 0 and an uncorrelated covariance matrix equal to the diagonal matrix Λ (eigenvalues).

