当前位置:网站首页>长得很怪的箱图
长得很怪的箱图
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.
边栏推荐
猜你喜欢

Getting Started with TextBlock Control Basic Tools Usage, Get Started

TextBlock控件入门基础工具使用用法,取上法入门

自适应控制——仿真实验三 用超稳定性理论设计模型参考自适应系统

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

Getting started with UnityShader (1) - GPU and Shader

Synchronized和volatile 面试简单汇总

使用 Chainlink Keepers 实现智能合约函数的自动化执行

NC | 中国农大草业学院杨高文组揭示发现多因子干扰会降低土壤微生物多样性的积极效应...

How useful is four-quadrant time management?

TRACE32 - C source code association
随机推荐
Vb how to connect mysql_vb how to connect to the database collection "advice"
Synchronized and volatile interview brief summary
org.apache.jasperException(could not initialize class org)
leetcode303 Weekly Match Replay
使用 Chainlink Keepers 实现智能合约函数的自动化执行
自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统
OpenCV测量物体的尺寸技能 get~
数据表插入数据insert into
删除 状态良好(恢复分区)的磁盘
做事软件开发-法的重要性所在以及合理结论的认识
学习笔记12--路径-速度分解法之局部路径搜索
深入浅出边缘云 | 4. 生命周期管理
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
Node实现数据加密
Deployment application life cycle and Pod health check
Matlab matrix basic operations (definition, operation)
自适应控制——仿真实验三 用超稳定性理论设计模型参考自适应系统
Bilateral filtering acceleration "recommended collection"
OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry
R language ggplot2 visualization: use the ggboxplot function of the ggpubr package to visualize the grouped box plot, use the ggpar function to change the graphical parameters (caption, add, modify th