Commit acb02da2 authored by 王志伟's avatar 王志伟

数据指标波动假设检验统计

parent 3783a888
......@@ -206,8 +206,11 @@ def chi_cal(data):
###理论值计算
temp1=data.loc['共计']
print("共计:{}".format(temp1))
rate1=temp1[0]/temp1[2]
print("rate1:{}".format(rate1))
rate2=temp1[1]/temp1[2]
print("rate2:{}".format(rate2))
temp2=data.iloc[2]
t11_theory=temp2[0]*rate1
print("t11_theory:{}".format(t11_theory))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment