当前位置:网站首页>长得很怪的箱图
长得很怪的箱图
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.
边栏推荐
- AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
- 蔚来杯2022牛客暑期多校训练营4
- 学习笔记12--路径-速度分解法之局部路径搜索
- 分成两栏后文字顺序混乱的问题解决【写期刊论文时】
- Linux check redis version (check mongodb version)
- Deployment application life cycle and Pod health check
- 思路迪医药冲刺港股:5个月亏2.9亿 泰格医药与先声药业是股东
- JVM参数解析 Xmx、Xms、Xmn、NewRatio、SurvivorRatio、PermSize、PrintGC「建议收藏」
- Getting started with UnityShader (1) - GPU and Shader
- Groupid(artifact id)
猜你喜欢
Why don't you make a confession during the graduation season?
腾讯云部署----DevOps
Getting Started with TextBlock Control Basic Tools Usage, Get Started
The use of border controls
Female service community product design
OPPO在FaaS领域的探索与思考
深入浅出边缘云 | 4. 生命周期管理
国内市场上的BI软件,到底有啥区别
TRACE32 - Common Operations
Ubantu project 4: xshell, XFTP connected the virtual machine and set xshell copy and paste the shortcut
随机推荐
hough变换检测直线原理(opencv霍夫直线检测)
R语言ggstatsplot包ggbarstats函数可视化条形图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)、检验结果报告符合APA标准
深入浅出边缘云 | 4. 生命周期管理
TRACE32——常用操作
org.apache.jasperException(could not initialize class org)
自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统
The R language ggstatsplot package ggbarstats function visualizes bar charts, and adds hypothesis test results (including sample number, statistics, effect size and its confidence interval, significan
01 Encounter typescript, build environment
Gorm—Go语言数据库框架
Word table to Excel
数据库的范式(第一范式,第二范式,第三范式,BCNF范式)「建议收藏」
STM32(十)------- SPI通信
mongo进入报错
Efficient use of RecyclerView Section 2
what exactly is json (c# json)
自动化测试如何创造业务价值?
学习笔记12--路径-速度分解法之局部路径搜索
The use of border controls
LeetCode二叉树系列——110.平衡二叉树
Kubernetes原理剖析与实战应用手册,太全了