Box Plot

../../_images/box-plot.png

Shows distribution of attribute values.

Signals

Inputs:

  • Data

    An input data set

Outputs:

  • (None)

Description

The Box Plot widget shows the distributions of attribute values. It is a good practice to check any new data with this widget to quickly discover any anomalies, such as duplicated values (e.g. gray and grey), outliers, and alike.

../../_images/BoxPlot-Continuous-stamped.png
  1. Select the variable you want to see plotted.
  2. Choose Grouping to see box plots displayed by class.
  3. When instances are grouped by class, you can change the display mode. Annotated boxes will display the end values, the mean and the median, while compare medians and compare means will, naturally, compare the selected value between class groups.
../../_images/BoxPlot-Continuous-small.png

For continuous attributes the widget displays:

  1. The mean (the dark blue vertical line)
  2. Border values for the standard deviation of the mean. The blue highlighted area is the entire standard deviation of the mean.
  3. The median (yellow vertical line). The thin blue line represents the area between the first (25%) and the third (75%) quantile, while the thin dotted line represents the entire range of values (from the lowest to the highest value in the data set for the selected parameter).
  4. Save image.
  5. Produce a report.

For discrete attributes, the bars represent the number of instances with each particular attribute value. The plot shows the number of different animal types in the Zoo data set: there are 41 mammals, 13 fish, 20 birds and so on.

../../_images/BoxPlot-Discrete.png

Example

The Box Plot widget is most commonly used immediately after the File widget to observe the statistical properties of a data set. It is also useful for finding the properties of a specific data set, for instance a set of instances manually defined in another widget (e.g. Scatterplot) or instances belonging to some cluster or a classification tree node, as shown in the schema below.

../../_images/box-plot-example1.png
../../_images/box-plot-example2.png