SchoolWhool
Quizzes and saved progress, freeSign in freeSign in
Statistics · Module 4Module material

Sampling and distributions interview questions

26 questions interviewers ask on distributions and dependence, from first principles to the follow-ups. The first 3 model answers are free to read; Pro opens the rest.

Sampling

  1. What is a sampling frame, and why does the unit matter when you build one?●

    The frame is the list of eligible units a sample is drawn from. For an invoice review the unit is one invoice ID, so the 541,909 item lines are grouped into 25,900 IDs first; sampling lines would inspect parts of invoices and give large invoices more chances.

  2. What is the difference between sampling with and without replacement?●

    Without replacement, a selected unit leaves the frame, so each appears at most once; with replacement, every draw uses the full frame again, so repeats are possible. In 4.1, 200 draws with replacement gave 199 distinct invoices. Reviews use the first; bootstrap resampling uses the second.

  3. When would you use a stratified sample instead of a simple random sample?●●

    When small groups must be represented. A simple sample of 200 invoices held 3 German and 4 French ones, and in 2,000 repeated simple samples none reached 20 German invoices; 50 per stratum guarantees 50 of each. The price is unequal inclusion probabilities, which have to be undone with weights before describing the whole frame.

  4. How do you get a frame-level estimate from a disproportionate stratified sample?●●
  5. What is source population bias, and can a sampling design fix it?●

Count models

  1. What is a Bernoulli trial, and what are its mean and variance?●
  2. What does the binomial model assume?●
  3. Why does the SD of a binomial count grow more slowly than its mean?●●
  4. How would you check the common-p assumption before forecasting a cohort's churn?●●

The normal model

  1. What does "68–95–99.7" mean, and what does it not mean?●
  2. Why is the height of a normal PDF not a probability?●
  3. How do you check whether a normal approximation is good enough?●●
  4. What is a z score used for in ML?●●

Residuals

  1. What is a residual?●
  2. What does a linear model's normal-error assumption concern: the features or the residuals?●●
  3. How do you read a Q-Q plot?●●
  4. What is heteroscedasticity, and why does it matter?●●

Transforms

  1. Why take the log of a long-tailed target?●
  2. Why use log1p and expm1, and why clip the back-transformed prediction?●●
  3. A log-target model has a lower MAE and a higher RMSE than the raw model. Which is better?●●

Joint shape

  1. What do a mean vector and a covariance matrix describe?●
  2. What is the Mahalanobis distance, and how is it used?●●
  3. A fitted 95% ellipse contains fewer than 95% of the rows. What does that tell you?●●

Time

  1. Why is a random train–test split wrong for a forecast?●
  2. What is autocorrelation, and what does a strong lag-7 value suggest?●●
  3. What is temporal leakage, and how does it hide in feature pipelines?●●