Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

i need help with assignment not able to understand and complete it. Linear algebra 1. Partition matrices: Consider using a partition matrix in OLS. That

i need help with assignment not able to understand and complete it.

image text in transcribed
Linear algebra 1. Partition matrices: Consider using a partition matrix in OLS. That is, consider X = [X1, X2] and B = B2 where X1 is n x 1, X1 is n x 12, Bi is 1 X 1, B2 is 72 x 1, and r1 + 72 = ", the overall number of columns in X. When we take the inverse of a 2 x 2 partition matrix -CA-IBJ-1CA-1 -(A-BD-C)-1BD-1 [C D = (A-BC-'D)- (D - CA-1B)-1 Find the equations for B1 and B2 using the OLS estimator B = (X'X)-1X'y Programming 2. Newey-West estimator: Extend the linear model code we wrote in class to implement a Newey-West corrected OLS estimator with autocovariance term. The robust variance covariance matrix for this Newey-West estimator is Var(B) = (X'X)-1X'Sx(X'X)-1 where 62 01 O 01 01 n = 0 01 02 . . . 0 . . . % . You can either create a new inheriting class or you can add the functionality as an option in the least squares code that we wrote. CS Scanned with CamScanner

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Numerical Analysis

Authors: Richard L. Burden, J. Douglas Faires

9th edition

538733519, 978-1133169338, 1133169333, 978-0538733519

More Books

Students also viewed these Mathematics questions