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

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

parent c7f796aa
......@@ -4,6 +4,7 @@ from scipy.stats import ttest_ind
from scipy.stats import levene
import datetime
from utils import con_sql
from decimal import *
#########推荐策略前后统计指标假设检验(t检验)###############
......@@ -49,9 +50,9 @@ 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))]
x_crv_new=[str(Decimal(x_crv_new_temp[i][0]).quantize('0.0000')) for i in range(len(x_crv_new_temp))]
print(type(x_crv_new))
print(type(x_crv_new_temp[0][0]))
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]))
......
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