Descriptive Statistics interview question

StatisticsDescriptive StatisticsData VisualizationEDAmedium

Two analysts plot kernel density estimates (KDEs) of the same 5,000 basket values from a grocery chain, one with a bandwidth of 10 € and one with 2 €. The two peaks of the 2-€ curve also appear, at the same places, with bandwidths of 1 € and 3 € and in a histogram with 2-€ bins. What is the best conclusion?

00.010.020.030.0410203040506070Basket value (€)Estimated densityKDE, bandwidth 10 €KDE, bandwidth 2 €
  1. AThe 10-€ curve is the honest summary: a narrow bandwidth reliably invents extra peaks from sampling noise, so basket value should be described as one group with a single mean.
  2. BNeither curve can be trusted, because a KDE assumes normally distributed data; a histogram with the default number of bins is the reliable way to judge the number of modes.
  3. CThe bandwidth changes how tall and smooth the curve looks but not where the mass sits, so the difference must come from the two analysts using different data extracts.
  4. DThe 10-€ bandwidth over-smooths and merges two real modes: with 5,000 baskets and peaks that persist across smaller bandwidths and bins, the values form two genuine clusters.
Show the answer and explanation

Correct answer: D, The 10-€ bandwidth over-smooths and merges two real modes: with 5,000 baskets and peaks that persist across smaller bandwidths and bins, the values form two genuine clusters.

Explanation Descriptive Statistics

A histogram or KDE is a smoothed picture of the data, and the smoothing parameter (bin width or bandwidth h) controls what you can see:

  • Too large (over-smoothing): neighbouring modes blur into one hump. A Gaussian kernel adds h² to the variance of every cluster, so two clusters 15 € apart with SD 4 € get an effective SD of √(4² + 10²) ≈ 10.8 € at h = 10 €. Two equal normal humps merge into one peak once their distance is at most 2 SDs (here 2 × 10.77 ≈ 21.5 € > 15 €).
  • Too small (under-smoothing): sampling noise creates spurious bumps, especially in small samples.

Here the evidence points to real bimodality: n = 5,000 is large, and the peaks near 30 € and 45 € stay in place across bandwidths of 1, 2 and 3 € and in a 2-€ histogram. Noise bumps move or vanish when h changes; real modes do not. A plausible story is two shopper segments (quick top-up trips versus weekly shops), which you would confirm with a segment variable.

Why the other conclusions fail: a smaller bandwidth does not automatically invent peaks, so the smoother curve is not automatically the honest one. A Gaussian kernel does not require Gaussian data; KDE is non-parametric. And the bandwidth does change where the estimated mass sits, which is exactly how one hump can hide two.

Interview tip: never trust a single bin width or bandwidth. Show a few, add a rug plot or an ECDF, and when the data are bimodal report segment-level summaries or a mixture rather than one mean.

Practice it as a quiz

Answer this and the other free questions with instant grading, streaks and weak-topic tracking, or unlock all 4,000 questions.

More Statistics questions

  1. A telecom emails a satisfaction survey to a random sample of the customers who have an email address on file (about 70% of all customers). About 12% respond,…
  2. A product team wants to correlate customers' satisfaction rating (1–5 stars) with their number of support contacts last quarter. What are the requirements for…
  3. Crashes on an inference cluster are modelled as a Poisson process, so the 50 observed times between crashes are i.i.d. exponential with rate λ. Their mean is…
  4. An A/B test of a new recommendation widget gives a two-sided p = 0.03 (z ≈ 2.17). Suppose the true effect exactly equals the observed estimate, and you rerun…
  5. A streaming service checks how well a user's recommendation list matches their taste. The user's viewing history p splits drama / comedy / documentary as 0.5…