Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
ffm-baseline
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ML
ffm-baseline
Commits
77e93663
Commit
77e93663
authored
Feb 20, 2019
by
王志伟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据指标波动假设检验统计
parent
d28fa928
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
hypothesis_test.py
eda/recommended_indexs/hypothesis_test.py
+5
-5
No files found.
eda/recommended_indexs/hypothesis_test.py
View file @
77e93663
...
...
@@ -264,7 +264,7 @@ cvr_old2=[float(chi_cvr_old_yesterday[i]) for i in range(len(chi_cvr_old_yesterd
cvr_tst_old
=
data_cal
(
cvr_old
,
cvr_old2
)
chi_cal
(
cvr_tst_old
)
#老用户美购转化数据
print
(
"【
3
】新用户CVR数据波动假设检验结果:"
)
print
(
"【
4
】新用户CVR数据波动假设检验结果:"
)
chi_cvr_new_recently
=
chi_DATA_recently_all
(
"diary_meigou_newUser"
,
"diary_clk_newUser"
,
"diary_meigou_crv"
,
five_days
,
yesterday
)
cvr_new
=
[
float
(
str
(
Decimal
(
chi_cvr_new_recently
[
i
])
.
quantize
(
Decimal
(
'0.0'
))))
for
i
in
range
(
len
(
chi_cvr_new_recently
))]
# print(temp1)
...
...
@@ -274,7 +274,7 @@ cvr_new2=[float(chi_cvr_new_yesterday[i]) for i in range(len(chi_cvr_new_yesterd
cvr_tst_new
=
data_cal
(
cvr_new
,
cvr_new2
)
chi_cal
(
cvr_tst_new
)
#老用户美购转化数据
print
(
"【
3
】老用户CT-CVR数据波动假设检验结果:"
)
print
(
"【
5
】老用户CT-CVR数据波动假设检验结果:"
)
chi_ctcvr_old_recently
=
chi_DATA_recently_all
(
"diary_meigou_oldUser"
,
"diary_exp_oldUser"
,
"diary_meigou_crv"
,
five_days
,
yesterday
)
ctcvr_old
=
[
float
(
str
(
Decimal
(
chi_ctcvr_old_recently
[
i
])
.
quantize
(
Decimal
(
'0.0'
))))
for
i
in
range
(
len
(
chi_ctcvr_old_recently
))]
# print(temp1)
...
...
@@ -284,7 +284,7 @@ ctcvr_old2=[float(chi_ctcvr_old_yesterday[i]) for i in range(len(chi_ctcvr_old_y
ctcvr_tst_old
=
data_cal
(
ctcvr_old
,
ctcvr_old2
)
chi_cal
(
ctcvr_tst_old
)
#老用户美购转化数据
print
(
"【
3
】新用户CT-CVR数据波动假设检验结果:"
)
print
(
"【
6
】新用户CT-CVR数据波动假设检验结果:"
)
chi_ctcvr_new_recently
=
chi_DATA_recently_all
(
"diary_meigou_newUser"
,
"diary_exp_newUser"
,
"diary_meigou_crv"
,
five_days
,
yesterday
)
ctcvr_new
=
[
float
(
str
(
Decimal
(
chi_ctcvr_new_recently
[
i
])
.
quantize
(
Decimal
(
'0.0'
))))
for
i
in
range
(
len
(
chi_ctcvr_new_recently
))]
# print(temp1)
...
...
@@ -305,7 +305,7 @@ def get_var_data(x,y,z,t1):
def
collect_data
(
data
):
tt
=
[
float
(
data
[
i
][
0
])
*
100
for
i
in
range
(
len
(
data
))]
return
tt
print
(
"【1】新用户CT-CVR数据波动5日内方差检验结果:"
)
test_data
=
get_var_data
(
"diary_meigou_oldUser"
,
"diary_exp_oldUser"
,
"diary_meigou_crv"
,
five_days
)
tt
=
collect_data
(
test_data
)
lin
=
np
.
var
(
tt
)
...
...
@@ -313,7 +313,7 @@ print(lin)
# print(chi_ctr_precise_recently)
# print(chi_ctr_precise_yesterday)
print
(
"============================分割线==================================="
)
# chi_cvr_new=
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment