当前位置:网站首页>长得很怪的箱图
长得很怪的箱图
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.
边栏推荐
- Female service community product design
- what exactly is json (c# json)
- TRACE32 - SNOOPer-based variable logging
- Deployment application life cycle and Pod health check
- 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
- Internet banking stolen?This article tells you how to use online banking safely
- 分成两栏后文字顺序混乱的问题解决【写期刊论文时】
- 【CUDA学习笔记】初识CUDA
- Synchronized和volatile 面试简单汇总
- 修改SQL语言实现Mysql 多表关联查询优化
猜你喜欢
随机推荐
R language moves time series data forward or backward (custom lag or lead period): use the lag function in the dplyr package to move the time series data forward by one day (set the parameter n to a p
华医网冲刺港股:5个月亏2976万 红杉与姚文彬是股东
org.apache.jasperException(could not initialize class org)
Excel快速对齐表格的中姓名(两个字姓名和三个字姓名对齐)
公告
BGP综合实验(建立对等体、路由反射器、联邦、路由宣告及聚合)
Doing things software development - the importance of law and understanding of reasonable conclusions
Getting started with UnityShader (3) - Unity's Shader
安装Xshell并使用其进行Ymodem协议的串口传输
Matlab matrix basic operations (definition, operation)
学习笔记12--路径-速度分解法之局部路径搜索
看交互设计如何集成到Scrum敏捷流程中
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
基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
Gorm—Go语言数据库框架
为什么毕业季不要表白?
自适应控制——仿真实验三 用超稳定性理论设计模型参考自适应系统
定时器的类型
名创优品斥资6.95亿购买创始人叶国富所持办公楼股权









