Bound density estimates to valid domains
Back to the Chart galleryxpd charts
Where does the tip distribution start and peak?
Plotly Express Tips dataset, 244 restaurant tip amounts in USD.
“Kernel density estimates have a tendency to produce the appearance of data where none exists, such as negative ages or prices”
Also covered in Wilke 2019 (7 Visualizing Distributions: Histograms and Density Plots, p. 64).
Before
Interactive chart unavailable.
After
Interactive chart unavailable.
Values
Tips range from 1.00 USD to 10.00 USD with a 2.90 USD median.
Tips start at 1.00 USD, peak near 2.00 to 3.00 USD, and taper smoothly to 10.00 USD.
| Metric | Value (USD) |
|---|---|
| Minimum tip | 1 |
| Median tip | 2.9 |
| 90th percentile tip | 5 |
| Maximum tip | 10 |