Distribution Plots (KDE, Histograms)
Distribution Plots (KDE, Histograms)
Understanding how data is distributed is fundamental to data analysis. Let's explore advanced techniques for visualizing distributions.
Kernel Density Estimation (KDE)
Loading Python Playground...
Comparing Distributions
Loading Python Playground...
Rug Plots
Loading Python Playground...
2D Density Plots
Loading Python Playground...
Multiple Subgroup Histograms
Loading Python Playground...
Cumulative Distribution
Loading Python Playground...
Practice: Distribution Analysis
Loading Python Exercise...
Key Takeaways
- KDE smooths histograms into continuous density curves
- Use
density=Trueto normalize histograms for KDE comparison - Rug plots show actual data point locations
- 2D density plots (contours) show joint distributions
- Cumulative distributions help find percentiles
- Compare distributions using overlaid KDEs
- Skewed data shows mean ≠ median
In the next lesson, we'll explore regression and relationship plots.

