Difference between revisions of "Visualisation/Boxplot"

From Open Food Facts wiki
Jump to navigation Jump to search
Line 3: Line 3:
 
[[File:Boxplot-example.png|200 px|thumb|right]]
 
[[File:Boxplot-example.png|200 px|thumb|right]]
 
The plot shows an example of a box plot with jittered datapoints. The data is based on 540 Canned Asparagus products and the carbohydrates value for these products is shown. The box represents the interquartiles range and thus describes 50% of the products. The lower whisker shows the minimum of the data and the upper whisker show the boundary based on a 1.5 Tukey factor. If needed the plot can be expanded with the mean and standard deviation.
 
The plot shows an example of a box plot with jittered datapoints. The data is based on 540 Canned Asparagus products and the carbohydrates value for these products is shown. The box represents the interquartiles range and thus describes 50% of the products. The lower whisker shows the minimum of the data and the upper whisker show the boundary based on a 1.5 Tukey factor. If needed the plot can be expanded with the mean and standard deviation.
 
== Enhancements ==
 
* It is advised to add the data to the boxplot. Viewing the data might give some weight to the statistics. Otherwise one can not distinguish between boxplots with few data and a lot of data.
 

Revision as of 07:12, 1 October 2024

The box plot summarises the statistics of the distribution of a variable (nutrient). This graph is especially suited for non-normal (non-gaussian) distributions. A typical bixplot contains the median, the mean, the quartiles, minimum/maximum and limits (lower/upper) of the distribution. Usually the X-axis lists one or more product sets, for instance products in a specific category. And the Y-axis shows the statistical parameters. The interquartile distance is drawn as a box. The limits as lines blow and above the box (the whiskers).

Example

Boxplot-example.png

The plot shows an example of a box plot with jittered datapoints. The data is based on 540 Canned Asparagus products and the carbohydrates value for these products is shown. The box represents the interquartiles range and thus describes 50% of the products. The lower whisker shows the minimum of the data and the upper whisker show the boundary based on a 1.5 Tukey factor. If needed the plot can be expanded with the mean and standard deviation.