Warning: foreach() argument must be of type array|object, bool given in /var/www/html/web/app/themes/studypress-core-theme/template-parts/header/mobile-offcanvas.php on line 20

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 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

In Exercises 9-12, find a unit vector in the direction of the given vector.

11. \(\left( {\begin{aligned}{*{20}{c}}{\frac{7}{4}}\\{\frac{1}{2}}\\1\end{aligned}} \right)\)

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

\(\left[ {\begin{array}{*{20}{c}}3\\{-2}\\1\\3\end{array}} \right]\), \(\left[ {\begin{array}{*{20}{c}}{-1}\\3\\{-3}\\4\end{array}} \right]\), \(\left[ {\begin{array}{*{20}{c}}3\\8\\7\\0\end{array}} \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}}\).

9. \(A = \left[ {\begin{aligned}{{}{}}{\bf{1}}&{\bf{5}}\\{\bf{3}}&{\bf{1}}\\{ - {\bf{2}}}&{\bf{4}}\end{aligned}} \right]\), \({\bf{b}} = \left[ {\begin{aligned}{{}{}}{\bf{4}}\\{ - {\bf{2}}}\\{ - {\bf{3}}}\end{aligned}} \right]\)

In Exercises 1-4, find the equation \(y = {\beta _0} + {\beta _1}x\) of the least-square line that best fits the given data points.

  1. \(\left( { - 1,0} \right),\left( {0,1} \right),\left( {1,2} \right),\left( {2,4} \right)\)

In Exercises 17 and 18, all vectors and subspaces are in \({\mathbb{R}^n}\). Mark each statement True or False. Justify each answer.

17. a.If \(\left\{ {{{\bf{v}}_1},{{\bf{v}}_2},{{\bf{v}}_3}} \right\}\) is an orthogonal basis for\(W\), then multiplying

\({v_3}\)by a scalar \(c\) gives a new orthogonal basis \(\left\{ {{{\bf{v}}_1},{{\bf{v}}_2},c{{\bf{v}}_3}} \right\}\).

b. The Gramโ€“Schmidt process produces from a linearly independent

set \(\left\{ {{{\bf{x}}_1}, \ldots ,{{\bf{x}}_p}} \right\}\)an orthogonal set \(\left\{ {{{\bf{v}}_1}, \ldots ,{{\bf{v}}_p}} \right\}\) with the property that for each \(k\), the vectors \({{\bf{v}}_1}, \ldots ,{{\bf{v}}_k}\) span the same subspace as that spanned by \({{\bf{x}}_1}, \ldots ,{{\bf{x}}_k}\).

c. If \(A = QR\), where \(Q\) has orthonormal columns, then \(R = {Q^T}A\).

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