フィルターのクリア

Understanding boxplot whisker thresholds

31 ビュー (過去 30 日間)
Saurabh Kelkar
Saurabh Kelkar 2019 年 8 月 21 日
編集済み: dpb 2019 年 8 月 21 日
In Matlab's boxplot: the whiskers are calculated as
Upper whisker: q3 + w × (q3 – q1) & Loweer whisker: q1 – w × (q3 – q1). Although
This by design makes the whiskers symmetric. In which case there should be symmetric whiskers everywhere. However their documentation of boxplot (https://www.mathworks.com/help/stats/boxplot.html#bu5f8g7-4) has this:
If one were to assume that the whisker gets capped by the maximum or minimum value in the dataset then a box plot with outliers on top and bottom should have symmetric whiskers. If there are outlier on one side, that side should have the longest whisker.
These should have had equal length but for the left one the bottom whisker is longer( Image is again from box plot documentation).
Also, the below image should have had longer whisker on the side of the outlier.
They are implying that the whisker length correspond to the extreme values within the whisker range. Any clarification of their logic in plotting will be helpful.
  1 件のコメント
dpb
dpb 2019 年 8 月 21 日
編集済み: dpb 2019 年 8 月 21 日
See if Answers 460270 whiskers seem incorrect? explanation of what is actually plotted clears up the confusion. I've not done the actual exercise on the doc example but did seem to work for the poster's query there so I'd presume will do so on them as well.

サインインしてコメントする。

回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by