Interview Insights · Data Scientist
Why Data Scientist Candidates Freeze on the Simplest Questions
Quick summary — Simple DS questions
Simple questions catch candidates out because they overthink them. A layered answer gives you a calm, fast route through any basic question. Basic questions such as 'what is the difference between mean and median?', 'what is overfitting?' or 'what does a p-value tell you?' appear in almost every data science interview. Candidates freeze for two reasons: they suspect a trick, or they try to say everything at once. The fix is a simple pattern: one-line definition, a small example, one nuance and then stop. Practise it until it is automatic.
In this guide you will learn:
- Why simple questions cause more freezes than hard ones
- The four-layer answer pattern for any basic concept
- Tiny code demos for mean vs median and overfitting
- Correct, simple explanations of p-values and correlation
- A drill list of basic questions to practise aloud
SECTION 01Why the simplest questions cause the longest silences
When I ask a hard question, candidates expect to struggle, so they think aloud. When I ask a simple one, they expect to answer instantly, and when the perfect answer does not arrive in two seconds, they panic. Many also assume that a senior interviewer would never ask something basic unless it were a trick.
It is usually not a trick. I ask simple questions because they reveal whether you understand the foundations or only use libraries. I also want to see how you explain. A clear thirty-second answer to 'what is a median?' tells me how you will explain results to a manager.
| Simple question | Why candidates freeze | Layer 1: one-line answer | What I am really checking |
|---|---|---|---|
| Mean vs median? | Feels too basic to be the real question | Mean is the average; median is the middle value | Do you know when each misleads? |
| What is overfitting? | Too much to say at once | Fitting training data so closely it fails on new data | Can you spot it in practice? |
| What is a p-value? | Fear of the textbook wording | How surprising the data is if there were no real effect | Do you avoid the common misreading? |
| Correlation vs causation? | Sounds like a cliche | Moving together does not mean one causes the other | Can you name a confounder? |
Interviewer: What is the difference between mean
and median?
Candidate: (thinking: this is too easy, what is the
catch? is it about skewness? distributions? should I
mention mode? geometric mean?)
(eight seconds pass)
Candidate: So... it depends on the distribution...
there are different types of means...
Interviewer: Let's try a concrete case.Interviewer: What is the difference between mean
and median?
Candidate: The mean is the average, and the median is
the middle value when you sort the data.
For example, five salaries of 3, 4, 4, 5 and 50 lakh:
the mean is 13.2 but the median is 4. One outlier pulls
the mean up a lot.
So for skewed data like income or delivery times, I
usually report the median, or both.
Would you like me to talk about how I check skewness?
The layered answer takes about twenty seconds. It gives a definition, a worked example with numbers you can check, and a practical rule. Then it hands control back. Most interviewers will either move on or ask for exactly the depth they want.
SECTION 02Layered answers you can back with a tiny demo
The strongest layer two is an example you could run. You do not need to write code in the interview, but knowing a tiny demo for each basic concept makes your example concrete and confident. If you have actually seen a train score climb while the test score falls, you will never freeze on 'what is overfitting?' again.
The demos below take a minute to run. Run them yourself before the interview and remember what the output looked like. Then your spoken example comes from experience, not from a textbook.
| Concept | Layer 2 example | Layer 3 nuance | Demo to run beforehand |
|---|---|---|---|
| Mean vs median | Salaries with one large outlier | Report median for skewed data | pandas mean and median on a list |
| Overfitting | A deep tree scores perfectly on train | Watch the gap between train and test | Loop over tree depths |
| Standard deviation | Two classes with the same average mark | Spread matters as much as centre | numpy std on two arrays |
| Regularisation | Penalising large weights | Trades a little bias for less variance | Ridge with growing alpha |
import pandas as pd
salaries = pd.Series([3, 4, 4, 5, 50]) # lakh per year, toy data
print("mean :", salaries.mean()) # 13.2
print("median:", salaries.median()) # 4.0
print("skew :", round(salaries.skew(), 2))
# Remove the outlier and compare
trimmed = salaries[salaries < 20]
print("mean without outlier :", trimmed.mean()) # 4.0
print("median without outlier:", trimmed.median()) # 4.0
# The median barely moves; the mean collapses from 13.2 to 4.from sklearn.datasets import make_classification
from sklearn.model_selection import train_test_split
from sklearn.tree import DecisionTreeClassifier
X, y = make_classification(n_samples=1000, n_features=20,
n_informative=5, flip_y=0.05,
random_state=0)
X_tr, X_te, y_tr, y_te = train_test_split(X, y, test_size=0.3,
random_state=0)
for depth in [1, 3, 5, 10, None]:
tree = DecisionTreeClassifier(max_depth=depth, random_state=0)
tree.fit(X_tr, y_tr)
print(f"depth={str(depth):5s} train={tree.score(X_tr, y_tr):.3f} "
f"test={tree.score(X_te, y_te):.3f}")
# With no depth limit, train accuracy reaches 1.0 while test
# accuracy stops improving: that gap is overfitting.
When you explain overfitting aloud after running this, you can say: 'With an unlimited tree, training accuracy hits 100% but test accuracy falls behind. The model memorised noise, including the labels I deliberately flipped.' That is a lived example, and it sounds like one.
SECTION 03P-values and causation: the two most misanswered basics
Two basic questions are answered wrongly so often that a correct, simple answer immediately stands out. The first is 'what is a p-value?'. The common wrong answer is 'the probability that the null hypothesis is true'. The second is 'correlation versus causation', where candidates say the phrase but cannot give a real mechanism.
For both, the layered method works well. Give the plain definition, a concrete example, and one sentence of nuance. Practise the exact wording, because under pressure people fall back on the version they memorised first.
| Topic | Common wrong answer | Correct plain answer | Nuance worth adding |
|---|---|---|---|
| P-value | Chance the null hypothesis is true | Chance of data at least this extreme if the null were true | Small p does not mean a large effect |
| Significance level | Proof the result is important | A cut-off chosen before the test, often 0.05 | Testing many things raises false positives |
| Correlation | One variable drives the other | They tend to move together | Correlation can be near zero for curved relations |
| Causation | Strong correlation proves it | Changing one actually changes the other | Confounders or experiments decide it |
import numpy as np
from scipy import stats
rng = np.random.default_rng(1)
old_page = rng.normal(loc=50, scale=10, size=200) # time on page, toy data
new_page = rng.normal(loc=52, scale=10, size=200)
t_stat, p_value = stats.ttest_ind(new_page, old_page, equal_var=False)
print(f"t = {t_stat:.2f}, p = {p_value:.4f}")
print(f"difference in means = {new_page.mean() - old_page.mean():.2f}")
# Layered answer:
# 1. "The p-value is how likely a difference this big would be
# if the two pages really performed the same."
# 2. "Here it tells me whether a gap like this is unusual
# under 'no real difference'."
# 3. "It does not tell me the size of the effect, so I report
# the difference and its interval too."import numpy as np
rng = np.random.default_rng(0)
temperature = rng.normal(30, 5, 1000)
ice_cream = 2.0 * temperature + rng.normal(0, 5, 1000)
swim_accidents = 0.5 * temperature + rng.normal(0, 3, 1000)
print("raw correlation:",
round(np.corrcoef(ice_cream, swim_accidents)[0, 1], 2))
# Remove the effect of temperature from both variables
def residual(y, x):
slope, intercept = np.polyfit(x, y, 1)
return y - (slope * x + intercept)
print("after controlling for temperature:",
round(np.corrcoef(residual(ice_cream, temperature),
residual(swim_accidents, temperature))[0, 1], 2))
# Hot days drive both. Once temperature is removed,
# the correlation drops to roughly zero.
The confounder demo is a classic textbook story turned into twelve lines you can run. Saying 'I simulated it once: the correlation was clearly positive, and it vanished once I controlled for temperature' is far more convincing than repeating the phrase 'correlation is not causation'.
Many Uncodemy data science students keep a one-page sheet with these four basics in layered form. Reading it aloud before an interview takes two minutes and removes most of the freeze risk.
SECTION 04Drill: basic questions in layered form
Practise these aloud with a timer. Each answer should take under forty seconds and end with an offer to go deeper. Record yourself and listen for the moment you start lecturing.
ANSWER EACH IN FOUR LAYERS
1. Mean vs median vs mode
2. Variance vs standard deviation
3. What is a normal distribution?
4. What is a p-value?
5. Type I vs Type II error
6. What is a confidence interval?
7. Correlation vs causation
8. Why does sample size matter?
Layers: define -> example -> nuance -> stopANSWER EACH IN FOUR LAYERS
1. What is overfitting? Underfitting?
2. What is the bias-variance trade-off?
3. Precision vs recall
4. Why split into train and test?
5. What does regularisation do?
6. Classification vs regression
7. What is cross-validation?
8. Why scale features for some models?
Rule: no answer may start with 'It depends'.AFTER RECORDING
[ ] Started speaking within three seconds
[ ] First sentence was a plain definition
[ ] Gave one small, concrete example
[ ] Added exactly one nuance
[ ] Stopped and offered more depth
[ ] Total time under forty seconds
[ ] No textbook phrase I could not explain
Question I froze on: ____________
Rewrite my first sentence: ____________
SECTION 05Habits that stop the freeze on basic questions
These habits make simple questions feel as easy as they are.
- Assume it is not a trick — Answer the plain version first. If the interviewer wanted something deeper, they will tell you.
- Never open with 'it depends' — Give the definition first. Conditions and exceptions belong in the nuance layer.
- Use numbers you can check — Small numeric examples, such as five salaries, make your answer concrete and verifiable.
- Run the demos once — Seeing overfitting or a confounder in your own output makes the explanation come from memory, not panic.
- End with an offer — Close with 'shall I go deeper on any part?' so you stop at the right time.
SECTION 06Interview Q&A — Simple DS questions
Q1When would you use the median instead of the mean?
When the data is skewed or has outliers, such as income, house prices or delivery times. A few extreme values pull the mean a long way, while the median stays close to the typical value. I often report both to show the skew.
Q2Explain overfitting to a non-technical person.
It is like a student who memorises last year's exam answers instead of understanding the subject. They score perfectly on old papers but struggle with new questions. A model that overfits learns the training data's noise and performs poorly on new data.
Q3What does a p-value of 0.03 mean?
If there were truly no effect, data at least this extreme would occur about 3% of the time. It suggests the result is unlikely to be just chance under that assumption. It does not give the probability that the null hypothesis is true, and it says nothing about how large the effect is.
Q4Give an example of correlation without causation.
Ice cream sales and swimming accidents both rise in hot weather. They are correlated, but temperature drives both. If you control for temperature, the relationship between them largely disappears.
Q5What is the difference between Type I and Type II errors?
A Type I error is a false positive: concluding there is an effect when there is none. A Type II error is a false negative: missing a real effect. Lowering the significance level reduces Type I errors but, for a fixed sample size, increases Type II errors.
SECTION 07Test yourself — Simple DS questions quiz
Five questions. No sign-up.
0 / 5Pick an answer to see why it is right or wrong.
SECTION 08Frequently asked questions
What basic questions are asked in a data scientist interview?
Common basics include mean versus median, standard deviation, p-values, Type I and II errors, correlation versus causation, overfitting, bias-variance trade-off, precision versus recall and why we split data into train and test sets.
Why do I blank out on easy interview questions?
Often because you expect a trick or try to give a complete answer immediately. Starting with a plain one-line definition, then adding an example, usually breaks the freeze.
How do I explain a p-value simply in an interview?
Say it is the probability of seeing data at least as extreme as yours if there were no real effect. Then add that it does not measure effect size or the probability that the null is true.
How long should an answer to a basic interview question be?
Usually twenty to forty seconds: a definition, a small example and one nuance. Then offer to go deeper rather than continuing for several minutes.
Do data science interviews ask statistics questions to freshers?
Yes, very commonly. Freshers are expected to know descriptive statistics, distributions, hypothesis testing basics and how these apply to evaluating models.
Does Uncodemy help with Data Scientist interview answers?
Yes. Uncodemy's Data Science Training Course in Noida (classroom and online) includes live projects, one-to-one mock interviews and resume reviews, so you practise Data Scientist interview answers with trainer feedback before the real interview. You can book a free demo class from this page to see how the sessions work.
SECTION 09Related reads
Classroom & online · Noida
Make the basics feel effortless
Our Data Science Training Course builds strong foundations in statistics, Python and machine learning, with rapid-fire question drills and mock interviews to keep you calm on basics.
Talk to a counsellor for current fees- Statistics foundations
- Hands-on ML in Python
- Rapid-fire Q&A drills
- Mock interview rounds