当前位置:网站首页>长得很怪的箱图
长得很怪的箱图
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.
边栏推荐
- Deployment application life cycle and Pod health check
- R语言ggstatsplot包ggbarstats函数可视化条形图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)、检验结果报告符合APA标准
- TRACE32 - C source code association
- Excel quickly aligns the middle name of the table (two-word name and three-word name alignment)
- 11 pinia使用
- 「秋招系列」MySQL面试核心25问(附答案)
- 腾讯云部署----DevOps
- AVH部署实践 (一) | 在Arm虚拟硬件上部署飞桨模型
- 四象限时间管理有多好用?
- Efficient use of RecyclerView Section 3
猜你喜欢

11 pinia使用

Getting started with UnityShader (1) - GPU and Shader

leetcode303场周赛复盘

OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry

Ubuntu Topic 5: Setting a Static IP Address

浏览器自带的拾色器

Kubernetes常用命令

Getting Started with TextBlock Control Basic Tools Usage, Get Started

abaqus find contact pairs报错:surface name is already in use

工程水文学复习资料
随机推荐
Synchronized and volatile interview brief summary
Codeforces Round #796 (Div. 2)(A-D)
使用 GraphiQL 可视化 GraphQL 架构
How useful is four-quadrant time management?
基于最小二乘法和SVM从天气预报中预测太阳能发电量(Matlab代码实现)
Why is the field of hacking almost filled with boys?
leetcode303场周赛复盘
大健云仓冲刺美股:增营收反减利润 京东与DCM是股东
女性服务社群产品设计
公告
为什么毕业季不要表白?
思路迪医药冲刺港股:5个月亏2.9亿 泰格医药与先声药业是股东
基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
四象限时间管理有多好用?
定时器的类型
R语言计算时间序列数据的移动平均值(滚动平均值、例如5日均线、10日均线等):使用zoo包中的rollmean函数计算k个周期移动平均值
Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x
MySQL的相关问题
Jmeter常用的十大组件
Getting Started with TextBlock Control Basic Tools Usage, Get Started