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

a. Rewrite the data in Example 1 with new \(x\)-coordinates in mean deviation form. Let \(X\) be the associated design matrix. Why are the columns of \(X\) orthogonal?

b. Write the normal equations for the data in part (a), and solve them to find the least-squares line, \(y = {\beta _0} + {\beta _1}x*\), where \(x* = x - 5.5\).

Short Answer

Expert verified

(a) The data in mean deviation form can be written as:

\(X = \left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)\)

As the sum of all entries of the second column is 0, so the columns of are orthogonal.

(b) The normal equation is \(\left( {\begin{aligned}4&0\\0&{21}\end{aligned}} \right)\left( {\begin{aligned}{{\beta _1}}\\{{\beta _2}}\end{aligned}} \right) = \left( {\begin{aligned}9\\{7.5}\end{aligned}} \right)\). The least-squares line is \(y = \frac{9}{4} + \frac{5}{{14}}\left( {x - 5.5} \right)\).

Step by step solution

01

Find the mean of the given data

(a) The data in example 1 is: \(\left( {2,1} \right),\left( {5,2} \right),\left( {7,3} \right)\) and \(\left( {8,3} \right)\).

Find the mean of the data.

\(\begin{aligned}\bar x &= \frac{{\sum x }}{n}\\ &= \frac{{2 + 5 + 7 + 8}}{4}\\ &= \frac{{22}}{4}\\ &= 5.5\end{aligned}\)

So, the mean of the data is \(5.5\).

02

Find the value of \(x*\)

It is given that, \(x* = x - 5.5\). Find \(x* = x - 5.5\) for different values of \(x\) in the given data set.

\(\begin{aligned}x* = 2 - 5.5\\ = - 3.5\end{aligned}\)

\(\begin{aligned}x* = 5 - 5.5\\ = - 0.5\end{aligned}\)

\(\begin{aligned}x* = 7 - 5.5\\ = 1.5\end{aligned}\)

\(\begin{aligned}x* = 8 - 5.5\\ = 2.5\end{aligned}\)

So, the data in mean deviation form can be written as,

\(X = \left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)\)

03

Determine whether \(X\) is orthogonal

On adding the elements of the second column of \(X\), the value is 0, so the columns of \(X\) are orthogonal.

04

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.

05

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

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

Design matrix: \(X = \left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)\)

Observational matrix: \({\bf{y}} = \left( {\begin{aligned}1\\2\\3\\3\end{aligned}} \right)\)

And the parameter vectorfor the given equation is,

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

06

Normal equation

The normal equation is given by,

\({X^T}X\beta = {X^T}{\bf{y}}\)

07

Find least-squares line

(b)

The normal equation is\({X^T}X\beta = {X^T}{\bf{y}}\), find \(\beta \) for the given data by using the normal equation.

\(\begin{aligned}\left( {{{\left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)}^T}\left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)} \right)\beta & = {\left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)^T}\left( {\begin{aligned}1\\2\\3\\3\end{aligned}} \right)\\\left( {\begin{aligned}4&0\\0&{21}\end{aligned}} \right)\beta & = \left( {\begin{aligned}9\\{7.5}\end{aligned}} \right)\\\left( {\begin{aligned}{{\beta _1}}\\{{\beta _2}}\end{aligned}} \right) &= {\left( {\begin{aligned}4&0\\0&{21}\end{aligned}} \right)^{ - 1}}\left( {\begin{aligned}9\\{7.5}\end{aligned}} \right)\\ &= \frac{1}{{84}}\left( {\begin{aligned}{21}&0\\0&4\end{aligned}} \right)\left( {\begin{aligned}9\\{7.5}\end{aligned}} \right)\end{aligned}\)

Solve further,

\(\begin{aligned}\left( {{{\left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)}^T}\left( {\begin{aligned}1&{ - 3.5}\\1&{ - 0.5}\\1&{1.5}\\1&{2.5}\end{aligned}} \right)} \right)\beta & = \left( {\begin{aligned}{\frac{1}{4}}&0\\0&{\frac{1}{{21}}}\end{aligned}} \right)\left( {\begin{aligned}9\\{7.5}\end{aligned}} \right)\\ &= \left( {\begin{aligned}{\frac{9}{4}}\\{\frac{{7.5}}{{21}}}\end{aligned}} \right)\\ &= \left( {\begin{aligned}{\frac{9}{4}}\\{\frac{5}{{14}}}\end{aligned}} \right)\end{aligned}\)

Substitute the obtained values into \(y = {\beta _0} + {\beta _1}x*\).

\(y = \frac{9}{4} + \frac{5}{{14}}\left( {x - 5.5} \right)\)

Hence, the required least-squares line is \(y = \frac{9}{4} + \frac{5}{{14}}\left( {x - 5.5} \right)\).

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

Let \(X\) be the design matrix in Example 2 corresponding to a least-square fit of parabola to data \(\left( {{x_1},{y_1}} \right), \ldots ,\left( {{x_n},{y_n}} \right)\). Suppose \({x_1}\), \({x_2}\) and \({x_3}\) are distinct. Explain why there is only one parabola that best, in a least-square sense. (See Exercise 5.)

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

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

Given data for a least-squares problem, \(\left( {{x_1},{y_1}} \right), \ldots ,\left( {{x_n},{y_n}} \right)\), the following abbreviations are helpful:

\(\begin{aligned}{l}\sum x = \sum\nolimits_{i = 1}^n {{x_i}} ,{\rm{ }}\sum {{x^2}} = \sum\nolimits_{i = 1}^n {x_i^2} ,\\\sum y = \sum\nolimits_{i = 1}^n {{y_i}} ,{\rm{ }}\sum {xy} = \sum\nolimits_{i = 1}^n {{x_i}{y_i}} \end{aligned}\)

The normal equations for a least-squares line \(y = {\hat \beta _0} + {\hat \beta _1}x\)may be written in the form

\(\begin{aligned}{{\hat \beta }_0} + {{\hat \beta }_1}\sum x = \sum y \\{{\hat \beta }_0}\sum x + {{\hat \beta }_1}\sum {{x^2}} = \sum {xy} {\rm{ (7)}}\end{aligned}\)

16. Use a matrix inverse to solve the system of equations in (7) and thereby obtain formulas for \({\hat \beta _0}\) , and that appear in many statistics texts.

Find an orthogonal basis for the column space of each matrix in Exercises 9-12.

10. \(\left( {\begin{aligned}{{}{}}{ - 1} & 6 & 6 \\ 3 & { - 8}&3\\1&{ - 2}&6\\1&{ - 4}&{ - 3}\end{aligned}} \right)\)

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

12. \(\left( {\begin{array}{*{20}{c}}{\frac{8}{3}}\\2\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