Mathematics / Cholesky Decomposition
FREE TO EXPLORE
LABORATORY 13 · MATHEMATICS

Cholesky Decomposition lab report

A worked cholesky decomposition lab report with iteration data tables, logarithmic graphs, calculations, uncertainty and conclusions.

WORKED EXAMPLE · BENCHMARK OBSERVATIONS

A complete example laboratory report.

Simulated demonstration data.

This report illustrates formal numerical analysis, iteration tracking, and convergence rate extraction. Replace its observations with your own computational telemetry when preparing a practical submission.

Student: __________________Student ID: __________________Course: __________________Date: __________________Partner: __________________Instructor: __________________

1. Title and aim

Cholesky LLᵀ Factorization of Symmetric Positive-Definite Matrices. Factorize symmetric positive-definite covariance and stiffness matrices A into lower-triangular factor L (A = LLᵀ) using the Cholesky-Banachiewicz algorithm, evaluate Sylvester's criterion on leading principal minors, and extract the half-cost operational constant C = 1/3 ≈ 0.333 FLOPs/n³ via ordinary least-squares regression.

2. Abstract

Six computational trials were executed across standardized inputs n = 10.0 to n = 60.0 for Cholesky LLᵀ Factorization of Symmetric Positive-Definite Matrices. An ordinary least-squares regression yielded an empirical Cholesky Efficiency Factor C of 0.333 (difference from theoretical reference = 0.1003%). The empirical telemetry conclusively validates the theoretical model and complexity scaling with R² = 1.000000.

3. Apparatus and fixed settings

4. Theory and graph choice

Cholesky decomposition—invented in 1910 by the French artillery officer and geodesist Major André-Louis Cholesky for the triangulation and mapping of Crete and published posthumously in the Bulletin Géodésique in 1924 by his fellow officer Commandant Benoit—is one of the most elegant and computationally efficient algorithms in all of applied mathematics. In engineering, physics, and data science, matrices describing physical equilibria, energy states, or statistical correlations are rarely arbitrary: they almost invariably possess the special mathematical structure of being symmetric positive-definite (SPD). A matrix A is symmetric if A = Aᵀ, and positive-definite if the quadratic energy functional xᵀAx is strictly positive for all non-zero vectors x. Major Cholesky discovered that any real SPD matrix can be factored uniquely into the product of a lower-triangular matrix L with strictly positive diagonal entries and its own transpose: A = LLᵀ. The mathematical implications of this symmetry are profound. First, because the upper factor is simply the transpose of the lower factor (U = Lᵀ), the algorithm only needs to compute and store half of the matrix elements, reducing memory consumption by 50%. Second, counting floating-point operations reveals that Cholesky factorization requires exactly ∑ 2(n − j)j ≈ (1/3)n³ FLOPs—exactly half the computational cost of general LU decomposition ((2/3)n³ FLOPs). Third, and most remarkably, Cholesky factorization is unconditionally numerically stable without any pivoting whatsoever. Because the diagonal entry satisfies a_{ii} = l_{ii}² + ∑ l_{ik}², every off-diagonal element is strictly bounded by |l_{ik}| ≤ √a_{ii}. Element growth is mathematically impossible, eliminating the need for row swaps or permutation registers. Today, Cholesky factorization is the engine driving structural finite element solvers, Kalman filtering in aerospace navigation, Gaussian process machine learning, and Portfolio Value-at-Risk modeling in quantitative finance. In this computational laboratory, students evaluate the Cholesky-Banachiewicz algorithm across SPD matrices from n = 10 to n = 60, verify half-cost operational efficiency, observe breakdown on indefinite matrices, and extract the asymptotic scaling constant C = 1/3 ≈ 0.333 via linear regression.

\text{FLOPs}(n) = C \cdot \frac{n^3}{1000} \implies C = \frac{1}{3} \approx 0.333

The mathematical regression linearizes the relationship into the form y = mx + b. Here, the independent variable x represents Normalized Dimension Cubic n³/1000, and the dependent variable y represents Factorization Operations (kFLOPs). The slope m directly extracts Cholesky Efficiency Factor C, while the intercept b accounts for residual baseline offsets.

5. Method

  1. Initialize symmetric n×n matrix A (A = Aᵀ) across dimensions n ∈ {10, 20, 30, 40, 50, 60}. Verify that all diagonal entries a_{ii} > 0.
  2. Compute top-left diagonal entry: l_{1,1} = √a_{1,1}. For i = 2 to n, compute column entries: l_{i,1} = a_{i,1} / l_{1,1}.
  3. Compute diagonal entry: l_{j,j} = √(a_{j,j} − ∑_{k=1}^{j-1} l_{j,k}²). If the argument under the square root is ≤ 0, terminate: matrix is not positive-definite.
  4. For i = j + 1 to n, compute off-diagonal elements: l_{i,j} = (a_{i,j} − ∑_{k=1}^{j-1} l_{i,k} · l_{j,k}) / l_{j,j}.
  5. Solve Ly = b via forward substitution in n²/2 operations. Solve Lᵀx = y via back substitution in n²/2 operations.
  6. Plot factorization FLOPs against n³/1000. Perform ordinary least-squares regression to extract empirical slope C = 0.333, confirming that Cholesky requires exactly half the operations of general LU.

6. Observations and calculation table

All iterative observations use strictly controlled 64-bit IEEE 754 precision buffers. Residuals are computed relative to the ordinary least-squares regression line.

Table 1. Six simulated observations; x and y represent transformed mathematical metrics.
No.Matrix Dimension n (rows)Cholesky Factorization FLOPs (kFLOPs)Normalized Dimension Cubic n³/1000Factorization Operations (kFLOPs)Fitted yResidual
110.00.3331.00000.33300.3333-0.0003
220.02.6678.00002.66702.66660.0004
330.09.027.00009.00009.00000.0000
440.021.33364.000021.333021.3333-0.0003
550.041.667125.000041.667041.66670.0003
660.072.0216.000072.000072.0001-0.0001

Download the sample observations (CSV) ↓

7. Worked calculation for one observation

For dimension n = 10.0: Normalized cubic coordinate x = n³/1000 = 10.0³/1000 = 1.000. Cumulative operations y = C · x = 0.333 kFLOPs.

8. Graph, gradient and final calculation

-10.42-24.8012.8741.8536.17108.5059.46175.1582.75241.80Normalized Dimension Cubic n³/1000Factorization Operations (kFLOPs)

Circular markers represent empirical computational observations. The solid line represents the ordinary least-squares linear fit.

x̄ = 73.50000; ȳ = 24.50000
Σ(x − x̄)² = 34757.50000
Σ(x − x̄)(y − ȳ) = 11585.85600
m = Σ(x − x̄)(y − ȳ) / Σ(x − x̄)² = 0.33333399
b = ȳ − mx̄ = -4.7932e-05
FLOPs(n) = 0.3333 · (n³/1000) + -4.7932e-05 ⟹ C = 0.333 FLOPs/n³ (theoretical C = 0.333)

9. Uncertainty and comparison

Percentage difference = |estimate − theoretical value| / |theoretical value| × 100 = 0.1003%.

For n = 6 observations, Σresidual² = 4.2966e-07; s² = Σresidual²/(n − 2). Gradient standard error = √[s²/Σ(x − x̄)²] = 1.7580e-06. Intercept standard error = √[s²(1/n + x̄²/Σ(x − x̄)²)] = 1.8601e-04.

Propagating the fit parameters yields a fit standard error of 1.7580e-06 , with an ideal coefficient of determination R² = 1.000000.

In computational mathematics and numerical analysis, errors arise from algorithmic discretization, finite precision IEEE 754 floating-point arithmetic (machine epsilon ε_mach ≈ 2.22 × 10⁻¹⁶ for 64-bit double precision), and condition number propagation. The ordinary least-squares fit across n = 6 standardized observations provides standard errors for the gradient and intercept. Because the mathematical recurrence is evaluated with high numerical precision, the residual sum of squares is vanishingly small, yielding a coefficient of determination R² ≥ 0.999999 and confirming the theoretical mathematical model.

10. Result and discussion

Cholesky Efficiency Factor C = 0.333
Theoretical reference value: 0.333

The empirical benchmark observations provide rigorous quantitative verification of Cholesky LLᵀ Factorization of Symmetric Positive-Definite Matrices. In numerical analysis, scientific computing, and computational mathematics, algorithms are characterized by their asymptotic operational scaling, stability, and convergence rates. Across all six observations, the empirical slope m = 0.3333 confirms the theoretical model with near-zero residual variance. Furthermore, comparison with alternative algorithmic paradigms underscores critical trade-offs between memory footprint, condition number sensitivity, and operational throughput. The algorithm's behavior confirms the mathematical predictions established by numerical analysis literature.

11. Precautions and limitations

Strictly restricted to symmetric positive-definite matrices; cannot be used for general unsymmetric or indefinite systems. The numerical simulation model executes Cholesky-Banachiewicz factorization on symmetric positive-definite matrices across dimensions n = [10, 20, 30, 40, 50, 60]. Normalized cubic coordinate: x = n³/1000 = [1.00, 8.00, 27.00, 64.00, 125.00, 216.00]. Theoretical Cholesky FLOP count: FLOPs(n) = (1/3)n³ = [0.333, 2.667, 9.000, 21.333, 41.667, 72.000] kFLOPs. Ordinary least-squares linear regression on these coordinates produces an empirical slope C = 0.33333 and Y-intercept b = 0.000 with coefficient of determination R² = 1.000000. The empirical efficiency constant C = 0.333 matches the analytical benchmark C = 1/3 = 0.33333 within 0.0000% deviation.

12. Conclusion

This computational laboratory investigation quantitatively verified the mathematical formulation and asymptotic scaling of Cholesky LLᵀ Factorization of Symmetric Positive-Definite Matrices. Through rigorous tracking across six observation points, we confirmed an empirical Cholesky Efficiency Factor C of 0.333 matching the theoretical reference 0.333 within 0.1003% error. The investigation demonstrates why this method serves as an indispensable tool in modern computational science.