svd_lls


svd_lls, an Octave code which uses the Singular Value Decomposition (SVD) to construct and plot the best affine and linear relationships in the sense of least square, between two vectors of data.

The linear relationship will have the form

  ( y - mean(y) ) = slope * ( x - mean(x) )

The affine relationship will have the form

  y = slope * x + intercept

Licensing:

The computer code and data files described and made available on this web page are distributed under the MIT license

Languages:

svd_lls is available in a MATLAB version and an Octave version and a Python version.

Related Data and Programs:

svd_lls_test

svd_basis, an Octave code which computes a reduced basis for a collection of data vectors using singular value decomposition (SVD).

svd_circle, an Octave code which analyzes a linear map of the unit circle caused by an arbitrary 2x2 matrix a, using the singular value decomposition (SVD).

svd_faces, an Octave code which applies singular value decomposition (SVD) analysis to a set of images.

svd_fingerprint, an Octave code which reads a file containing a fingerprint image and uses the singular value decomposition (SVD) to compute and display a series of low rank approximations to the image.

svd_gray, an Octave code which reads a gray scale image, computes the singular value decomposition (SVD), and constructs a series of low rank approximations to the image.

svd_powers, an Octave code which applies singular value decomposition (SVD) analysis to powers x(i)^(j-1).

svd_snowfall, an Octave code which reads a file containing historical snowfall data and analyzes the data with the singular value decomposition (SVD).

svd_sphere, an Octave code which analyzes a linear map of the unit sphere caused by an arbitrary 3x3 matrix A, using the singular value decomposition (SVD).

svd_test, an Octave code which demonstrates the singular value decomposition (SVD) for a simple example.

svd_truncated_test, an Octave code which demonstrates the computation of the reduced or truncated singular value decomposition (SVD) that is useful for cases when one dimension of the matrix is much smaller than the other.

Reference:

  1. Lloyd Trefethen, David Bau,
    Numerical Linear Algebra,
    SIAM, 1997,
    ISBN: 0-89871-361-7,
    LC: QA184.T74.

Source Code:


Last revised on 02 June 2023.