Correlation with sale price, before and after feature engineering. The new
Total SF feature becomes the single strongest predictor.
Data & cleaning
2,930 sales, 80 features, mostly-structural gaps
Twenty-seven of the 80 columns had missing values, but almost all of it was structural,
not random: a blank Pool QC or Garage Area means the feature
doesn't exist on that property, not that it went unrecorded. We filled those with an
explicit "None" category or 0, rather than imputing a plausible value onto a feature that
isn't there.
Lot Frontage was the one genuinely missing variable (~17% of rows), so we
imputed it with the neighborhood median rather than the global one. Following the
dataset author's own guidance, we also removed five extreme homes over 4,000 sq ft, three
of which sold far below what their size and quality implied — non-market sales that would
otherwise drag a regression line toward themselves.