Linear Algebra

  • | | | |

    R2 by Aggregation Level

    Three R-squared values from the same predictions, computed over all measurements, over wafer averages, and averaged across measurement locations, are linked through one SST-weighted average of location R-squared. The all-measurement R-squared is always at least that average, while the wafer-average R-squared exceeds it only when the error ratio is at most one.

  • | |

    R2 Retention Probability

    When a deposition thickness model predicts every wafer but only some are measured, how many measurements verify its accuracy? This document derives the R2 retention probability, a chi-square formula valid from one measured wafer, and uses it to find the wafer measurement count and interval that keep R2 above target.

  • | |

    Rank-Nullity Theorem Primer

    The rank-nullity theorem states that for an m by n matrix A, the rank plus the nullity equals the number of columns n, while the number of rows plays no part. Knowing the rank alone therefore fixes the nullity as n minus the rank, telling whether Ax = b has one solution or infinitely many.

  • | |

    Dimension and Rank Primer

    Dimension is the number of vectors in a basis of a vector space, while rank is the dimension of a matrix’s column space. Even when an m by n matrix is not square, its row space and column space have the same dimension, the rank, which counts the largest set of linearly independent rows or columns.

  • | |

    Types of Norms

    A norm is a size function that is positive, homogeneous, and satisfies the triangle inequality; everyday length is just the L2 norm. Vector norms differ by p, chiefly L1, L2, and L-infinity, while matrix norms include Frobenius, spectral, and nuclear. Least squares, ridge, and minimum norm use L2; lasso uses L1.

  • | |

    Types of Linear Systems

    A linear system Ax = b is classified by three independent criteria: the number of equations versus unknowns, the number of solutions, and whether the right side is zero. The number of solutions follows from the ranks of A and the augmented matrix, which picks the inverse, least squares, or the minimum norm solution.

  • | |

    Pseudo-Inverse Primer

    The Moore-Penrose pseudo-inverse generalizes the inverse to matrices that have none. For an overdetermined system with more equations than unknowns, it is the inverse of A transpose A times A transpose, giving the least-squares solution. For an underdetermined system, it is A transpose times the inverse of A A transpose, giving the minimum norm solution.

  • | |

    Conditions Under Which PLS Works Where OLS Fails

    OLS cannot compute coefficients when X transpose X has no inverse, that is, when variables number at least as many as samples or perfect multicollinearity exists, while PLS still can. When the inverse exists but multicollinearity is high, OLS coefficients swing widely, and PLS gives stable coefficients from the same data.

  • | |

    Minimum Norm Solution Primer

    When Ax = b has infinitely many solutions, the minimum norm solution is the one with the smallest Euclidean length. It is the unique solution with no null space component, lying entirely in the row space. When the rank of A equals its number of rows, it is A transpose times the inverse of A A transpose, times b.

  • | |

    Left Null Space Primer

    The left null space of a matrix A is the null space of A transpose, the set of vectors y with y transpose A equal to zero. It is orthogonal to the column space, and together they fill the output space. When Ax = b has no solution, the left null space part of b is the least-squares residual.

  • | |

    Row Space Primer

    The row space of a matrix A is the span of its rows, equal to the column space of A transpose. It is orthogonal to the null space and has dimension equal to the rank. Every input vector splits uniquely into row-space and null-space parts, and only the row-space part determines the output.

  • |

    Outer Product Expansion Primer

    A matrix product AB equals the sum of outer products of the k-th column of A and the k-th row of B. Each term is a matrix of rank at most one, so the rank of AB cannot exceed the inner dimension. This view underlies singular value decomposition and sample-by-sample accumulation of X transpose X.