One Column of Ones, Three Columns Total

Linear Algebra for MLEasy+10 XP+10

One Column of Ones, Three Columns Total

A property-price model is trained on four homes. The raw features are:

homebedroomsage (years)
A210
B35
C320
D48

Before fitting, a column of ones is prepended to this table so the model can learn an intercept. Call the resulting design matrix XXX, with its columns ordered [ 1, bedrooms, age ][\,\mathbf{1},\ \text{bedrooms},\ \text{age}\,][1, bedrooms, age].

What is the shape of X⊤XX^\top XX⊤X, and what is the value of its diagonal entry belonging to the bedrooms column?

Hints

Solve it to unlock the solution

Once you get it right, the reasoning behind the answer shows up here.

Select all that apply.