boxplot/violinplot核心参数解释

本文介绍了箱线图(boxandwhiskerplot)及其在数据分析中的应用,包括四分位数、中位数、均值、whiskers以及如何识别潜在的异常值。同时提到了matplotlib.pyplot.boxplot函数在Python中的使用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

In a box and whisker plot:

  • The left and right sides of the box are the lower and upper quartiles. The box covers the interquartile interval, where 50% of the data is found.
  • The vertical line that split the box in two is the median. Sometimes, the mean is also indicated by a dot or a cross on the box plot.
  • The whiskers are the two lines outside the box, that go from the minimum to the lower quartile (the start of the box) and then from the upper quartile (the end of the box) to the maximum.
  • The graph is usually presented with an axis that indicates the values (not shown on figure 4.5.2.1).
  • The box and whisker plot can be presented horizontally, like in figure 4.5.2.1, or vertically.

A variation of the box and whisker plot restricts the length of the whiskers to a maximum of 1.5 times the interquartile range. That is, the whisker reaches the value that is the furthest from the centre while still being inside a distance of 1.5 times the interquartile range from the lower or upper quartile. Data points that are outside this interval are represented as points on the graph and considered potential outliers.

refs

4.5.2 Visualizing the box and whisker plotStatistics: Power from Data! is a web resource that was created in 2001 to assist secondary students and teachers of Mathematics and Information Studies in getting the most from statistics. Over the past 20 years, this product has become one of Statistics Canada most popular references for students, teachers, and many other members of the general population. This product was last updated in 2021.icon-default.png?t=N7T8https://www150.statcan.gc.ca/n1/edu/power-pouvoir/ch12/5214889-eng.htm

matplotlib.pyplot.boxplot — Matplotlib 3.1.2 documentationicon-default.png?t=N7T8https://matplotlib.org/3.1.1/api/_as_gen/matplotlib.pyplot.boxplot.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值