matrix

  • |

    Singular Value Decomposition Primer

    Singular value decomposition writes any real matrix, of any size or rank, as an orthogonal matrix, a diagonal matrix of singular values, and another orthogonal matrix. Singular values are the semi-axis lengths of the ellipse the matrix makes from the unit circle, and keeping the largest k gives the best rank-k approximation behind PCA and the pseudo-inverse.

  • |

    Matrix Operations Primer

    Matrix addition, subtraction, and scalar multiplication work element by element on same-size matrices, while a product needs matching inner dimensions and changes when the order changes. There is no division, only multiplication by an inverse on a chosen side. Element-wise derivatives and integrals yield the normal equations and the multivariate normal constant.