statsmodels.sandbox.stats.runs.Runs

class statsmodels.sandbox.stats.runs.Runs(x)[source]

二进制序列中运行类的定义

Parameters:
xarray_like, 1d

数据数组,

注释

这是为运行编写的一个更通用的类。当仅使用runs_test时,这会有一些冗余的计算。

待办事项:使其变为惰性加载

运行测试可以在有使用场景的情况下推广到超过1维。

一旦我弄清楚任意长度k的运行分布是什么,这将需要扩展。

游程检验的确切分布也可用,但尚未验证。

方法

runs_test([correction])

运行测试的基本版本


Last update: Oct 16, 2024