All jobs / Data science / ML / AI / Statistics
Data science / ML / AI interview question · 1–3 years
You tried twenty features and kept the one with p < 0.05 on the same set. What is the honest write-up?
The strongest answer
I searched and I must say so — that p-value is not a planned test. Confirm on a fresh holdout or treat it as exploratory
Why it works
Exactly. Search inflates wins. Either pre-specify or confirm on new data — and write the search down.
What a good answer covers
- Multiple tries inflate “significance.”
- Write the search; confirm on new data.
- Do not report only the winner.
- Do not adjust after peeking and call it planned.
Answers that fall short
- Close, but not the strongest: p < 0.05 means it is real; the twenty tries do not count
The tries count. They are the experiment. - Weak: I only report the winner so the paper is clean
Hiding the search is the dishonest part. - Red flag: I divide 0.05 by twenty after I saw the winner
Post-hoc Bonferroni on the winner is costume maths.
Who gets asked this
More Statistics questions
- When is an A/B the wrong next step for a model?
- A linear regression gives ad spend a coefficient of 3.2 on revenue. A stakeholder says “every extra dollar…
- You will try three models and two metrics. How do you stay honest?
- You rank products by average rating. A new item with one 5-star review sits above an item rated 4.6 over…
- You are summarising customer spend. A few customers spend a hundred times the typical one. Which summary do…
- Ice cream sales and drowning rise together. The model uses ice cream to “predict risk.” What do you say?
- Your model’s AUC on the test set is 0.82 with a 95% confidence interval of 0.79 to 0.85. What does that…