KatInterview

Critique and redesign a flight delay prediction analysis

Machine LearningModel answer
HardModel answerMachine Learningfeature-engineeringtime-seriesmodel-evaluation

Last updated

Review a flawed delay-forecasting slide deck, fix the modeling and feature engineering, redesign two charts, and deliver an actionable ops recommendation.

Scenario

You are a data scientist embedded with an airline's operations team. A colleague has built an initial analysis aimed at predicting departure delays and has prepared a short slide deck summarizing their approach. You have 15 minutes to review it before walking a Director of Operations through your assessment.

The deck's current approach:

  • Uses linear regression with the calendar date encoded as a plain integer.
  • Plots delay frequency against a mixed axis of weekdays and calendar months, with no seasonality controls.
  • Includes several features whose values are only observable after a flight has already pushed back.

Your presentation should cover four areas, described below.


What you are expected to address

1. Feature engineering critique

Walk through what is wrong with how time is encoded, what external data is missing, what route-level structure is being ignored, and — most importantly — which features constitute data leakage. Explain why leakage is especially dangerous here.

2. Modeling choices, metrics, and validation

Should this be a regression or a classification problem? Justify your framing in terms of the operational decision it supports. Recommend appropriate metrics (and explain why common defaults like RMSE or accuracy fall short here). Describe a validation scheme that respects the temporal structure of flight data.

3. Visualization and storytelling

Identify two specific charts in the deck that should be replaced. For each, describe the problem with the current version, what you would show instead, and why the new version is more useful for an operations audience. Then outline how you would frame the overall narrative for a non-technical Director — what do you lead with, and what do you never lead with?

4. Concrete recommendation with a four-week verification plan

Propose one operational change that could reduce compensation payouts by roughly 5% without increasing cancellations. Define the experiment or KPI tracking plan that would let you confirm impact within four weeks.

Hints

Hint 1

Before you critique any feature, pin down the prediction horizon first — what time is the model supposed to score a flight, and what information is legitimately available at that moment? Everything else follows from that.

Hint 2

Compensation is triggered by crossing a threshold (e.g., a delay over 3 hours), not by minimizing average error. Let that business reality drive your choice of model framing and evaluation metric.

Hint 3

For the storytelling section, think about what a Director of Operations actually controls. Charts that show 'which route-time slots drive the most payout dollars' are far more actionable than charts showing model coefficients or average delay in minutes.