MML Discourse archived in May, 2026

Questions on Review for Exam 2

mark

You can ask questions about our review for exam 2 by posting them here!

User 026

For problem 2.a, would it be acceptable to answer something along the lines of "Individual NBA Players"

And for 2.d would "N/A" or "none" work as well?

User 026

Instead of using the definition of linear dependence to define linear independence, would the following work instead?

We say that a set of vectors

S = \{\mathbf{u}_1, \mathbf{u}_2, \mathbf{u}_3, \dots, \mathbf{u}_n\}

is linearly independent if the equation

\alpha_1\mathbf{u}_1 + \alpha_2\mathbf{u}_2 + \dots + \alpha_n\mathbf{u}_n = \mathbf{0}

has only the trivial solution (that is, all \alpha_i = 0).

mark

Yes - that's great!!

User 006

Professor,

for the review sheet you handed out in class today I had a question about #4. I am conceptually lost on where to go once I have calculated


the inverse matrix as shown in my image below. Can you please offer some insight.

mark

I guess the problem is to find the least squares solution to the overdetermined linear system

\begin{bmatrix} 1 & 1 \\ -2 & 0 \\ 1 & 2 \\ \end{bmatrix} \begin{bmatrix} x_1\\x_2 \end{bmatrix} \approx \begin{bmatrix} 0\\-2\\-1 \end{bmatrix}.

The general technique is to solve the problem using the normal equations

A^T A\hat{x} = A^T b.

You've written that as

\hat{x} = (A^T A)^{-1} A^T b.

I guess you've multiplied both sides by (A^T A)^{-1} to solve for \hat{x}.

I strongly recommend against that. The matrix inverse is a useful theoretical tool for reasoning about systems. It is rarely used in computations because it leads to far too many arithmetic operations.

The recommended way to solve

A^T A\hat{x} = A^T b

is via Gaussian elimination. Thus, write out those equations in full matrix form:

\begin{bmatrix} 1 & 2 & 1 \\ 1 & 0 & 2 \end{bmatrix} \begin{bmatrix} 1 & 1 \\ 2 & 0 \\ 1 & 2 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} 1 & 2 & 1 \\ 1 & 0 & 2 \end{bmatrix} \begin{bmatrix} 0 \\ -2 \\ 1 \end{bmatrix}.

Then expand the products to get

\begin{bmatrix} 6 & 3 \\ 3 & 5 \end{bmatrix} \begin{bmatrix} x_1 \\ x_2 \end{bmatrix} = \begin{bmatrix} -3 \\ 2 \end{bmatrix}.

That system is not hard to solve. You could write it as a single augmented matrix or even just as a 2\times2 system:

\begin{aligned} 6x_1 + 3x_2 &= -3 \\ 3x_1 + 5x_2 &= 2. \end{aligned}

I'll leave it to you guys to solve that system!

User 006

For question 3 and 6 are you looking for proofs? Can you please provide an example if so.

mark

Question 3 asks

  1. Consider the numeric data \{1,2,4,4\}.
    a. Write down the computation showing that the mean is 2
    b. Write down the computation showing that the standard deviation is \sqrt{3/2}.

I literally expect you to write down

\mu = \frac{1+2+4+4}{4} = 2

and

\sigma = \sqrt{\frac{1}{4}((1-2)^2 + (2-2)^2 + (4-2)^2 + (4-2)^2)} = \sqrt{3/2}.

I would not call that a proof; it's a computation with the formula made explicit.

User 006

My apologizes I meant 3 and 6 on the work sheet you handed out in class Wednesday.

mark

Question 6 asks

Show that the null space of a linear transformation mapping \mathbb R^n \to \mathbb R^m is closed under linear combinations and is, therefore, a subspace of \mathbb R^n.

Let T:\mathbb R^n \to \mathbb R^m be a linear transformation and let \vec{u} and \vec{v} be in the nullspace of T. That means that

T(\vec{u}) = T(\vec{v}) = \vec{0}.

Now, let \alpha,\beta\in\mathbb{R} be scalars. Then, by linearity of T,

T(\alpha\vec{u} + \beta\vec{v}) = \alpha T(\vec{u}) + \beta T(\vec{v}) = \vec{0}+\vec{0} = \vec{0}.

Thus, \alpha\vec{u} + \beta\vec{v} is also in the nullspace of T so that the nullspace is closed under linear combinations.\Box

mark

I thought you might've! Number 6 off the review sheet is a good example of a proof, too, and I've just responded to that.

User 004

When it comes to providing a basis for null space and range for question 5, what exactly are we expected to write?

User 004

When you're doing Gaussian elimination, aren't the 2's supposed to be negative still for

\begin{bmatrix}1 & -2 & 1 \\ 1 & 0 & 2\end{bmatrix}

and

\begin{bmatrix}1 & 1 \\ -2 & 0 \\ 1 & 2\end{bmatrix} ?
mark