Show basic statistics for data features.
- Reduced data: table containing only selected features
- Statistics: table containing statistics of the selected features
The Feature Statistics widget provides a quick way to inspect and find interesting features in a given data set.
The Feature Statistics widget on the heart-disease data set. The feature exerc ind ang was manually changed to a meta variable for illustration purposes.
- Info on the current data set size and number and types of features
- The histograms on the right can be colored by any feature. If the selected feature is categorical, a discrete color palette is used (as shown in the example). If the selected feature is numerical, a continuous color palette is used. The table on the right contains statistics about each feature in the data set. The features can be sorted by each statistic, which we now describe.
- The feature type - can be one of categorical, numeric, time and string.
- The name of the feature.
- A histogram of feature values. If the feature is numeric, we appropriately discretize the values into bins. If the feature is categorical, each value is assigned its own bar in the histogram.
- The central tendency of the feature values. For categorical features, this is the mode. For numeric features, this is mean value.
- The dispersion of the feature values. For categorical features, this is the entropy of the value distribution. For numeric features, this is the coefficient of variation.
- The minimum value. This is computed for numerical and ordinal categorical features.
- The maximum value. This is computed for numerical and ordinal categorical features.
- The number of missing values in the data.
Notice also that some rows are colored differently. White rows indicate regular features, gray rows indicate class variables and the lighter gray indicates meta variables.
The Feature Statistics widget is most often used after the File widget to inspect and find potentially interesting features in the given data set. In the following examples, we use the heart-disease data set.
Once we have found a subset of potentially interesting features, or we have found features that we would like to exclude, we can simply select the features we want to keep. The widget outputs a new data set with only these features.
Alternatively, if we want to store feature statistics, we can use the Statistics output and manipulate those values as needed. In this example, we simply select all the features and display the statistics in a table.