当前位置:网站首页>长得很怪的箱图
长得很怪的箱图
2022-07-31 15:20:00 【Nashomon】
翻折的箱图
下面这个箱图(boxplot)有的箱体两端翻转,看起来有点怪,是不是有问题?
用matlab的boxplot函数画的图,Notch参数设为on时中间凹进,用python画结果一样。
% 打开excel文件,读入数据,共7列
Tbl = readtable('data.xlsx');
% table转换为矩阵
Dat = table2array(Tbl);
handle = figure();
boxplot(Dat, "Notch","on");
把Notch设为off,就是常见的箱图了。
数据是这样,那画出的图也就没有问题。看着不太美观,其实更有内涵。这种图的凹进部分的高度不能改变,如果第1、3分位数低于或高于凹进区域的两端,就会出现翻叠。
SAS中的说明
SAS官方网站关于boxplot的文档中,有一个示意图边缘就是翻过来的。
凹进区域两端位置计算如下:
m e d i a n ± 1.58 ( I Q R ) n median\pm \frac{1.58(IQR)}{\sqrt{n}} median±n1.58(IQR)
其中 n n n 是样本(数据)个数。
关于这种情况,有一句说明:The medians (central lines) of the two boxes are significantly different at approximately the 0.05 level if the corresponding notches do not overlap.
边栏推荐
- 梅克尔工作室-第一次
- The normal form of the database (first normal form, second normal form, third normal form, BCNF normal form) "recommended collection"
- R language test whether the sample conforms to normality (test whether the sample comes from a normally distributed population): shapiro.test function tests whether the sample conforms to the normal d
- AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
- 435. 无重叠区间
- SIGABRT 报错时的注意事项和解决方法
- Ubantu project 4: xshell, XFTP connected the virtual machine and set xshell copy and paste the shortcut
- Groupid(artifact id)
- LeetCode二叉树系列——222.完全二叉树的节点个数
- org.apache.jasperException(could not initialize class org)
猜你喜欢
Efficient use of RecyclerView Section 1
Kubernetes常用命令
Node实现数据加密
01 Encounter typescript, build environment
三、数组
[MySQL] Mysql paradigm and the role of foreign keys
AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
Female service community product design
Word表格转到Excel中
Jmeter常用的十大组件
随机推荐
TRACE32——常用操作
Gorm—Go语言数据库框架
R language ggplot2 visualization: use the ggmapplot function of the ggpubr package to visualize the MA plot (MA-plot), the font.legend parameter and the font.main parameter to set the title and legend
R语言计算时间序列数据的移动平均值(滚动平均值、例如5日均线、10日均线等):使用zoo包中的rollmean函数计算k个周期移动平均值
org.apache.jasperException(could not initialize class org)
TRACE32 - C source code association
删除 状态良好(恢复分区)的磁盘
QGIS 加载WMS数据,重新投影
使用 PyTorch 检测眼部疾病
Small test knife: Go reflection helped me convert Excel to Struct
Why is the field of hacking almost filled with boys?
11 pinia use
蔚来杯2022牛客暑期多校训练营4
Bilateral filtering acceleration "recommended collection"
SIGABRT 报错时的注意事项和解决方法
763.划分字母区间——之打开新世界
Tencent Cloud Deployment----DevOps
[MySQL] Mysql paradigm and the role of foreign keys
Linux check redis version (check mongodb version)
工程水文学复习资料