‘Why Did You Choose This Model?’ A Beginner’s Guide to Having a Real Answer
From the publisher’s feed, collected in the ZeroLabs newsroom.
If you have done a few data science interviews, you have met this question. You explain a project, the interviewer nods along, and then: “so why did you choose that model?”Most beginners answer it as a trivia question. They describe what the model does. XGBoost handles non-linear relationships well. Random Forest is robust to outliers. Both statements are true, and neither one answers what was asked.What the interviewer is actually probing is the order you did things in. Did the problem lead you to that model, or did you pick a model you already knew and assemble a justification around it afterward? The second one is common, and it shows up fast under follow-up questions, because a justification built backwards has nothing underneath it.So this article walks through the order. The business decision sets the metric. The data narrows the candidates. An honest comparison picks between them. The cost of acting tells you whether the difference was worth anything. And a written record is what lets you still explain all of it six months later, in a room, under questioning.It starts in a place that has nothing to do with models.1. Start with the decision the model supports.Model selection does not start at the model. It starts at the decision someone is going to make with the output. If nobody acts differently based on a prediction, the prediction has no value, and no model choice can fix that. So the first question is not “classification or regression"; it is "Who does what differently once this thing is running?”That question pulls three things into place, in order.The chain runs left to right. Each step constrains the next, and the model does not appear until all three are fixed.Take a subscription business with 10,000 active customers. Roughly 8% of them churn each quarter. The retention team wants a model that predicts churn.Ask what they will do with it, and the problem changes shape. They are going to send a retention offer. The offer costs money to send, so they cannot send it to everyone. Their budget covers 1,000 customers per quarter.That single constraint rewrites the task. The model is no longer being asked, "Will this customer churn?" It is being asked to “rank all 10,000 customers so the top 1,000 contain as many real churners as possible.”Which means the metric is precision in the top 1,000, not accuracy. This matters more than it sounds. A model that predicts nobody churns is 92% accurate on this data and completely useless. Accuracy is not a wrong metric here so much as an irrelevant one, and reporting it in an interview signals that you never asked what the model was for.Notice that no model has been mentioned yet. Nothing so far depends on knowing what gradient boosting is. That is the point: the constraints that will eventually justify your choice are all set before the choice exists.Those constraints tell you what the model has to do. The next question is what you have to work with.2. Read the data before you shortlist.A shortlist of candidate models should come out of the data’s properties, not out of habit. Six properties get you most of the way there, and all six can be checked before you fit anything.Data ChecklistRead down the last column, and the shortlist writes itself: regularized logistic regression, a random forest, and gradient boosting. Deep learning is out on row count. Anything built for sequences or images is out on signal type.One row deserves a second look. The number that constrains you is not 10,000; it is 800, because that is how many churners the model has to learn from. Effective sample size is set by the rarer class, and beginners routinely overestimate how much data they have by quoting the total.This is worth doing in writing even when the answer feels obvious, because the column you will be asked about in an interview is the third one. “Why not a neural network?" has a one-sentence answer if you did this and no answer at all if you did not.One caution. The table is a record of your reasoning, not a lookup chart. The thresholds are soft, and they interact. Ten thousand rows is thin for deep learning on tabular data, but ten thousand rows of raw text would be a different conversation entirely. If you quote a rule without being able to say why it exists, an interviewer will find the edge of it quickly.You now have three candidates and no way to choose between them. Before fitting any of them, you need something to measure them against.3. Always run a baseline.A model score on its own means nothing. Precision of 38% is excellent or embarrassing depending on what the alternatives would have scored, and the only way to know is to measure them.Three baselines are worth having, and they take almost no time compared to the model you are planning to build.The first is doing nothing clever. Contact 1,000 customers at random, and roughly 8% of them will be churners, because that is the base rate. This is the floor. Any targeting at all has to beat it.The second is a business rule. The retention team almost certainly has a hunch, something like “customers on month-to-month contracts are the risky ones.” Encode that hunch as a rule and score it. It costs an afternoon, and it is the thing your model is actually replacing.The third is a simple model. Regularized logistic regression on the same features, with the same validation setup you will use later. This one tells you how much of the signal is linear, which is the single most useful number you can have before deciding whether complexity is justified.Baseline LadderWhat the ladder protects you from is finding out late. If logistic regression captures most of the available signal, gradient boosting was never going to be worth its maintenance cost, and you would rather learn that in week one than after shipping. If your complex model somehow scores far above everything below it, that gap is more likely a leak than a breakthrough, and the baselines are what make the gap visible.In an interview this shows up directly. “The model reached 38% precision” is an uninterpretable sentence. “It reached 38% against 30% for logistic regression, 19% for the business rule, and 8% for no targeting at all” is a finding.You have candidates and you have baselines. What you do not yet have is a way to compare them that will not mislead you.4. Compare honestly, or none of the rest matters.Everything so far can be done well and still produce a wrong answer, because the comparison itself is where most beginner evaluations quietly break.Split first, then touch the data. Scaling, imputing, encoding, and feature selection: each one learns from the rows it sees. Fit them on the full dataset, and information from your validation folds leaks into training, and the score comes back optimistic. Fit the whole pipeline inside each fold instead.Leakage OrderMatch the split to the data. Stratified k-fold suits this churn data, where customers are independent and nothing is time-ordered. Time series need a time-based split, or the model learns from the future. Repeated entities need grouped splits, or the same customer lands on both sides.Check that every feature exists at prediction time. A column-like cancellation_reason is recorded after churn happens. It will give you a spectacular score and a model that cannot run.Report the range, not just the mean. A single averaged number hides how much the score moved depending on which rows fell where.Logistic regression’s best fold still sits below every tree-model fold, so that gap survives any reshuffling. Random forest and gradient boosting are different: their ranges overlap almost entirely. A significance test will not rescue the comparison either, because cross-validation folds share training data and the usual variance formulas understate the uncertainty. The honest conclusion is narrow: this evidence does not establish that one outranks the other.Give every candidate the same tuning budget. Tune gradient boosting all afternoon and fit the random forest with defaults, and you have compared your effort, not the models.Saying “the evidence did not separate these two, so I chose on other grounds” is one of the strongest things you can offer in an interview. But before breaking that tie, it is worth asking what the difference between them is worth at all.5. Price the decision.A metric tells you which model ranks better. It does not tell you whether the difference is worth anything. For that you need the economics of the action the model triggers.Start before any model. Contacting one customer costs $10. Retaining one is worth $200. So outreach pays for itself whenever the person contacted had at least a 5% chance of churning, because $10 divided by $200 is 0.05.The base churn rate is 8%, already above that line. Contact 1,000 customers at random, and you catch about 80 churners: $16,000 gained against $10,000 spent, for $6,000 net. That is the real baseline. A model has to beat $6,000, not zero.Now price the options at the same 1,000-customer cap.Net value per campaign at a 1,000-customer cap, with contact costing $10 and a retained customer worth $200.Net value per campaign at a 1,000-customer cap, with contact costing $10 and a retained customer worth $200.Gradient boosting is worth about $15,600 more per campaign than logistic regression, or roughly $62,000 a year if the campaign runs quarterly. Random forest, a point lower, is worth about $53,600 a year on the same arithmetic. Either tree model clears $50,000 a year over the simple baseline, and that is the number that justifies the extra complexity, far better than “it scored higher.”Two things fall out of this that are worth noticing.Ranking beats volume. Drop the cap and contact all 10,000 customers. You catch every churner, all 800 of them: $160,000 gained against $100,000 spent, for $60,000 net. That is worse than targeting 1,000 well. Perfect recall loses to good precision once contact costs money.The economics can invert the conclusion. Everything above assumes a contacted churner is always retained. Suppose only 40% accept the offer. The value of a true positive drops to $80, and break-even precision rises from 5% to 12.5%. Random targeting at 8% now loses $3,600. Logistic regression nets $14,080, and gradient boosting nets $20,320.Same models and the same precision under two assumptions about how many contacted churners accept the offer.Same models, same precision, opposite conclusion about whether untargeted outreach is viable at all. Nothing about the model changed. One business assumption did.This is what to carry into an interview: the metric ranked the models, the economics decided whether the ranking mattered. A candidate who can say “moving past the simple baseline was worth more than $50,000 a year, and here is the assumption that figure depends on” is answering a different question from the one who says they picked the model with the higher score.6. Name the trade-off and pick a side.Two models remain and the evidence does not separate them. This is where you choose on something other than the score, and where an interviewer learns whether you understand what a model costs after it ships.Four trade-offs cover most cases. Each has a question that tells you whether it applies.Three of them are already settled by what the earlier sections established. Scoring runs overnight in a batch, so latency costs nothing. Both candidates support feature attribution, so either one lets the team explain an individual offer. And 800 positives against twenty features leaves room for a flexible model without leaving room for an unlimited one, which both tree ensembles respect.The fourth decides it. Gradient boosting has more hyperparameters that interact, and it is more sensitive to how they are set, while random forest is hard to get badly wrong with defaults. The team maintaining this has two people and no ML platform, so that robustness is worth more to them than a point of precision.And you can price exactly what that choice costs. At the same 1,000-customer cap, random forest nets $63,600 against gradient boosting’s $65,800: a gap of $2,200 per campaign, or about $8,800 a year. If the two models were truly separated by that margin, which the fold ranges say they are not, you would be giving up roughly a seventh of what moving beyond logistic regression gained you in the first place.That is the shape of a defensible answer. Not “I picked the best model,” but “I picked the one the team can maintain, and the most it could be costing us is $8,800 a year.”7. Write the decision record.Everything above is reconstructible for about a week. After that the reasoning fades and you are left with a model and a vague memory of having compared things.Write this down while you build, not before the interview:Decision supported. Who acts differently because of this output.Metric and why. Including what you rejected and the reason.Constraints. Latency, interpretability, data volume, who maintains it.Candidates. One line each on why it stayed or went.Results. Mean and range per model, same tuning budget.Choice and cost. What you picked and what you gave up, priced if you can.What would change this. The most useful line and the one people skip.That last item is what separates a record from a justification. “If acceptance rates fall below 12.5%, untargeted outreach stops paying and this analysis needs redoing” tells a reader you understood the decision rather than defended it.8. Compress it to 60 secondsIn an interview you have about a minute before the follow-up. Four beats fit:The constraint that shaped the problemWhat you shortlisted and what you ruled outHow you compared themWhat you traded awayWorked through, that sounds like this:“The retention team could only contact 1,000 customers a quarter, so the task was ranking rather than classification, and the metric was precision in the top 1,000. Tabular data, 10,000 rows, only 800 churners, so deep learning was out and I shortlisted logistic regression, random forest and gradient boosting. Logistic regression came in about seven points behind and the fold ranges did not overlap, so that gap was real. The two tree models were within each other’s fold ranges, so I treated them as tied. I chose random forest because the team has no ML platform and it is harder to get badly wrong with default settings. At our volumes that choice is worth at most about $8,800 a year, which was worth paying for the stability.”About 125 words. The follow-ups it invites, and the short answers:“What if you had ten times the data?” Revisit deep learning, and re-run the comparison rather than assuming it wins.“How do you know it is not overfitting?” The fold range, and a held-out period the model never saw.“What if interpretability did not matter?” It would not change this decision, because maintenance was the deciding constraint.“Why not just contact everyone?” Worked it out: $60,000 against $63,600 for targeting 1,000 well.Three trapsChoosing first and reasoning backwards. Interviewers find this in one follow-up, because a justification assembled afterward has no answer to “what else did you try?”Quoting a score with nothing around it. A number with no baseline and no range cannot be interpreted, including by you.Calling a model state of the art instead of appropriate. The second word is the one that gets hired, because it implies you knew what the problem required.None of this is about knowing more algorithms. It is about being able to show that the problem led you somewhere, rather than that you arrived somewhere and explained it later.‘Why Did You Choose This Model?’ A Beginner’s Guide to Having a Real Answer was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.