statsmodels.stats.diagnostic.anderson_statistic

statsmodels.stats.diagnostic.anderson_statistic(x, dist='norm', fit=True, params=(), axis=0)[source]

计算 Anderson-Darling a2 统计量。

Parameters:
xarray_like

要测试的数据。

dist{‘norm’, callable}

假设检验统计量在零假设下的分布。

fitbool

如果为真,则估计分布参数。 目前仅适用于一维数据 x,除了在 dist=’norm’ 的情况下。

paramstuple

可选的分布参数,如果 fit 为 False。

axisint

如果 dist 是 ‘norm’ 或 fit 为 False,那么数据可以是 n 维的,并且 axis 指定变量的轴。

Returns:
{float, ndarray}

安德森-达林统计量。


Last update: Oct 16, 2024