Chapter 7 annotated

1. Consistency of linear systems

This section explores the conditions under which a linear system of equations Axˉ=bˉA\bar{x} = \bar{b} has solutions, introducing the concepts of consistency, inconsistency, and the least squares problem for systems that lack an exact solution.

1.1 Understanding system consistency

A linear system Axˉ=bˉA\bar{x} = \bar{b}, where AA is an M×NM \times N matrix, xˉ\bar{x} is an N×1N \times 1 vector of unknowns, and bˉ\bar{b} is an M×1M \times 1 vector of constants, can have no solution (inconsistent), exactly one solution, or infinitely many solutions. The determination of a system's consistency is fundamentally linked to the properties of the matrix AA and the vector bˉ\bar{b}, particularly their relationship within the column space of AA.

Gaussian elimination is a primary tool for analyzing the consistency of a linear system. By reducing the augmented matrix [A∣bˉ][A | \bar{b}] to row echelon form, we can identify if a contradiction arises (e.g., a row of the form [0  0  …  0  ∣  c][0\; 0\; \dots\; 0 \; | \; c] where c≠0c \neq 0), which signifies an inconsistent system.

1.1.1 Inconsistent systems and the column space

A linear system Axˉ=bˉA\bar{x} = \bar{b} is inconsistent if and only if the vector bˉ\bar{b} is not in the column space of AA, denoted as Col(A)\text{Col}(A). The column space of AA is the set of all possible linear combinations of the columns of AA. If bˉ∈Col(A)\bar{b} \in \text{Col}(A), it implies that bˉ\bar{b} can be expressed as a linear combination of the columns of AA, which corresponds to the existence of at least one solution xˉ\bar{x} to Axˉ=bˉA\bar{x} = \bar{b}. Conversely, if bˉ∉Col(A)\bar{b} \notin \text{Col}(A), no such linear combination exists, and the system has no solution.

Note: If a system is consistent, there is at least one vector xˉ\bar{x} such that Axˉ=bˉA\bar{x} = \bar{b}. If bˉ\bar{b} is in the column space of AA, then bˉ=Axˉ\bar{b} = A\bar{x} for some xˉ\bar{x}. This xˉ\bar{x} is a solution. .

Example: Consider a system where AA is an M×NM \times N matrix with M≫NM \gg N. This scenario often arises in applications where there are more equations than unknowns, potentially leading to an overdetermined system. Such a system is not necessarily inconsistent; its consistency still depends on whether bˉ\bar{b} lies within Col(A)\text{Col}(A). 8.

1.2 The Least Squares Problem

When a linear system Axˉ=bˉA\bar{x} = \bar{b} is inconsistent, we cannot find a vector xˉ\bar{x} that perfectly satisfies the equation. In such cases, the least squares problem seeks to find an approximation yˉ\bar{y} such that AyˉA\bar{y} is as "close" as possible to bˉ\bar{b}. This is achieved by minimizing the Euclidean norm of the residual vector Ayˉ−bˉA\bar{y} - \bar{b}:

min⁡yˉ∥Ayˉ−bˉ∥\min_{\bar{y}} \|A\bar{y} - \bar{b}\|

The vector yˉ\bar{y} that achieves this minimum is called the least squares solution. This problem is frequently encountered in practical applications where data may be noisy or a perfect fit is impossible, such as in curve fitting.

Reminder: The least squares problem is about finding the vector AyˉA\bar{y} in Col(A)\text{Col}(A) that is closest to bˉ\bar{b}. This closest vector is the orthogonal projection of bˉ\bar{b} onto Col(A)\text{Col}(A). , 10 16.

1.2.1 Solving least squares via orthogonal projection

One method to find the least squares solution is by utilizing orthogonal projections. If we have an orthogonal basis {vˉ1,vˉ2,…,vˉk}\{\bar{v}_1, \bar{v}_2, \dots, \bar{v}_k\} for Col(A)\text{Col}(A), the orthogonal projection of bˉ\bar{b} onto Col(A)\text{Col}(A) is given by the sum of the projections of bˉ\bar{b} onto each basis vector:

projCol(A)(bˉ)=∑i=1kprojvˉi(bˉ)=∑i=1kbˉ⋅vˉi∥vˉi∥2vˉi\text{proj}_{\text{Col}(A)}(\bar{b}) = \sum_{i=1}^{k} \text{proj}_{\bar{v}_i}(\bar{b}) = \sum_{i=1}^{k} \frac{\bar{b} \cdot \bar{v}_i}{\|\bar{v}_i\|^2} \bar{v}_i

The resulting vector projCol(A)(bˉ)\text{proj}_{\text{Col}(A)}(\bar{b}) is the vector in Col(A)\text{Col}(A) closest to bˉ\bar{b}. If this projection is equal to AyˉA\bar{y}, then yˉ\bar{y} is the least squares solution.

Example: For the system

[101101]xˉ=[121]\begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 0 & 1 \end{bmatrix} \bar{x} = \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}

An orthogonal basis for Col(A)\text{Col}(A) is {vˉ1=(1,1,0),vˉ2=(−12,12,1)}\{\bar{v}_1 = (1, 1, 0), \bar{v}_2 = (-\frac{1}{2}, \frac{1}{2}, 1)\}. The projection of bˉ=(1,2,1)\bar{b} = (1, 2, 1) onto Col(A)\text{Col}(A) is:

projvˉ1(bˉ)=(1,2,1)⋅(1,1,0)∥(1,1,0)∥2(1,1,0)=1+212+12+02(1,1,0)=32(1,1,0)\text{proj}_{\bar{v}_1}(\bar{b}) = \frac{(1, 2, 1) \cdot (1, 1, 0)}{\|(1, 1, 0)\|^2} (1, 1, 0) = \frac{1+2}{1^2+1^2+0^2} (1, 1, 0) = \frac{3}{2}(1, 1, 0) projvˉ2(bˉ)=(1,2,1)⋅(−12,12,1)∥(−12,12,1)∥2(−12,12,1)=−12+1+1(−12)2+(12)2+12(−12,12,1)=3214+14+1(−12,12,1)=3232(−12,12,1)=1⋅(−12,12,1)=(−12,12,1)\text{proj}_{\bar{v}_2}(\bar{b}) = \frac{(1, 2, 1) \cdot (-\frac{1}{2}, \frac{1}{2}, 1)}{\|(-\frac{1}{2}, \frac{1}{2}, 1)\|^2} (-\frac{1}{2}, \frac{1}{2}, 1) = \frac{-\frac{1}{2}+1+1}{(-\frac{1}{2})^2+(\frac{1}{2})^2+1^2} (-\frac{1}{2}, \frac{1}{2}, 1) = \frac{\frac{3}{2}}{\frac{1}{4}+\frac{1}{4}+1} (-\frac{1}{2}, \frac{1}{2}, 1) = \frac{\frac{3}{2}}{\frac{3}{2}} (-\frac{1}{2}, \frac{1}{2}, 1) = 1 \cdot (-\frac{1}{2}, \frac{1}{2}, 1) = (-\frac{1}{2}, \frac{1}{2}, 1)

The closest point in Col(A)\text{Col}(A) is projCol(A)(bˉ)=32(1,1,0)+(−12,12,1)=(32−12,32+12,1)=(1,2,1)\text{proj}_{\text{Col}(A)}(\bar{b}) = \frac{3}{2}(1, 1, 0) + (-\frac{1}{2}, \frac{1}{2}, 1) = (\frac{3}{2}-\frac{1}{2}, \frac{3}{2}+\frac{1}{2}, 1) = (1, 2, 1). In this specific case, bˉ\bar{b} is already in Col(A)\text{Col}(A), meaning the system is consistent and the least squares solution is the exact solution. However, if bˉ\bar{b} were not in Col(A)\text{Col}(A), the sum of projections would yield the closest vector. , , 14 15.

1.2.2 Solving least squares with QR decomposition

The QR decomposition of a matrix AA expresses AA as a product of an orthogonal matrix QQ and an upper triangular matrix RR. If A=QRA = QR, where QQ is an orthogonal matrix (meaning QTQ=IQ^T Q = I), the least squares problem can be simplified.

For a system Axˉ=bˉA\bar{x} = \bar{b}, substituting A=QRA=QR gives QRxˉ=bˉQR\bar{x} = \bar{b}. Multiplying by QTQ^T (since QT=Q−1Q^T = Q^{-1} for orthogonal matrices), we get Rxˉ=QTbˉR\bar{x} = Q^T\bar{b}. This new system Rxˉ=QTbˉR\bar{x} = Q^T\bar{b} has the same least squares solutions as the original system. Since RR is upper triangular, this system can be solved efficiently using back substitution.

Note: When A=QRA=QR and QQ is an orthogonal matrix (not necessarily orthonormal), the least squares solution yˉ\bar{y} can be found by solving Ryˉ=QTbˉR\bar{y} = Q^T\bar{b}. If RR is invertible, then yˉ=R−1QTbˉ\bar{y} = R^{-1}Q^T\bar{b}. , , 18 20.

Important: The matrix AA may not be invertible. If AA is not invertible, its column space might not span the entire RM\mathbb{R}^M, and ATAA^T A might not be invertible. The QR decomposition can still be used, and if QQ is chosen to be orthonormal, RR will be upper triangular, and Rxˉ=QTbˉR\bar{x} = Q^T\bar{b} provides the least squares solution. 19.

1.2.3 Solving least squares by the normal equation

A powerful and widely used method for solving the least squares problem is through the normal equation. For an inconsistent system Axˉ=bˉA\bar{x} = \bar{b}, the least squares solution yˉ\bar{y} satisfies the equation:

ATAyˉ=ATbˉA^T A \bar{y} = A^T \bar{b}

The matrix ATAA^T A is an N×NN \times N matrix. If AA has linearly independent columns, then ATAA^T A is invertible, and the unique least squares solution is given by:

yˉ=(ATA)−1ATbˉ\bar{y} = (A^T A)^{-1} A^T \bar{b}

The normal equation arises from the geometric condition that the residual vector (Ayˉ−bˉ)(A\bar{y} - \bar{b}) must be orthogonal to the column space of AA. This means (Ayˉ−bˉ)(A\bar{y} - \bar{b}) is in the null space of ATA^T. Thus, AT(Ayˉ−bˉ)=0ˉA^T(A\bar{y} - \bar{b}) = \bar{0}, which simplifies to ATAyˉ=ATbˉA^T A \bar{y} = A^T \bar{b}.

Important: The vector AyˉA\bar{y} is the orthogonal projection of bˉ\bar{b} onto Col(A)\text{Col}(A). The residual vector Ayˉ−bˉA\bar{y} - \bar{b} is orthogonal to Col(A)\text{Col}(A). , 22 23.

Tip: The normal equation approach is generally preferred when ATAA^T A is well-conditioned and invertible, as it provides a direct way to compute the least squares solution.

Example: Consider the system:

[101101]xˉ=[121]\begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 0 & 1 \end{bmatrix} \bar{x} = \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix}

First, calculate ATAA^T A and ATbˉA^T \bar{b}:

AT=[110011]A^T = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \end{bmatrix} ATA=[110011][101101]=[1+1111+1]=[2112]A^T A = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \end{bmatrix} \begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 0 & 1 \end{bmatrix} = \begin{bmatrix} 1+1 & 1 \\ 1 & 1+1 \end{bmatrix} = \begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} ATbˉ=[110011][121]=[1+22+1]=[33]A^T \bar{b} = \begin{bmatrix} 1 & 1 & 0 \\ 0 & 1 & 1 \end{bmatrix} \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} = \begin{bmatrix} 1+2 \\ 2+1 \end{bmatrix} = \begin{bmatrix} 3 \\ 3 \end{bmatrix}

Now, solve the normal equation ATAyˉ=ATbˉA^T A \bar{y} = A^T \bar{b}:

[2112]yˉ=[33]\begin{bmatrix} 2 & 1 \\ 1 & 2 \end{bmatrix} \bar{y} = \begin{bmatrix} 3 \\ 3 \end{bmatrix}

The inverse of ATAA^T A is (ATA)−1=1−[2−1−12]=13[2−1−12](A^T A)^{-1} = \frac{1}{ - } \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} = \frac{1}{3} \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} 1 2. The least squares solution is:

yˉ=(ATA)−1ATbˉ=13[2−1−12][33]=13[6−3−3+6]=13[33]=[11]\bar{y} = (A^T A)^{-1} A^T \bar{b} = \frac{1}{3} \begin{bmatrix} 2 & -1 \\ -1 & 2 \end{bmatrix} \begin{bmatrix} 3 \\ 3 \end{bmatrix} = \frac{1}{3} \begin{bmatrix} 6-3 \\ -3+6 \end{bmatrix} = \frac{1}{3} \begin{bmatrix} 3 \\ 3 \end{bmatrix} = \begin{bmatrix} 1 \\ 1 \end{bmatrix}

This solution yˉ=[11]\bar{y} = \begin{bmatrix} 1 \\ 1 \end{bmatrix} matches the exact solution found earlier, as the original system was consistent. , 25 26.

Comparison of Errors: Consider the least squares solution yˉ=[11]\bar{y} = \begin{bmatrix} 1 \\ 1 \end{bmatrix} and another potential solution zˉ=[−11.5]\bar{z} = \begin{bmatrix} -1 \\ 1.5 \end{bmatrix} for the system above. The error for yˉ\bar{y} is Ayˉ−bˉ=[101101][11]−[121]=[121]−[121]=[000]A\bar{y} - \bar{b} = \begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} 1 \\ 1 \end{bmatrix} - \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} = \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} - \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} = \begin{bmatrix} 0 \\ 0 \\ 0 \end{bmatrix}. The norm is ∥0∥=0\|0\| = 0. The error for zˉ\bar{z} is Azˉ−bˉ=[101101][−11.5]−[121]=[−10.51.5]−[121]=[−2−1.50.5]A\bar{z} - \bar{b} = \begin{bmatrix} 1 & 0 \\ 1 & 1 \\ 0 & 1 \end{bmatrix} \begin{bmatrix} -1 \\ 1.5 \end{bmatrix} - \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} = \begin{bmatrix} -1 \\ 0.5 \\ 1.5 \end{bmatrix} - \begin{bmatrix} 1 \\ 2 \\ 1 \end{bmatrix} = \begin{bmatrix} -2 \\ -1.5 \\ 0.5 \end{bmatrix}. The norm is ∥Azˉ−bˉ∥=(−2)2+(−1.5)2+(0.5)2=4+2.25+0.25=6.5\|A\bar{z} - \bar{b}\| = \sqrt{(-2)^2 + (-1.5)^2 + (0.5)^2} = \sqrt{4 + 2.25 + 0.25} = \sqrt{6.5}. The least squares solution yields the minimum possible error norm. 27.

2. Projection matrices and their properties

This section explores projection matrices as a tool for orthogonal projection onto vectors and column spaces, detailing their fundamental properties and equivalences, and subsequently applying these concepts to least squares methods for data fitting.

2.1 Orthogonal projection onto a vector

An orthogonal projection of a vector v\mathbf{v} onto a non-zero vector u\mathbf{u} can be represented by a projection matrix PuP_{\mathbf{u}}. This matrix projects any vector v\mathbf{v} onto the line spanned by u\mathbf{u}. The projected vector is parallel to u\mathbf{u}, and its magnitude is determined by the angle and lengths of u\mathbf{u} and v\mathbf{v}.

The formula for the projection of v\mathbf{v} onto u\mathbf{u} is given by: projuv=v⋅u∥u∥2u\text{proj}_{\mathbf{u}} \mathbf{v} = \frac{\mathbf{v} \cdot \mathbf{u}}{\|\mathbf{u}\|^2} \mathbf{u} When vectors are treated as column matrices, the projection matrix PuP_{\mathbf{u}} is defined as: Pu=uuTuTuP_{\mathbf{u}} = \frac{\mathbf{u} \mathbf{u}^T}{\mathbf{u}^T \mathbf{u}} where uTu\mathbf{u}^T \mathbf{u} is the dot product (or squared norm) of u\mathbf{u}, and uuT\mathbf{u} \mathbf{u}^T is the outer product.

Example: Calculate the projection matrix for u=(1/21/21)\mathbf{u} = \begin{pmatrix} 1/2 \\ 1/2 \\ 1 \end{pmatrix}. First, calculate uTu\mathbf{u}^T \mathbf{u}: uTu=(1/21/21)(1/21/21)=(1/2)(1/2)+(1/2)(1/2)+=1/4+1/4+1=1.5\mathbf{u}^T \mathbf{u} = \begin{pmatrix} 1/2 & 1/2 & 1 \end{pmatrix} \begin{pmatrix} 1/2 \\ 1/2 \\ 1 \end{pmatrix} = (1/2)(1/2) + (1/2)(1/2) + = 1/4 + 1/4 + 1 = 1.5 1. Next, calculate the outer product uuT\mathbf{u} \mathbf{u}^T: uuT=(1/21/21)(1/21/21)=(1/41/41/21/41/41/21/21/21)\mathbf{u} \mathbf{u}^T = \begin{pmatrix} 1/2 \\ 1/2 \\ 1 \end{pmatrix} \begin{pmatrix} 1/2 & 1/2 & 1 \end{pmatrix} = \begin{pmatrix} 1/4 & 1/4 & 1/2 \\ 1/4 & 1/4 & 1/2 \\ 1/2 & 1/2 & 1 \end{pmatrix} Finally, the projection matrix is: Pu=11.5(1/41/41/21/41/41/21/21/21)=23(1/41/41/21/41/41/21/21/21)=(1/61/61/31/61/61/31/31/32/3)P_{\mathbf{u}} = \frac{1}{1.5} \begin{pmatrix} 1/4 & 1/4 & 1/2 \\ 1/4 & 1/4 & 1/2 \\ 1/2 & 1/2 & 1 \end{pmatrix} = \frac{2}{3} \begin{pmatrix} 1/4 & 1/4 & 1/2 \\ 1/4 & 1/4 & 1/2 \\ 1/2 & 1/2 & 1 \end{pmatrix} = \begin{pmatrix} 1/6 & 1/6 & 1/3 \\ 1/6 & 1/6 & 1/3 \\ 1/3 & 1/3 & 2/3 \end{pmatrix}

2.2 Projection onto a column space

The concept of projection extends to projecting a vector onto the column space of a matrix AA, denoted as Col(A)\text{Col}(A). This projection is crucial for solving systems of linear equations that may not have an exact solution, such as in least squares problems.

The projection matrix PP onto the column space of AA, denoted as PCol(A)P_{\text{Col}(A)}, is given by: P=A(ATA)−1ATP = A (A^T A)^{-1} A^T This formula is valid provided that the matrix ATAA^T A is invertible.

Note: The term (ATA)−1AT(A^T A)^{-1} A^T is often referred to as the Moore-Penrose pseudoinverse of AA when AA has full column rank.

2.3 Properties and equivalences of projection matrices

For a given matrix AA, the following properties are equivalent, particularly when AA has linearly independent columns:

  1. The linear system Ax=bA \mathbf{x} = \mathbf{b} has a unique least squares solution for all vectors b\mathbf{b}.
  2. The columns of AA are linearly independent.
  3. The matrix ATAA^T A is invertible.

These equivalences are fundamental to understanding the conditions under which least squares solutions are well-defined and unique.

Proof of Equivalences:

  • 1   ⟹  \implies 2: If Ax=bA \mathbf{x} = \mathbf{b} has a unique solution for all b\mathbf{b}, it implies that the null space of AA contains only the zero vector. If the null space contains only 0\mathbf{0}, then the columns of AA must be linearly independent.
  • 2   ⟹  \implies 3: If the columns of AA are linearly independent, then ATAA^T A is a square matrix that is also invertible. To show this, assume ATAx=0A^T A \mathbf{x} = \mathbf{0}. Then (Ax)T(Ax)=xTATAx=0(A\mathbf{x})^T (A\mathbf{x}) = \mathbf{x}^T A^T A \mathbf{x} = 0. This implies Ax=0A\mathbf{x} = \mathbf{0}. Since the columns of AA are linearly independent, the only solution is x=0\mathbf{x} = \mathbf{0}. Therefore, ATAA^T A is invertible.
  • 3   ⟹  \implies 1: If ATAA^T A is invertible, then the normal equation ATAx=ATbA^T A \mathbf{x} = A^T \mathbf{b} has a unique solution for x\mathbf{x}, given by x=(ATA)−1ATb\mathbf{x} = (A^T A)^{-1} A^T \mathbf{b}. This unique solution is the least squares solution for Ax=bA \mathbf{x} = \mathbf{b}.

Important: These equivalences hold when AA has full column rank (i.e., its columns are linearly independent). If AA does not have full column rank, ATAA^T A is not invertible, and the system Ax=bA\mathbf{x} = \mathbf{b} may have infinitely many solutions or no exact solution, and the least squares solution may not be unique.

2.4 Least squares for curve fitting

Least squares methods are widely applied in experimental sciences to fit models to data, especially when direct solutions are not possible due to noise or model inaccuracies. The goal is to find the parameters that minimize the sum of squared differences between the observed data and the model's predictions.

2.4.1 Fitting linear equations

When fitting a linear model of the form y=ϵ1x1+ϵ2x2+⋯+ϵnxny = \epsilon_1 x_1 + \epsilon_2 x_2 + \dots + \epsilon_n x_n, where ϵi\epsilon_i are parameters to be estimated and xix_i are independent variables, we can express this in matrix form. For experimental data, this typically leads to an overdetermined system.

In a real experiment, the measured yy values will not perfectly satisfy the linear dependency law due to experimental noise or inaccuracies in the hypothesized model. The least squares approach seeks to find the parameter values that best approximate the relationship.

Example: Fit a least-squares line for the data: xx: 1.1, 1.9, 3.2, 4.2 yy: 0.7, 1.2, 1.5, 2.2 For the hypothesized relationship ϵ0+ϵ1x=y\epsilon_0 + \epsilon_1 x = y. This can be written in matrix form: (11.111.913.214.2)(ϵ0ϵ1)=(0.71.21.52.2)\begin{pmatrix} 1 & 1.1 \\ 1 & 1.9 \\ 1 & 3.2 \\ 1 & 4.2 \end{pmatrix} \begin{pmatrix} \epsilon_0 \\ \epsilon_1 \end{pmatrix} = \begin{pmatrix} 0.7 \\ 1.2 \\ 1.5 \\ 2.2 \end{pmatrix} Here, A=(11.111.913.214.2)A = \begin{pmatrix} 1 & 1.1 \\ 1 & 1.9 \\ 1 & 3.2 \\ 1 & 4.2 \end{pmatrix}, x=(ϵ0ϵ1)\mathbf{x} = \begin{pmatrix} \epsilon_0 \\ \epsilon_1 \end{pmatrix}, and b=(0.71.21.52.2)\mathbf{b} = \begin{pmatrix} 0.7 \\ 1.2 \\ 1.5 \\ 2.2 \end{pmatrix}. The least squares solution is found by solving ATAx=ATbA^T A \mathbf{x} = A^T \mathbf{b}.

2.4.2 Fitting non-linear equations

Even if the relationship between variables is non-linear, a curve can still be fitted using least squares, provided the relationship is linear in the parameters. This is achieved by constructing a design matrix where columns represent functions of the independent variables.

Example: Fit a linear model for the data with the hypothesized relationship y=ϵ0x+ϵ1e−xy = \epsilon_0 x + \epsilon_1 e^{-x}. xx: 0.5, 1.0, 1.5, 2.0 yy: 11.6, 7.50, 4.47, 3.34

First, we need to compute the values for the term e−xe^{-x}: e−xe^{-x}: 0.61, 0.37, 0.22, 0.14 (approximately)

The design matrix AA is formed by columns corresponding to the terms multiplying the parameters ϵ0\epsilon_0 and ϵ1\epsilon_1: A=(x1e−x1x2e−x2x3e−x3x4e−x4)=(0.50.611.00.371.50.222.00.14)A = \begin{pmatrix} x_1 & e^{-x_1} \\ x_2 & e^{-x_2} \\ x_3 & e^{-x_3} \\ x_4 & e^{-x_4} \end{pmatrix} = \begin{pmatrix} 0.5 & 0.61 \\ 1.0 & 0.37 \\ 1.5 & 0.22 \\ 2.0 & 0.14 \end{pmatrix} The vector of observed values is: b=(11.67.504.473.34)\mathbf{b} = \begin{pmatrix} 11.6 \\ 7.50 \\ 4.47 \\ 3.34 \end{pmatrix} The parameter vector is ϵ=(ϵ0ϵ1)\mathbf{\epsilon} = \begin{pmatrix} \epsilon_0 \\ \epsilon_1 \end{pmatrix}. The problem then reduces to solving the least squares system Aϵ=bA\mathbf{\epsilon} = \mathbf{b} by solving the normal equations ATAϵ=ATbA^T A \mathbf{\epsilon} = A^T \mathbf{b}.

This approach allows for fitting complex models by transforming them into a form that is linear in the parameters, thereby enabling the application of powerful linear algebra techniques.

Common mistakes to avoid

  • Review all topics thoroughly before exams
  • Pay attention to formulas and key definitions
  • Practice with examples provided in each section
  • Don't memorize without understanding the underlying concepts

© 2026 Maeve. All rights reserved. This content is protected by copyright.

See also