/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q18E Suppose the x-coordinates of the... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Suppose the x-coordinates of the data \(\left( {{x_1},{y_1}} \right), \ldots ,\left( {{x_n},{y_n}} \right)\) are in mean deviation form, so that \(\sum {{x_i}} = 0\). Show that if \(X\) is the design matrix for the least-squares line in this case, then \({X^T}X\) is a diagonal matrix.

Short Answer

Expert verified

It is verified that, \({X^T}X = \left( {\begin{aligned}n&0\\0&{\sum {{x^2}} }\end{aligned}} \right)\) is a diagonal matrix.

Step by step solution

01

The General Linear Model

The equation of the general linear model is given as:

\({\bf{y}} = X\beta + \in \)

Here, \({\bf{y}} = \left( {\begin{aligned}{{y_1}}\\{{y_2}}\\ \vdots \\{{y_n}}\end{aligned}} \right)\) is an observational vector, \(X = \left( {\begin{aligned}1&{{x_1}}& \cdots &{x_1^n}\\1&{{x_2}}& \cdots &{x_2^n}\\ \vdots & \vdots & \ddots & \vdots \\1&{{x_n}}& \cdots &{x_n^n}\end{aligned}} \right)\) is the design matrix, \(\beta = \left( {\begin{aligned}{{\beta _1}}\\{{\beta _2}}\\ \vdots \\{{\beta _n}}\end{aligned}} \right)\) is parameter vector, and \( \in = \left( {\begin{aligned}{{ \in _1}}\\{{ \in _2}}\\ \vdots \\{{ \in _n}}\end{aligned}} \right)\) is a residual vector.

02

Find design matrix, observation vector, parameter vector for given data

The given data points are:\(\left( {{x_1},{y_1}} \right), \ldots ,\left( {{x_n},{y_n}} \right)\).

Write the design matrix and observational vector for the given data points.

Design matrix: \(X = \left( {\begin{aligned}1&{{x_1}}\\1&{{x_2}}\\ \vdots & \vdots \\1&{{x_n}}\end{aligned}} \right)\)

Observational matrix: \({\bf{y}} = \left( {\begin{aligned}{{y_1}}\\{{y_2}}\\ \vdots \\{{y_n}}\end{aligned}} \right)\)

And the parameter vectorfor the given equation is,

\({\bf{\beta }} = \left( {\begin{aligned}{{\beta _0}}\\{{\beta _1}}\end{aligned}} \right)\)

03

Find \({X^T}X\)

Find\({X^T}X\).

\(\begin{aligned}{X^T}X &= {\left( {\begin{aligned}1&{{x_1}}\\1&{{x_2}}\\ \vdots & \vdots \\1&{{x_n}}\end{aligned}} \right)^T}\left( {\begin{aligned}1&{{x_1}}\\1&{{x_2}}\\ \vdots & \vdots \\1&{{x_n}}\end{aligned}} \right)\\ &= \left( {\begin{aligned}1& \cdots &1\\{{x_1}}& \cdots &{{x_n}}\end{aligned}} \right)\left( {\begin{aligned}1&{{x_1}}\\1&{{x_2}}\\ \vdots & \vdots \\1&{{x_n}}\end{aligned}} \right)\\ &= \left( {\begin{aligned}n&{\sum x }\\{\sum x }&{\sum {{x^2}} }\end{aligned}} \right)\end{aligned}\)

Hence, the matrix for \({X^T}X\) is \(\left( {\begin{aligned}n&{\sum x }\\{\sum x }&{\sum {{x^2}} }\end{aligned}} \right)\).

04

Check whether \({X^T}X\) is a diagonal matrix or not

As, \({X^T}X = \left( {\begin{aligned}n&{\sum x }\\{\sum x }&{\sum {{x^2}} }\end{aligned}} \right)\). It is given that \(\sum {{x_i}} = 0\), then,

\({X^T}X = \left( {\begin{aligned}n&0\\0&{\sum {{x^2}} }\end{aligned}} \right)\)

It can be seen that the non-diagonal elements are 0, so is a diagonal matrix.

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 91Ó°ÊÓ!

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

Let \({\mathbb{R}^{\bf{2}}}\) have the inner product of Example 1, and let \({\bf{x}} = \left( {{\bf{1}},{\bf{1}}} \right)\) and \({\bf{y}} = \left( {{\bf{5}}, - {\bf{1}}} \right)\).

a. Find\(\left\| {\bf{x}} \right\|\),\(\left\| {\bf{y}} \right\|\), and\({\left| {\left\langle {{\bf{x}},{\bf{y}}} \right\rangle } \right|^{\bf{2}}}\).

b. Describe all vectors\(\left( {{z_{\bf{1}}},{z_{\bf{2}}}} \right)\), that are orthogonal to y.

24. Question: In Exercises 23 and 24, all vectors are in \({\mathbb{R}^n}\). Mark each statement True or False. Justify each answer.

  1. Not every orthogonal set in \({\mathbb{R}^n}\) is linearly independent.
  2. If a set \(S = \left\{ {{{\mathop{\rm u}\nolimits} _1}, \ldots ,{{\mathop{\rm u}\nolimits} _p}} \right\}\) has the property that \({{\mathop{\rm u}\nolimits} _i} \cdot {{\mathop{\rm u}\nolimits} _j} = 0\) whenever \(i \ne j\), then \(S\) is an orthonormal set.
  3. If the columns of a \(m \times n\) matrix A are orthonormal, then the linear mapping \({\mathop{\rm x}\nolimits} \mapsto A{\mathop{\rm x}\nolimits} \) preserves lengths.
  4. The orthogonal projection of y onto v is the same as the orthogonal projection of y onto \(c{\mathop{\rm v}\nolimits} \) whenever \(c \ne 0\).
  5. An orthogonal matrix is invertible.

Show that if \(U\) is an orthogonal matrix, then any real eigenvalue of \(U\) must be \( \pm 1\).

In Exercises 3–6, verify that\[\left\{ {{{\bf{u}}_1},{{\bf{u}}_2}} \right\}\]is an orthogonal set, and then find the orthogonal projection of\[{\bf{y}}\]onto Span\[\left\{ {{{\bf{u}}_1},{{\bf{u}}_2}} \right\}\].

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

In Exercises 9-12 find (a) the orthogonal projection of b onto \({\bf{Col}}A\) and (b) a least-squares solution of \(A{\bf{x}} = {\bf{b}}\).

12. \(A = \left[ {\begin{array}{{}{}}{\bf{1}}&{\bf{1}}&{\bf{0}}\\{\bf{1}}&{\bf{0}}&{ - {\bf{1}}}\\{\bf{0}}&{\bf{1}}&{\bf{1}}\\{ - {\bf{1}}}&{\bf{1}}&{ - {\bf{1}}}\end{array}} \right]\), \({\bf{b}} = \left( {\begin{array}{{}{}}{\bf{2}}\\{\bf{5}}\\{\bf{6}}\\{\bf{6}}\end{array}} \right)\)

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.