gpt4 book ai didi

python - 用于在 Seaborn 条形图中绘制误差线的默认置信区间是多少?

转载 作者:行者123 更新时间:2023-12-01 01:52:28 24 4
gpt4 key购买 nike

Seaborn 的条形图显示误差线或上限,以“提供有关该估计的不确定性的一些指示”。默认情况下,使用什么置信区间来绘制这些误差线?

最佳答案

来自seaborn v0.12.0参数现在是errorbar

参见Statistical estimation and error bars .

errorbar : string, (string, number) tuple, callable or NoneName of errorbar method (either 'ci', 'pi', 'se', or 'sd'), or a tuple with a method name and a level parameter, or a function that maps from a vector to a (min, max) interval, or None to hide errorbar.

默认值为errorbar=('ci', 95)

<小时/>

根据documentation for version 0.8.1seaboard.barplotci 参数的默认值为 95。因此,默认情况下,Seaborn 条形图是以 95% 置信区间绘制的。

上面链接中给出的文档还说明了 ci 参数可接受的值:

ci : float or "sd" or None, optional

Size of confidence intervals to draw around estimated values. If "sd", skip bootstrapping and draw the standard deviation of the observations. If None, no bootstrapping will be performed, and error bars will not be drawn.

<小时/>

为了完整起见,这里是根据本答案顶部链接的文档的seaboard.barplot函数的签名。 ci 是感兴趣的参数。

seaborn.barplot(
x=None,
y=None,
hue=None,
data=None,
order=None,
hue_order=None,
estimator=<function mean>,
ci=95,
n_boot=1000,
units=None,
orient=None,
color=None,
palette=None,
saturation=0.75,
errcolor='.26',
errwidth=None,
capsize=None,
dodge=True,
ax=None,
**kwargs
)

关于python - 用于在 Seaborn 条形图中绘制误差线的默认置信区间是多少?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50576666/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com