Data Science Interview Questions: Statistical Foundations
Reviewed by Mark Dickie · Last updated
14 questions on this page you can answer and see marked on the spot. Go to the first one
Data Science is a field that applies statistical and computational methods to turn raw data into practical decisions. For interview preparation, the statistical foundations layer covers probability distributions, sampling and estimation, hypothesis testing, and regression modeling: these are the topics that appear most often on whiteboard rounds and take-home challenges. You should be comfortable deriving expectations and variances, and you should be able to explain p-values and confidence intervals without common misinterpretations. Know when to pick a parametric test over a nonparametric one based on the assumptions your data satisfies.
What does a Data Science interview test on statistical foundations?
Most Data Science interviews open with a round that checks whether you can reason about uncertainty, not just recite formulas. Interviewers look for your understanding of when a t-test applies versus a z-test, what the Central Limit Theorem actually guarantees, and how the bias-variance tradeoff shapes model selection. They also test whether you can design experiments and interpret A/B test output. You may need to explain statistical findings to a stakeholder who has never taken a statistics course.
Which statistical topics show up most often?
| Topic | Typical question types | Difficulty (1–5) |
|---|---|---|
| Probability distributions | Expected value, variance, MGFs, Bayes' theorem | 2–3 |
| Sampling and estimation | MLE, method of moments, confidence intervals | 2–4 |
| Hypothesis testing | p-values, Type I/II errors, power, multiple testing | 3–4 |
| Regression | OLS assumptions, regularization, interpretation | 3–4 |
| Experimental design | A/B testing, randomization, sample size calculation | 3–5 |
| Nonparametric methods | Bootstrap, permutation tests, rank-based tests | 4–5 |
- Probability fundamentals: Bayes' theorem, conditional probability, common distributions (Normal, Poisson, Binomial, Exponential), and the Central Limit Theorem.
- Point estimation: Maximum likelihood estimation, bias versus consistency, and when the method of moments is faster to compute.
- Hypothesis testing framework: null and alternative hypotheses, test statistics, p-value interpretation, and how power depends on sample size and effect size.
- Regression and correlation: OLS assumptions, multicollinearity, heteroscedasticity, and the gap between correlation and causation.
- Experimental design and A/B testing: randomization, control groups, sample size determination, and handling novelty effects or Simpson's paradox.
How should you approach a statistical reasoning question?
Restate the problem in statistical terms first: identify the random variable and its distributional assumptions, then state the quantity you are estimating or testing. State assumptions before applying any formula, because interviewers care about whether you know when a method breaks down. If the question involves a test, specify the null hypothesis and test statistic, then state the decision rule before computing anything. For estimation problems, write out the likelihood function and show the derivative rather than jumping straight to the closed-form answer.
Key facts
- Tarmac has 37 Data Science interview questions on this topic, 25 of them on this page, at difficulty 1–5 of 5.
- Tarmac tracked 917 job postings asking for Data Science in September 2026.
- Roles asking for Data Science advertise a median base salary of US$166,400, across 225 job postings as of September 2026.
- Tarmac last reviewed these Data Science interview questions on 14 October 2026.
At a glance
| Questions | 25 shown · 37 in the bank |
|---|---|
| Difficulty | 1–5 of 5 |
| Formats | Multiple choice, Short answer, True / false, Fill in the blank, Multiple answer |
What you'll review
- probability distributions
- hypothesis testing
- confidence intervals
- descriptive vs inferential statistics
- statistical foundations
Practice questions
Try one before you open the answer. Pick an option and press Check; it's marked on the spot.
A data scientist wants to model the number of heads obtained when flipping a fair coin 10 times. Which probability distribution is appropriate for this model?#
Options
Show answer
The Binomial distribution is the appropriate model for counting heads in 10 fair coin flips. It counts successes in a fixed number of independent trials that each have the same success probability, here n = 10 and p = 0.5.
The Binomial distribution models the count of successes in a fixed number n of independent Bernoulli trials, each with the same success probability p. Here n = 10 and p = 0.5, which matches counting heads in 10 fair coin flips. The Poisson distribution models event counts over a continuous interval, the Uniform distribution assigns equal probability to every outcome, and the Exponential distribution models waiting times between events, so none of those fit this fixed-trial counting scenario.
State the empirical rule (the 68-95-99.7 rule) for a normal distribution. In your answer, give the approximate percentage of observations that fall within 1, 2, and 3 standard deviations of the mean.#
Show answer
For a normal distribution, approximately 68% of observations fall within 1 standard deviation of the mean, approximately 95% fall within 2 standard deviations, and approximately 99.7% fall within 3 standard deviations.
The empirical rule describes how a normal (Gaussian) distribution's probability mass is spread around its mean. Because the density is bell-shaped and symmetric, about 68% of values lie within ±1σ of the mean, about 95% within ±2σ, and about 99.7% within ±3σ. A complete answer must give all three percentages tied to the correct multiples of the standard deviation, which is what distinguishes it from a generic statement about spread.
Which distribution best models the number of successes in a fixed number of independent Bernoulli trials?#
Options
Show answer
The Binomial distribution models the number of successes in a fixed number of independent Bernoulli trials, each with the same success probability. The Poisson distribution counts events over a continuous interval, and the Geometric distribution counts trials until the first success.
The Binomial distribution counts successes in n independent Bernoulli trials that share a success probability p, so it fits any scenario with a fixed trial count such as coin flips or defects in a known sample size. The Poisson distribution models event counts over a time or space interval rather than a fixed number of trials, the Geometric distribution models how many trials are needed until the first success, and the Normal distribution is continuous, so it cannot model a count of successes.
What distribution is commonly used to model the time between consecutive events in a Poisson process?#
Show answer
The exponential distribution. In a homogeneous Poisson process with rate λ, the waiting time between consecutive events follows an Exponential(λ) distribution.
The exponential distribution models the inter-arrival times of a Poisson process. Events in a Poisson process occur independently at a constant average rate, and this memoryless property of the waiting time between consecutive events is exactly what the exponential distribution describes. The answer is therefore the exponential distribution, not the Poisson distribution itself, which models the count of events in a fixed interval.
Name the probability distribution that is symmetric and fully described by its mean and variance.#
Show answer
The normal (Gaussian) distribution. It is symmetric around its mean, and its mean and variance are its only parameters.
The normal (Gaussian) distribution is symmetric about its mean and is fully parameterized by its mean and variance (or standard deviation), so those two numbers determine the entire distribution. It is also the limiting distribution of standardized sums in the Central Limit Theorem, which is why it appears throughout statistical testing.
Which discrete probability distribution models the number of events occurring in a fixed interval of time or space at a known constant average rate, assuming the events occur independently of one another? Name the distribution.#
Show answer
Poisson distribution
The Poisson distribution gives the probability of observing k events in a fixed interval when events occur independently at a constant average rate λ. It is the limiting case of the Binomial distribution as n → ∞ and p → 0 with np = λ. The question describes exactly these conditions (counts in a fixed interval, known constant rate, independent events), so the answer is the Poisson distribution.
What is the mean (expected value) of a Bernoulli random variable X that takes the value 1 with probability p and the value 0 with probability 1−p? Give the expression in terms of p and justify it briefly.#
Show answer
The mean is p. E[X] = 1·p + 0·(1−p) = p, since the only nonzero outcome is X = 1, which occurs with probability p.
A Bernoulli random variable X takes value 1 with probability p and 0 with probability 1−p, so its expected value is E[X] = 1·p + 0·(1−p) = p. The zero-valued outcome contributes nothing to the sum, so the mean equals the success probability.
A researcher conducts a two-sided hypothesis test and obtains a p-value of 0.03 using a significance level (α) of 0.05. In one sentence, what does this p-value of 0.03 tell us, and what is the researcher's decision regarding the null hypothesis?#
Show answer
Assuming the null hypothesis is true, there is a 3% probability of observing a test statistic at least as extreme as the one observed; since 0.03 < 0.05, the researcher rejects the null hypothesis.
A p-value is the probability of obtaining a test statistic at least as extreme as the observed one, assuming the null hypothesis is true. A p-value of 0.03 therefore means there is a 3% chance of seeing data this extreme or more extreme under the null hypothesis. It is not the probability that the null hypothesis is true, nor a measure of effect size. Because 0.03 is less than the chosen significance level of 0.05, the result is statistically significant and the null hypothesis is rejected.
In hypothesis testing, a Type I error occurs when the null hypothesis is rejected even though it is actually true.#
Options
Show answer
A Type I error is rejecting the null hypothesis when it is actually true, so the statement is true. It is also called a false positive, and its probability equals the chosen significance level α. Failing to reject a false null hypothesis is a Type II error instead.
A Type I error is a false positive: rejecting a null hypothesis that is actually true. Its probability equals the significance level α, which is the threshold chosen for the test. The opposite mistake, failing to reject a false null hypothesis, is a Type II error (false negative), so the statement as written correctly describes Type I error.
A z-based (1−α)% confidence interval for a population mean has the form x̄ ± z_{α/2} · σ / √n, where σ denotes the _____ and n denotes the _____.#
Show answer
A z-based (1−α)% confidence interval for a population mean has the form x̄ ± z_{α/2} · σ / √n, where σ denotes the population standard deviation and n denotes the sample size.
In the z-interval formula x̄ ± z_{α/2} · σ/√n, σ is the population standard deviation and n is the sample size. The ratio σ/√n is the standard error of the mean, and multiplying it by the critical z-value gives the margin of error.
Descriptive statistics summarize and describe features of a dataset you already have, such as computing its mean, median, standard deviation, or plotting a histogram. Inferential statistics go further by using a sample to make generalizations or predictions about a larger population. Give a concrete example of an activity that falls under inferential statistics and briefly explain why it is inferential rather than descriptive.#
Show answer
Constructing a 95% confidence interval for a population mean from a random sample is inferential statistics because it uses sample data to generalize about the larger population rather than merely describing the sample itself. Another example is performing a hypothesis test to decide whether a population parameter differs from a claimed value.
Inferential statistics uses sample data to draw conclusions about a population; confidence intervals and hypothesis tests are core examples, since each estimates or tests a population parameter from a sample. Descriptive statistics, by contrast, only summarizes the data in hand (mean, median, standard deviation, histograms) without extending beyond the observed sample.
True or false: Descriptive statistics can be used to draw conclusions about a population that extends beyond the data you have collected.#
Options
Show answer
No, descriptive statistics cannot be used to draw conclusions about a population beyond the data collected. They only summarize the observed data. Generalizing to a larger population requires inferential statistics, which use sample data and probability models to estimate population parameters and quantify uncertainty.
Descriptive statistics only summarize the data you actually have, using measures such as means, medians, and standard deviations. Drawing conclusions about a larger population that was not measured requires inferential statistics, which use sample data along with probability models to generalize and quantify uncertainty.
True or False: Computing the standard deviation of a sample is a form of descriptive statistics.#
Options
Show answer
Computing the standard deviation of a sample is descriptive statistics, because it summarizes how spread out the data actually observed are. Descriptive statistics characterize collected data, such as its mean, median, or spread. Inferential statistics begins only when you use the sample to draw conclusions about a wider population.
Computing the standard deviation of a sample summarizes the spread of the data you actually have, without drawing any conclusion about a larger population. That is the defining purpose of descriptive statistics, so the statement is true. Inferential statistics would only enter if the sample's value were used to estimate or test something about the population it came from.
In null-hypothesis significance testing, which statement correctly describes the p-value?#
Options
Show answer
The p-value is the probability of observing a test statistic at least as extreme as the one computed from the sample data, assuming the null hypothesis is true. It measures how surprising the data would be under the null hypothesis. It is not the probability that the null hypothesis is true.
A p-value is computed assuming the null hypothesis is true. It measures how surprising the observed data (or more extreme data) would be under that assumption, which is the probability of a test statistic at least as extreme as the one observed, given the null. It is not the probability that the null is true, not the probability that the alternative is true, and not the long-run false-positive rate of the test. Those are common misconceptions. The false-positive rate is the significance level alpha, which is a chosen threshold rather than a property of a particular dataset.
Which probability distribution has its mean equal to its variance for every valid value of its parameter(s)?#
Options
Show answer
The Poisson distribution has mean equal to variance for every valid rate parameter λ > 0, because E[X] = λ and Var(X) = λ. Normal, exponential, and binomial distributions do not have equal mean and variance for all parameter values.
The Poisson distribution with rate λ has E[X] = λ and Var(X) = λ, so mean equals variance for every λ > 0. The Normal distribution has mean μ and variance σ², which are independent parameters and not necessarily equal. The Exponential distribution has mean 1/λ and variance 1/λ², which are equal only when λ = 1, so it fails in general. The Binomial(n, p) has mean np and variance np(1−p), which are equal only when p = 0, a degenerate case rather than a general property.
The _____ distribution is the only continuous probability distribution that exhibits the memoryless property: P(X > s + t | X > s) = P(X > t) for all s, t ≥ 0.#
Show answer
The Exponential distribution is the only continuous probability distribution that exhibits the memoryless property: P(X > s + t | X > s) = P(X > t) for all s, t ≥ 0.
The Exponential distribution is the unique continuous distribution with the memoryless property. For X ~ Exp(λ), P(X > s + t) = e^{-λ(s+t)} = e^{-λs}·e^{-λt}, so P(X > s + t | X > s) = P(X > s + t)/P(X > s) = e^{-λt} = P(X > t). The Geometric distribution also satisfies this property, but it is discrete, not continuous. The Normal and Poisson distributions do not satisfy the memoryless property at all. Specifying 'continuous' in the prompt uniquely identifies the Exponential distribution.
A random variable X follows an Exponential distribution with rate parameter λ = 2 (density f(x) = λe^(−λx) for x ≥ 0, so the mean is 1/λ). What are the mean and variance of X? Give the numeric values and the general formulas.#
Show answer
For Exponential(λ), E[X] = 1/λ and Var(X) = 1/λ². With λ = 2, the mean is 1/2 = 0.5 and the variance is 1/4 = 0.25.
With the rate parameterization, the density is λe^(−λx) for x ≥ 0. Integrating gives E[X] = ∫x·λe^(−λx)dx = 1/λ, and E[X²] = 2/λ², so Var(X) = E[X²] − (E[X])² = 2/λ² − 1/λ² = 1/λ². Substituting λ = 2 gives a mean of 1/2 = 0.5 and a variance of 1/4 = 0.25.
Consider Binomial(n, p), Exponential(λ) where λ is the rate parameter, and Poisson(λ). Their means are np, 1/λ, and λ, in some order. Which option correctly pairs each distribution with its mean?#
Options
Show answer
Binomial(n, p) has mean np, Exponential(λ) with rate λ has mean 1/λ, and Poisson(λ) has mean λ. The binomial mean follows from summing n Bernoulli trials, each with mean p, while the exponential mean is the reciprocal of its rate.
A Binomial(n, p) variable is a sum of n independent Bernoulli(p) trials, each with mean p, so its mean is np. An Exponential distribution with rate λ has mean 1/λ, the reciprocal of the rate. A Poisson(λ) distribution has mean λ, since λ is both its rate and its mean. The only pairing matching all three is Binomial → np, Exponential → 1/λ, Poisson → λ, which is the option listing those exact assignments.
You perform a two-sided z-test of H0: μ = 100 versus H1: μ ≠ 100 and obtain a test statistic z = 1.96 with a p-value of 0.05. Which statement correctly interprets this p-value?#
Options
Show answer
A two-sided p-value of 0.05 means that, assuming the null hypothesis H0: μ = 100 is true, the chance of observing a test statistic at least as extreme as z = 1.96 in either tail is about 5%. It measures how incompatible the data are with H0, not the probability that H0 is true.
The p-value is computed under the assumption that the null hypothesis is true: it is the probability of a test statistic at least as extreme as the observed one, counting both tails for a two-sided test. Here z = 1.96 gives a two-sided tail area of about 0.05 under the standard normal distribution. The correct reading is the statement that assumes H0 is true and describes the probability of data this extreme. The statement claiming a 5% probability that H0 is true confuses the p-value with a posterior probability, which frequentist testing does not provide. The statement equating the p-value with the Type II error rate confuses it with β, which is governed by power and the true alternative. The statement about the false-positive rate among rejections conflates the p-value with a conditional error rate that depends on the prior probability of H0 and on power.
Customer arrivals at a store follow a Poisson process with rate λ = 5 per hour. The inter-arrival times between consecutive arrivals are exponentially distributed with mean 1/λ. The mean inter-arrival time between consecutive customers is _____ minutes.#
Show answer
Customer arrivals at a store follow a Poisson process with rate λ = 5 per hour. The inter-arrival times between consecutive arrivals are exponentially distributed with mean 1/λ. The mean inter-arrival time between consecutive customers is 12 minutes.
In a Poisson process with rate λ, the waiting time between successive arrivals is exponential with mean 1/λ. With λ = 5 arrivals per hour, the mean gap is 1/5 hour = 0.2 hours. Converting to minutes, 0.2 × 60 = 12 minutes. The average gap is the reciprocal of the rate, so the answer is 12 minutes.
A data scientist runs a one-sided z-test for a population mean. They decrease the significance level α from 0.05 to 0.01 while keeping the sample size, the true effect size, and the test statistic distribution unchanged. Which statement correctly describes the effect on the Type I error probability and the power of the test?#
Options
Show answer
Lowering the significance level α from 0.05 to 0.01 in a one-sided z-test lowers the Type I error probability to 0.01, but it also reduces the test's power. With sample size and true effect size fixed, the critical value moves further into the tail, shrinking the rejection region so fewer true alternatives are detected. This is the classic Type I versus Type II trade-off.
The Type I error rate of a test is set equal to α, so it drops from 0.05 to 0.01. Power is the probability that the test statistic lands in the rejection region when H₀ is false. Keeping the sample size and effect size fixed, a smaller α moves the critical value further into the tail, which shrinks the rejection region, so fewer true alternatives fall inside it and power decreases. The option claiming power stays the same is wrong because the test statistic's distribution may be unchanged while the critical value it is compared against is not. The option claiming power increases confuses the direction of the trade-off.
Which of the following distributions is NOT a member of the regular (one-parameter) exponential family when its parameter is the only unknown?#
Options
Show answer
The Uniform(0, θ) distribution is not a member of the regular exponential family because its support [0, θ] depends on the unknown parameter. The regular exponential family requires that the support be independent of the parameter so the density can be written as h(x) exp(η(θ)T(x) − A(θ)). Poisson, Bernoulli, and Exponential all satisfy this condition and are valid exponential-family members.
A distribution belongs to the regular one-parameter exponential family only if its density (or PMF) can be written in the form f(x | θ) = h(x) · exp(η(θ) T(x) − A(θ)), which requires, among other conditions, that the support of the distribution not depend on the unknown parameter θ. For a Uniform(0, θ) distribution the support is [0, θ]; since this interval changes with θ, the indicator function I(0 ≤ x ≤ θ) appears in the density and cannot be absorbed into h(x). Consequently, the density 1/θ · I(0 ≤ x ≤ θ) cannot be expressed in the standard exponential-family form, so Uniform(0, θ) is excluded from the regular exponential family. The other three distributions all have parameter-independent supports and admit standard exponential-family representations: Poisson(λ) has PMF exp(x log λ − λ − log x!), Bernoulli(p) has PMF exp(x log(p/(1−p)) + log(1−p)), and Exponential(λ) has density exp(−λx + log λ) on (0, ∞).
A data scientist performs a two-sided z-test of H₀: μ = 0 vs H₁: μ ≠ 0 and obtains a p-value of 0.06. Which of the following statements is correct?#
Options
Show answer
A 90% confidence interval for μ would not contain 0 when a two-sided z-test of H₀: μ = 0 gives p = 0.06. A two-sided test rejects at level α exactly when the (1−α) confidence interval excludes the null value. Since 0.06 is below 0.10 but above 0.05, the 90% interval excludes 0 while the 95% interval contains it.
By the duality between two-sided tests and confidence intervals, a (1−α) confidence interval for μ excludes 0 if and only if the two-sided test of H₀: μ = 0 rejects at level α. With p = 0.06, at α = 0.05 (the 95% interval) we fail to reject, so 0 lies inside the 95% interval; at α = 0.10 (the 90% interval) we reject, so 0 lies outside the 90% interval. The claim that the probability H₀ is true equals 0.06 is wrong, since a p-value is not the posterior probability of the null, and the claim that power is 0.94 is wrong, since power depends on the true effect size, sample size, and α rather than on the observed p-value.
A data scientist draws a simple random sample of 200 registered voters from a state's voter-registration database (population: 5 million registered voters). From this sample they compute five quantities:#
Options
Pick every one that applies.
Show answer
The inferential statistics here are the 95% confidence interval for the population proportion and the p-value from a one-proportion z-test of H₀: p = 0.50. Both use a sample of 200 voters to draw conclusions about the 5 million registered voters. The sample proportion, sample median, and sample standard deviation of ages only summarize the data actually observed.
Inferential statistics use sample data to make probabilistic generalizations about a population parameter. The 95% confidence interval for the population proportion quantifies uncertainty about that parameter, and the p-value from the one-proportion z-test tests a hypothesis about the population proportion, so both are inferential. The sample proportion supporting Candidate A, the sample median age, and the sample standard deviation of ages merely summarize the observed data and are descriptive statistics.
You test H₀: σ²_b = 0 versus H₁: σ²_b > 0, where σ²_b is a single variance component in a linear mixed-effects model and the parameter space for σ²_b is [0, ∞). Let 2 log Λ be the usual likelihood-ratio test statistic (twice the log-likelihood ratio of the restricted model under H₀ versus the full model under H₁). A researcher compares 2 log Λ to the χ²(1) critical value, as the standard Wilks result would suggest. Which statement is correct?#
Options
Show answer
Testing a variance component against the boundary value zero makes the likelihood-ratio test conservative when compared to the χ²(1) critical value. The null distribution is a 50:50 mixture of χ²(0) and χ²(1), so the actual Type I error at nominal 0.05 is about 0.025.
The correct statement is that the test is conservative. Wilks' theorem needs the null value to lie in the interior of the parameter space, but σ²_b = 0 sits on the boundary of [0, ∞). Self and Liang (1987) showed that the asymptotic null distribution of 2 log Λ is a 50:50 mixture of a point mass at 0 (χ²(0)) and χ²(1). The point mass arises because the unconstrained MLE of σ²_b equals zero with probability about 1/2 under H₀, giving a statistic of exactly 0. Using the χ²(1) cutoff of 3.84 at α = 0.05 therefore yields an actual size of 0.5 × 0.05 = 0.025, so the test rejects too rarely. The nominal 0.05 level is recovered with the 0.10 quantile of χ²(1) (about 2.71) or by using the mixture directly. The statistic itself is well defined at the boundary and the test remains valid; only the reference distribution changes. The option claiming the test is exact is wrong because it ignores the boundary, the liberal option is wrong because the actual size is below 0.05, and the undefined-statistic option is wrong because the likelihood ratio is computable at zero.
Related interview questions
Job market
See data-science salaries and hiring demand from live job postings.
The other 12 questions
This page shows 25 and marks what you pick. That's as far as a page can go. A free account opens the other 12 and keeps every answer. What you miss comes back until it's right: after a day, then at longer gaps.
Free · the whole bank · 100 marked answers per 30 days · written feedback on the paid plan