KatInterview

Predict Property Sale Prices from Multi-Year Transaction Records

Machine LearningModel answer
HardModel answerMachine Learningregressionfeature-engineeringtime-series-validation

Last updated

Design an end-to-end supervised ML pipeline to estimate residential sale prices from historical transaction data, including market shocks and missing values.

Predict Property Sale Prices from Multi-Year Transaction Records

You have access to a database of residential property sales spanning several years. Each record contains property attributes, location data, and the date the transaction occurred. The dataset is messy: some fields have gaps, and the time window includes a major macroeconomic disruption that temporarily broke many of the usual patterns in the market.

Your task is to build a model that estimates what a given property would sell for. This is a discussion question — walk through your reasoning at every step and expect the conversation to go deep on your choices.

Constraints

  • The dataset covers multiple years and contains records with missing values in various fields.
  • Property attributes may include things like size, number of rooms, age, and type, but no fixed feature list is handed to you — proposing and justifying the features is part of the task.
  • The data includes at least one period where market behavior shifted dramatically, so you cannot assume the statistical relationships stay stable over time.
  • Predictions are served in batch; low-latency serving is not a requirement unless you choose to introduce one.
  • No coding is required, but name concrete algorithms and write out formulas where they clarify your reasoning.

Questions to Resolve Before You Start

Before diving in, consider what clarifying questions you would ask:

  • Who uses the predictions, and at what granularity — individual listings, a portfolio of existing properties, or a regional price index?
  • Should the model predict what a property would sell for today, or at some point in the future?
  • How geographically diverse is the data — one metro area, or many different markets?
  • How large is the dataset, which fields have the most missingness, and do any records lack a reliable sale price?
  • Are there interpretability requirements — does someone need to understand why a specific property was priced the way it was?
  • How often can the model be retrained, and how quickly does it need to respond to market shifts?

Part 1

Define your prediction target precisely and lay out the feature set you would build. Explain how you turn raw transaction records into a labeled training dataset — including how you handle duplicates, outliers, and non-standard transactions.

Part 2

Choose a model family and justify it. Explain specifically why a non-linear model is likely to outperform a linear baseline on this kind of data, referencing concrete characteristics of real-estate transactions. Then define your evaluation metrics and describe your validation strategy.

Part 3

Describe your approach to missing data. How do you select which features to keep, and how do you guard against data leakage — which forms of leakage are most likely here?

Part 4

Markets evolve. How do you monitor the model after deployment to catch degradation? How would your pipeline have handled a sudden, large shock to market behavior?

Hints

Hint 1

The target variable is right-skewed and has multiplicative error structure — think about what transformation makes errors comparable across cheap and expensive properties, and what the back-transformation recovers (mean vs. median).

Hint 2

Random cross-validation will give you an optimistically wrong error estimate. Think about why future market levels and neighborhood comparables can leak into training folds, and design a validation scheme that prevents it.

Hint 3

Drift is not one thing — the mix of properties coming to market, the relationship between features and price, and the noise level can all shift independently. Treating them as one problem leads to poor diagnosis and slow response.