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

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

Let \(T:{\mathbb{R}^n} \to {\mathbb{R}^n}\) be a linear transformation that preserves lengths; that is, \(\left\| {T\left( {\bf{x}} \right)} \right\| = \left\| {\bf{x}} \right\|\) for all x in \({\mathbb{R}^n}\).

  1. Show that T also preserves orthogonality; that is, \(T\left( {\bf{x}} \right) \cdot T\left( {\bf{y}} \right) = 0\) whenever \({\bf{x}} \cdot {\bf{y}} = 0\).
  2. Show that the standard matrix of T is an orthogonal matrix.

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

a. If \(W = {\rm{span}}\left\{ {{x_1},{x_2},{x_3}} \right\}\) with \({x_1},{x_2},{x_3}\) linearly independent,

and if \(\left\{ {{v_1},{v_2},{v_3}} \right\}\) is an orthogonal set in \(W\) , then \(\left\{ {{v_1},{v_2},{v_3}} \right\}\) is a basis for \(W\) .

b. If \(x\) is not in a subspace \(W\) , then \(x - {\rm{pro}}{{\rm{j}}_W}x\) is not zero.

c. In a \(QR\) factorization, say \(A = QR\) (when \(A\) has linearly

independent columns), the columns of \(Q\) form an

orthonormal basis for the column space of \(A\).

Find an orthonormal basis of the subspace spanned by the vectors in Exercise 4.

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

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

Sign-up for free