Six Columns In, How Many Numbers Out?

Linear Algebra for MLEasy+10 XP+10

Six Columns In, How Many Numbers Out?

A loan-scoring team is turning a raw spreadsheet into a design matrix XXX.

The spreadsheet has 180180180 rows — one per applicant — and six columns:

ColumnKindDetail
agenumericyears
annual_incomenumericrupees
years_experiencenumericyears
education_levelcategorical444 levels
home_citycategorical666 levels
owns_carbinaryalready stored as 000 / 111

Three rules are applied while XXX is built:

  1. 121212 applicants have a missing annual_income, and those rows are deleted before anything else happens.
  2. A categorical column with kkk levels becomes k−1k-1k−1 indicator columns — one level is held out as the reference. A column already stored as 000 / 111 is numeric, so it is used as-is.
  3. The model carries a bias term, implemented as a leading column of 111s.

If XXX has nnn rows and ddd columns, it stores n×dn \times dn×d individual numbers.

How many individual numbers does the finished design matrix XXX contain?

Give the exact whole number.

Hints

Solve it to unlock the solution

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

entries