Answer to Question #262655 in Microeconomics for Zimi

Question #262655

Given the following table, use the matrix method to derive the constant and slope parameters of the sample regression function: Marks = f(Weekly party hours). X (Weekly party hours) 2,4,6,8,10,12,14,16 Y (Marks) 80,77,71,67,66,58,49,36


1
Expert's answer
2021-11-08T17:25:40-0500

We first tabulate the values of X and Y and calculate X2X^2 and XYXY



Using matrix;matrix


XX=[87272816]X'X=\begin{bmatrix} 8 & 72 \\ 72 & 816 \end{bmatrix}


XY=X'Y= [5044048]\begin{bmatrix} 504 \\ 4048 \end{bmatrix}


XX1=[0.6070.05360.05360.00595]X'X^{-1}=\begin{bmatrix} 0.607 & -0.0536\\ -0.0536 & 0.00595 \end{bmatrix}


b=(XX1)XY(X'X^{-1})X'Y


=[0.6070.05360.05360.00595]\begin{bmatrix} 0.607 & -0.0536\\ -0.0536 & 0.00595 \end{bmatrix}[5044048]\begin{bmatrix} 504 \\ 4048 \end{bmatrix}


=[88.95522.9288]\begin{bmatrix} 88.9552\\ -2.9288 \end{bmatrix}


constant=88.9552

slope=-2.9288


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment