Graphs · Distribution

Density Plot

Density plot: a smooth kernel density curve of a numeric column (a smoothed histogram), optionally one curve per group, with a rug of the values.

In the menus Graphs › Distribution › Density Plot

Also searched as density plot density curve kernel density kernel density estimate kde density chart smoothed histogram smooth histogram

When to use it

You want to see the shape of a numeric column (where values pile up, whether there is one peak or two, skew) without choosing histogram bins, or to compare the shapes of a few groups on one chart.

When not to: Very few values (under about 30), a count or rating column with only a few distinct values (use a bar chart or a histogram), when you need counts rather than shares, or as a test of shape (use the Normality Test).

Step by step

  1. Open it from the menu

    Click Graphs in the menu bar; under Distribution choose Density Plot.

  2. Fill in the form

    Choose the columns: Column to draw, One curve per group (optional). The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Bandwidth rule, Bandwidth multiplier, Rug of values. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Density Plot form
Column to draw Y requiredOne numeric column. The numeric column whose distribution you want to see
One curve per group (optional) GroupOne categorical or ordered categorical column. Optional: one curve per group, on the same axes
Bandwidth ruleSilverman's rule (the usual default) or Scott's rule: how wide each value's bell curve is Default: silverman.
Bandwidth multiplierMultiply the bandwidth (0.5 = more detail, 2 = smoother) Default: 1.
Rug of valuesA short tick along the bottom for each value Default: on.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

A worked example

Density plots of penguin body mass (342 values; 2 blank rows left out): the default, then the bandwidth multiplier 0.5, then one curve per species (Scott, multiplier 0.5).

Result: Default (Silverman, bandwidth 224.7 g): one peak, at about 3,653 g. Multiplier 0.5 (bandwidth 112.3 g): two peaks, at about 3,693 g and 4,697 g. By species: Adelie one peak (about 3,478 g, n = 151), Chinstrap one peak (about 3,697 g, n = 68), Gentoo two peaks (about 4,745 g and 5,516 g, n = 123).

The default curve smooths over a second cluster that a narrower bandwidth shows. Drawn by species, the heavier cluster is the Gentoo penguins, whose own curve again has two peaks worth checking against another column.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Do the body masses have one peak or two?
  • Explain the density plot in plain words.

Last reviewed November 16, 2026.

Report an unclear step