Interactive Histogram Binning, Density & KDE Shape Explorer
Add or inspect sample observations, scrub bin count k ∈ [3, 24] and KDE bandwidth h, and compare count histograms, area-1 density histograms, and cumulative ogives.
Turn a messy list of raw measurements into a clear visual shape—and see how bin width and density scaling shape what your eyes notice.
Manufacturing tolerance histograms, web-latency distribution profiling, and identifying multimodal regimes before fitting any model.
When you collect raw measurements, how do histogram bin width and kernel smoothing reveal true clusters without inventing noisy spikes?
Dividing each bin count by converts histograms from arbitrary tallies into unit-area Probability Density Estimates (), enabling honest comparison across unequal bin widths.
Kernel Density Estimation (KDE) replaces hard bin edges with smooth Gaussian bumps of bandwidth , letting you spot skewness, outliers, and multimodal regimes before choosing any parametric model.
If someone hands you 100 raw test scores or response times, why does staring at a table fail—and how can changing a histogram's bin width either reveal a hidden second peak or create fake spikes?
Switch among Symmetric, Skewed, Bimodal, and Outlier datasets (or click to add your own points), scrub bin count k and KDE bandwidth h, and toggle Frequency vs. Density scaling.
Very wide bins hide bimodal peaks, while ultra-narrow bins turn noise into jagged teeth. Once you can see a distribution's shape, Chapter S.1.2 asks: which single number best marks its center?
Imagine a teacher hands you 35 commute times in minutes: 14, 41, 12, 39, 16, 43, .... Staring at a spreadsheet column, your brain can barely tell whether everyone lives 25 minutes away or nobody does! In reality, maybe half the class bikes 14 minutes while the other half rides a 41-minute highway bus. Exploratory Data Analysis (EDA) solves this by sorting numbers into buckets (bins) and stacking bars so the invisible shape of the crowd jumps right off the page.
Pure categories with no order: blood types (A, B, O) or bus routes. Use bar charts, never histograms.
Ordered labels with uneven gaps: star ratings (1★–5★) or shirt sizes (S, M, L).
Countable whole steps with gaps between them: number of defects, coin heads, or siblings (0, 1, 2, ...).
Smooth values along a ruler: height, voltage, latency (12.47 ms). Histograms and density curves shine here!
Preparing interactive canvas & numerical solver…
wanna math drafting viewport
If you double bin width , each bin catches roughly twice as many points. Dividing height by cancels that stretch so the histogram's total area always equals 1.000—matching smooth probability curves!
Think of placing a tiny soft sandpile (Gaussian bell of width ) at every single observed dot , then summing all sandpiles together. Unlike rigid bins, KDE never depends on where bin edges happen to start.
Suppose quiz scores fall into bin [60, 70) with width and count :
Try setting Bin Count k = 3 on the Commute Times preset above: the two distinct 14-min and 41-min groups merge into one flat plateau! Conversely, setting k = 24 creates artificial empty gaps. Always inspect multiple bin widths or overlay a KDE + rug plot.
Bar charts plot categories with gaps between bars (order can often be swapped). Histograms plotcontinuous intervals touching edge-to-edge with zero gaps—unless a bin genuinely holds zero data!
Doubling a bin's width doubles how many points fall inside it purely from geometry. Dividing by makes bar area—not height—represent proportion, aligning directly with continuous PDFs.
Freedman–Diaconis uses the interquartile range so extreme outliers cannot stretch bin width artificially, shrinking bins gently at rate as sample size grows.
Tiny bandwidth fits jagged spikes over each point (high variance), whereas oversized washes out bimodal valleys (high smoothing bias). Silverman's rule balances both.
Add or inspect sample observations, scrub bin count k ∈ [3, 24] and KDE bandwidth h, and compare count histograms, area-1 density histograms, and cumulative ogives.
Two distinct groups—local cyclists (~14 min) and highway commuters (~41 min)—appear clearly at k = 12, but vanish into one flat lump if k = 3! Click anywhere inside the left plot to drop custom observations into the sample.
Density divides count by so changing keeps total shaded area fixed at 1.000.