Question: In parts (a)-(d), let U be the matrix formed by normalizing each column of matrix A in Exercise 35.

  1. Compute \({U^T}U\) and \(U{U^T}\). How do they differ?
  2. Generate a random vector y in\({\mathbb{R}^{\bf{8}}}\), and compute\({\bf{p}} = U{U^T}{\bf{y}}\)and\({\bf{z}} = {\bf{y}} - {\bf{p}}\). Explain why p is in col A. Verfiy that z is orthogonal to p.
  3. Verfiy that z is orthogonal to each column of U.
  4. Notice that \({\bf{y}} = {\bf{p}} + {\bf{z}}\), with p in Col A. Explain why z is in \({\left( {{\bf{Col}}A} \right)^ \bot }\). (The significance of this decomposition of y will be explained in the next section.)

Short Answer

Expert verified
  1. The matrices are \({U^T}U = \left( {\begin{array}{*{20}{c}}{1.0000}&0&0&0\\0&{1.0000}&0&0\\0&0&{1.0000}&0\\0&0&0&{1.0000}\end{array}} \right)\), and\(U{U^T} = \left( {\begin{array}{*{20}{c}}{0.8200}&0&{ - 0.2000}&{0.0800}\\0&{0.4200}&{0.2400}&0\\{ - 0.2000}&{0.2400}&{0.5800}&{0.2000}\\{0.0800}&0&{0.2000}&{0.8200}\\{0.0600}&{ - 0.2000}&0&{0.2400}\\{0.2000}&{0.0600}&{0.3200}&{ - 0.2000}\\{0.2400}&{0.2000}&0&{0.0600}\\0&{ - 0.3200}&{0.0600}&0\end{array}} \right)\). The matrix \({U^T}U\) is of order \(4 \times 4\) , and the matrix \(U{U^T}\) is of order \(8 \times 8\).
  1. It is verified that z and p are orthogonal to each other.
  2. It is verified that z is orthogonal to each column of U.
  3. z is in the \({\left( {{\rm{Col}}A} \right)^ \bot }\) because the product of vectors is zero.

Step by step solution

01

Find the answer for part (a)

Use the following MATLAB command to obtain the transpose of A.

\( > > A = \left( \begin{array}{l}\begin{array}{*{20}{c}}{ - 6}&{ - 3}&6&1\end{array};\,\begin{array}{*{20}{c}}{ - 1}&2&1&{ - 6}\end{array};\,\begin{array}{*{20}{c}}3&6&3&{ - 2;\,\begin{array}{*{20}{c}}6&{ - 3}&6&{ - 1}\end{array}}\end{array};\\\begin{array}{*{20}{c}}2&{ - 1}&2&{3;\,\begin{array}{*{20}{c}}{ - 3}&6&3&{2;\,\,\begin{array}{*{20}{c}}{ - 2}&{ - 1}&2&{ - 3;\,\,\begin{array}{*{20}{c}}1&2&1&6\end{array}}\end{array}}\end{array}}\end{array}\end{array} \right);\)

Find the matrix \(U\).

\( > > U = \frac{A}{{10}};\)

The matrix Uis:

\(U = \left( {\begin{array}{*{20}{c}}{ - 0.6000}&{ - 0.3000}&{0.6000}&{0.1000}\\{ - 0.1000}&{0.2000}&{0.1000}&{ - 0.6000}\\{0.3000}&{0.6000}&{0.3000}&{ - 0.2000}\\{0.6000}&{ - 0.3000}&{0.6000}&{ - 0.1000}\\{0.2000}&{ - 0.1000}&{0.2000}&{0.3000}\\{ - 0.3000}&{0.6000}&{0.3000}&{0.2000}\\{ - 0.2000}&{ - 0.1000}&{0.2000}&{ - 0.3000}\\{0.1000}&{0.2000}&{0.1000}&{0.6000}\end{array}} \right)\)

Compute the product \({U^T}U\) and \(U{U^T}\).

\(\begin{array}{c} > > P\_1 = U'*U\\ > > P\_2 = U*U'\end{array}\)

The product \({U^T}U\) and \(U{U^T}\) is shown below:

\({U^T}U = \left( {\begin{array}{*{20}{c}}{1.0000}&0&0&0\\0&{1.0000}&0&0\\0&0&{1.0000}&0\\0&0&0&{1.0000}\end{array}} \right)\)

And,

\(U{U^T} = \left( {\begin{array}{*{20}{c}}{0.8200}&0&{ - 0.2000}&{0.0800}\\0&{0.4200}&{0.2400}&0\\{ - 0.2000}&{0.2400}&{0.5800}&{0.2000}\\{0.0800}&0&{0.2000}&{0.8200}\\{0.0600}&{ - 0.2000}&0&{0.2400}\\{0.2000}&{0.0600}&{0.3200}&{ - 0.2000}\\{0.2400}&{0.2000}&0&{0.0600}\\0&{ - 0.3200}&{0.0600}&0\end{array}} \right)\)

The matrix \({U^T}U\) is of order \(4 \times 4\) , and the matrix \(U{U^T}\) is of order \(8 \times 8\).

02

Find an answer for part (b)

Consider the following column vector \(y = {\left( {\begin{array}{*{20}{c}}1&1&1&1&1&1&1&1\end{array}} \right)^T}\).

Use the following command in the MATLAB to obtain the random vector:

\(\begin{array}{l} > > {\bf{y}} = {\rm{ones}}\left( {1,8} \right)\\ > > {\rm{p}} = {\rm{U}}*{\rm{U}}*{\rm{y}}\\ > > {\rm{z}} = {\rm{y}} - {\rm{p}}\end{array}\)

So, the vector z is shown below:

\(z = \left( {\begin{array}{*{20}{c}}{ - 0.2000}\\{0.6000}\\{ - 0.2000}\\{ - 0.2000}\\{0.6000}\\{ - 0.2000}\\{0.6000}\\{0.6000}\end{array}} \right)\)

As \({\bf{p}} = U{U^T}{\bf{y}}\), therefore, pis the column space of U.

Find the product of z and p.

\( > > {\rm{z}}*{\bf{p}}\)

The product \({\rm{z}}*{\rm{p}}\) gives the result as zero. Therefore z and p are orthogonal to each other.

03

Find an answer for part (c)

Multiply each column of U with zby using the following MATLAB commands:

\(\begin{array}{l} > > {\rm{z}}*{\rm{U}}\left( {;1} \right)\\ > > {\rm{z}}*{\rm{U}}\left( {;2} \right)\\ > > {\rm{z}}*{\rm{U}}\left( {;3} \right)\\ > > {\rm{z}}*{\rm{U}}\left( {;4} \right)\end{array}\)

The result of all the products is zero. Therefore z is orthogonal to each column of U.

04

Find an answer for part (d)

As it is proved in step 3, that zis orthogonal to each column of A. Therefore z must be orthogonal to every vector in the column space of A.

Thus, z is in the column space of A.

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with Vaia!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

Exercises 19 and 20 involve a design matrix \(X\) with two or more columns and a least-squares solution \(\hat \beta \) of \({\bf{y}} = X\beta \). Consider the following numbers.

(i) \({\left\| {X\hat \beta } \right\|^2}\)—the sum of the squares of the “regression term.” Denote this number by .

(ii) \({\left\| {{\bf{y}} - X\hat \beta } \right\|^2}\)—the sum of the squares for error term. Denote this number by \(SS\left( E \right)\).

(iii) \({\left\| {\bf{y}} \right\|^2}\)—the “total” sum of the squares of the \(y\)-values. Denote this number by \(SS\left( T \right)\).

Every statistics text that discusses regression and the linear model \(y = X\beta + \in \) introduces these numbers, though terminology and notation vary somewhat. To simplify matters, assume that the mean of the -values is zero. In this case, \(SS\left( T \right)\) is proportional to what is called the variance of the set of -values.

19. Justify the equation \(SS\left( T \right) = SS\left( R \right) + SS\left( E \right)\). (Hint: Use a theorem, and explain why the hypotheses of the theorem are satisfied.) This equation is extremely important in statistics, both in regression theory and in the analysis of variance.

In Exercises 7–10, let\[W\]be the subspace spanned by the\[{\bf{u}}\]’s, and write y as the sum of a vector in\[W\]and a vector orthogonal to\[W\].

7.\[y = \left[ {\begin{aligned}1\\3\\5\end{aligned}} \right]\],\[{{\bf{u}}_1} = \left[ {\begin{aligned}1\\3\\{ - 2}\end{aligned}} \right]\],\[{{\bf{u}}_2} = \left[ {\begin{aligned}5\\1\\4\end{aligned}} \right]\]

Suppose radioactive substance A and B have decay constants of \(.02\) and \(.07\), respectively. If a mixture of these two substances at a time \(t = 0\) contains \({M_A}\) grams of \(A\) and \({M_B}\) grams of \(B\), then a model for the total amount of mixture present at time \(t\) is

\(y = {M_A}{e^{ - .02t}} + {M_B}{e^{ - .07t}}\) (6)

Suppose the initial amounts \({M_A}\) and are unknown, but a scientist is able to measure the total amounts present at several times and records the following points \(\left( {{t_i},{y_i}} \right):\left( {10,21.34} \right),\left( {11,20.68} \right),\left( {12,20.05} \right),\left( {14,18.87} \right)\) and \(\left( {15,18.30} \right)\).

a.Describe a linear model that can be used to estimate \({M_A}\) and \({M_B}\).

b. Find the least-squares curved based on (6).

Question: In exercises 1-6, determine which sets of vectors are orthogonal.

\(\left[ {\begin{align}1\\{ - 2}\\1\end{align}} \right]\), \(\left[ {\begin{align}0\\1\\2\end{align}} \right]\), \(\left[ {\begin{align}{ - 5}\\{ - 2}\\1\end{align}} \right]\)

Given \(A = QR\) as in Theorem 12, describe how to find an orthogonal\(m \times m\)(square) matrix \({Q_1}\) and an invertible \(n \times n\) upper triangular matrix \(R\) such that

\(A = {Q_1}\left[ {\begin{aligned}{{}{}}R\\0\end{aligned}} \right]\)

The MATLAB qr command supplies this “full” QR factorization

when rank \(A = n\).

See all solutions

Recommended explanations on Math Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.

Sign-up for free