Distributions
Displays value distributions for a single attribute.
Inputs
- Data: input dataset
Outputs
- Selected Data: instances selected from the plot
- Data: data with an additional column showing whether an instance is selected
- Histogram Data: bins and instance counts from the histogram
The Distributions widget displays the value distribution of discrete or continuous attributes. If the data contains a class variable, distributions may be split by the class.
The graph shows how many times (e.g., in how many instances) each attribute value appears in the data. If the data contains a class variable, class distributions for each of the attribute values will be displayed (like in the snapshot below). To create the graph, we used the heart-disease dataset.

-
A list of variables for display. Sort categories by frequency orders displayed values by frequency.
-
Fitted distribution fits selected distribution to the plot. Options are:
Set Bin width with the slider. Smoothing is enabled for the Kernel density option. Hide bars hides bars and shows only the fitted distribution.
-
Columns:
- Split by displays value distributions for instances of a certain class. Set to class target variable by default.
- Stack columns displays one column per bin, colored by proportions of class values.
- Show probabilities shows probabilities of class values at selected variable.
- Show cumulative distribution cumulatively stacks frequencies.
-
If Apply Automatically is ticked, changes are communicated automatically. Alternatively, click Apply.
For continuous attributes, the attribute values are also displayed as a histogram. It is possible to fit various distributions to the data, for example, a Gaussian kernel density estimation. Hide bars hides histogram bars and shows only distribution (old behavior of Distributions).

In class-less domains, the bars are displayed in blue. We used the Housing dataset for the graph below.

Example
A simple example with the heart-disease data set is to display Distributions after the File widget, then select a subset of interest, say female patients. The selection is sent downstream, to Data Table, where we can inspect the selection.
