Skip to content

Bound density estimates to valid domains

wrongdistributionsmechanicalWilke 2019 p. 64

Can a customer wait less than zero minutes?

Illustrative check-in logs with 110 arrival waits per shift.

“Kernel density estimates have a tendency to produce the appearance of data where none exists, such as negative ages or prices”

Claus O. Wilke, "Fundamentals of Data Visualization", p. 63.

Also covered in Wilke 2019 (7 Visualizing Distributions: Histograms and Density Plots, p. 64).

CVD preview

Before

The pooled smooth curve assigns density to negative waits.

Download before Python code

After

The first interval starts at zero and the bars count only recorded waits.

Download after Python code

Values

Two coarse histograms and a pooled density summarize arrival waits.

Two-minute bins show a longer right tail in the evening shift.