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

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

parent 4dbcfe4f
......@@ -50,11 +50,11 @@ def DATA_fixed(x,y,z,q):
# #新用户cvr
x_crv_new_temp=DATA_recently("diary_meigou_newUser","diary_clk_newUser","CVR_new","diary_meigou_crv",ten_days)
x_crv_new=[x_crv_new_temp[i][0] for i in range(len(x_crv_new_temp))]
# print(type(x_crv_new))
# print(x_crv_new)
y_crv_new_temp=DATA_fixed("diary_meigou_newUser","diary_clk_newUser","CVR_new","diary_meigou_crv")
y_crv_new=[y_crv_new_temp[i][0] for i in range(len(y_crv_new_temp))]
print(type(y_crv_new[0]))
print(type(x_crv_new))
print(x_crv_new)
# y_crv_new_temp=DATA_fixed("diary_meigou_newUser","diary_clk_newUser","CVR_new","diary_meigou_crv")
# y_crv_new=[y_crv_new_temp[i][0] for i in range(len(y_crv_new_temp))]
# print(type(y_crv_new[0]))
# #老用户cvr
# x_crv_old=DATA_recently("diary_meigou_oldUser","diary_clk_oldUser","CVR_old","diary_meigou_crv")
# y_crv_old=DATA_fixed("diary_meigou_oldUser","diary_clk_oldUser","CVR_old","diary_meigou_crv")
......@@ -111,7 +111,7 @@ def t_test(x,y): #进行t检验
# ###假设检验,判断是否具有显著性
#
#新用户cvr假设检验
crv_new_ttest=t_test(x_crv_new,y_crv_new)
# crv_new_ttest=t_test(x_crv_new,y_crv_new)
#老用户cvr假设检验
# crv_old_ttest=t_test(x_crv_old,y_crv_old)
#
......
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