当我在python中使用ks测试时,为什么我的p值等于0,统计量等于1?]

问题描述 投票:0回答:1
感谢任何先关注的人。

我的代码是:

import numpy as np from scipy.stats import kstest data=[31001, 38502, 40842, 40852, 43007, 47228, 48320, 50500, 54545, 57437, 60126, 65556, 71215, 78460, 81299, 96851, 106472, 108398, 118495, 130832, 141678, 155703, 180689, 218032, 222238, 239553, 250895, 274025, 298231, 330228, 330910, 352058, 362993, 369690, 382487, 397270, 414179, 454013, 504993, 518475, 531767, 551032, 782483, 913658, 1432195, 1712510, 2726323, 2777535, 3996759, 13608152] x=np.array(data) test_sta=kstest(x, 'norm') print(test_sta)

kstest的结果为KstestResult(statistic = 1.0,pvalue = 0.0)。代码有什么问题还是数据根本不正常?

感谢任何先看的人。我的代码是:从scipy.stats导入numpy作为np导入kstest数据= [31001,38502,40842,40852,43007,47228,48320,50500,54545,57437,60126,65556,...

python statistics p-value kolmogorov-smirnov
1个回答
0
投票
我以前没有使用过,但是我认为您正在测试数据是否为标准正态(即均值= 0,方差= 1)
© www.soinside.com 2019 - 2024. All rights reserved.