Answer:
See explanation below.
Explanation:
If we assume a linear model with two variables and one intercept the model is given by:
![y_i = \beta_0 + \beta_1 x_(1j) +\beta_2 x_(2j)+ e_i](https://img.qammunity.org/2021/formulas/mathematics/high-school/cc6xq4oqqep2amosgr68zlj99z2wwr78hp.png)
The extension of this to a multiple regression modelwith p predictors is:
![y_i = \beta_0 + \sum_(j=1)^p \beta_j x_(ij) +e_i](https://img.qammunity.org/2021/formulas/mathematics/high-school/qvoba07q2jqj44znfonln9kf1kmprfjmx8.png)
We assume that we have n individuals
![i \in [1,...,n]](https://img.qammunity.org/2021/formulas/mathematics/high-school/wpez2oc5itsrspw5npw4qjyuj2mgbx7842.png)
And the distribution for the errors is
![e_i \sim N(0,\sigma^2)](https://img.qammunity.org/2021/formulas/mathematics/high-school/gz8crbrrtuns0qg8s9d912d0mf52uj1ijk.png)
and we can write this model with a design matrix X like this:
![y = Xb + e](https://img.qammunity.org/2021/formulas/mathematics/high-school/iytocjc5vc48tnia5jlblqsarx7ctjd0wv.png)
a nx1 response vector
represent the design matrix nx(p+1)
Where
is a nx1 vector of ones, and
is a (p+1)x1 vector of coeffcients
And
is a nx1 error vector
![e \sim N(0_n , \sigma^2 I_n)](https://img.qammunity.org/2021/formulas/mathematics/high-school/v60gz96zeuuz7y3z0ijwrc8nut7r0760x8.png)
![y|X \sim N (Xb, \sigma^2 I_n)](https://img.qammunity.org/2021/formulas/mathematics/high-school/sdeyjdilzvz65gvbrcmd6aog8fjji7yfgq.png)
Using ordinary least squares we need to minimize the following quantity:
![min_(b \in R^(p+1)) ||y-Xb||^2](https://img.qammunity.org/2021/formulas/mathematics/high-school/h9byhyc2rpyxw0m77z1fynq28afe5d622t.png)
And for this case if we find the best estimator for
we got:
![\hat b= (X'X)^(-1) X' y](https://img.qammunity.org/2021/formulas/mathematics/high-school/fkzskcy8ensnj1o0tbq23ho1lzjeq7lrfv.png)
And the fitted values can be written as:
![\hat y = X \hat b](https://img.qammunity.org/2021/formulas/mathematics/high-school/8y3hbtpw1jfnhup6s8r4m6icaegslqfvnh.png)
![\hat y = X(X'X)^(-1)X' y= Hy](https://img.qammunity.org/2021/formulas/mathematics/high-school/h8v23yne9dbrp0irsgb6pp5bwdsgvp2fbz.png)
Where
![H= X(X'X)^(-1) X'](https://img.qammunity.org/2021/formulas/mathematics/high-school/hy1ksd2h6tff4ep4tzn09kv15hz0dhlwvz.png)
In order to see if any coefficnet is significant we can conduct the following hyppthesis:
Null hypothesis:
![b_j = b_j^*](https://img.qammunity.org/2021/formulas/mathematics/high-school/et4syecu89rfj5152fdx0ywcqbs6xmm5b2.png)
Alternative hypothesis:
![b_j \\eq b_j^*](https://img.qammunity.org/2021/formulas/mathematics/high-school/w83lpl541wv9piv3w9yfwiufjibc0r618c.png)
For some j in {0,1,....,p}
We need to use the following statistic:
Where
![Z \sim N(0, 1)](https://img.qammunity.org/2021/formulas/mathematics/high-school/wwpplsubez6i2frh0fyaoh0nnedmdy0qaq.png)
And
are square roots of the diagonals of the diagomals of