239 views
0 0 votes

Which of the following is a least square solution $\hat{\mathrm{x}}$ to the equation

 

$$ 
\left[\begin{array}{cc}
1 & -2 \\
2 & 1 \\
1 & -2 \\
2 & 1
\end{array}\right] \mathbf{x}=\left[\begin{array}{l}
1 \\
3 \\
1 \\
3
\end{array}\right] 
$$

  1.  $\left[\begin{array}{c}11 / 9 \\ 1 / 9\end{array}\right]$ 
  2.  $\left[\begin{array}{l}3 / 2 \\ 1 / 2\end{array}\right]$
  3.  $\left[\begin{array}{c}7 / 5 \\ 1 / 5\end{array}\right]$
  4.  $\left[\begin{array}{l}2 \\ 1\end{array}\right]$

2 Answers

0 0 votes
$\hat{\beta} = (X^TX)^{-1}X^TY$

$X^TX = \left[\begin{array}{cc} 10 & 0 \\  0 & 10 \end{array}\right]$

$(X^TX)^{-1} = \left[\begin{array}{cc} \frac{1}{10} & 0 \\  0 & \frac{1}{10} \end{array}\right]$

$X^TY = \left[\begin{array}{cc} \frac{1}{10} & \frac{2}{10} & \frac{1}{10} & \frac{2}{10} \\  \frac{-2}{10} & \frac{1}{10} & \frac{-02}{10} & \frac{1}{10} \end{array}\right]$

$\hat{\beta} =  \left[\begin{array}{cc} \frac{7}{5} \\ \frac{1}{5} \end{array}\right]$
Answer:
Position:
Show:

Related questions

1 1 vote
1 1 answer
501
501 views
GO Classes asked Mar 18, 2025
501 views
Consider linear regression and logistic regression. They both use linear functions.They both can be used to solve regression prob-They both use the logistic activation fu...
1 1 vote
1 1 answer
245
245 views
GO Classes asked Mar 13, 2025
245 views
Consider a simple classification task with features $x_i \in \mathbb{R}^d$ and $k$ classes. Suppose we train a linear classifier to minimize the regularized least squared...
1 1 vote
1 1 answer
241
241 views
GO Classes asked Mar 13, 2025
241 views
Consider just the general shape of the following plots.For each of the following possible interpretations of the quantities being plotted on the $X$ and $Y$ axes, indicat...
1 1 vote
0 0 answers
184
184 views
GO Classes asked Mar 13, 2025
184 views
Consider the following training data: xy132130.5Suppose the data comes from a model $y=c x^\beta$ , for unknown constants $c$ and $\beta$. Use least squares linear regres...