statsmodels.sandbox.stats.runs.Runs.runs_test¶ Runs.runs_test(correction=True)[source]¶ 运行测试的基本版本 Parameters:¶ correctionbool根据SAS手册,对于样本量小于50的情况,检验统计量会通过0.5进行修正。可以通过设置correction=False来关闭此修正,此修正的目的是为了与R、tseries匹配,因为它们不使用任何修正。 pvalue based on normal distribution, with integer correction Last update: Oct 16, 2024