中的loc和scale参数是什么scipy.stats.maxwell?

2024-09-27 07:32:40 发布

您现在位置:Python中文网/ 问答频道 /正文

麦克斯韦玻尔兹曼分布由maxwell-boltzmann
(来自MathWorld-Wolfram Web资源:wolfram.com
. 这个scipy.stats.maxwell公司分布使用loc和scale参数来定义此分布。这两个定义中的参数是如何连接的?我也希望有人能告诉一般如何确定参数之间的关系scipy.stats公司以及他们通常的定义。在


Tags: comweb参数定义关系stats公司scipy
1条回答
网友
1楼 · 发布于 2024-09-27 07:32:40

loc参数总是移动x变量。换句话说,它概括了 允许将x=0移到x=loc的分布。所以当loc非零时

maxwell.pdf(x) = sqrt(2/pi)x**2 * exp(-x**2/2), for x > 0

变成

^{pr2}$

The doc string表示scipy.stats.maxwell状态:

A special case of a chi distribution, with df = 3, loc = 0.0, and given scale = a, where a is the parameter used in the Mathworld description.

所以标度对应于方程中的参数a


(来自MathWorld-Wolfram Web资源:wolfram.com

一般来说,您需要read the distribution's doc string来知道分布有哪些参数。^例如,{a5}除了loc和{}之外,还有a和{}形状参数。在

但是,我相信对于所有连续分布, distribution.pdf(x, loc, scale)等同于 distribution.pdf(y) / scale与{}一起使用。在

相关问题 更多 >

    热门问题