Skip to content

gwhhub/Pur_Red_forecast

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

天猫大数据竞赛——资金流入流出预测

###竞赛过程中的项目代码以及挖掘到的信息。 核心是进行时间序列分析: STL + HW + Special Point arrangement.

datasets:
####成绩README.docx:记录每一次提交的数据的模型

####关键数据.xlsx :内涵每一天每一单项的总额

####AfterApril_user_balance_table.txt: 从原始数据中截取4月份以后数据

####date_red_pur.txt:每天申购赎回总额 DATE SUM_PUR SUM_RED

####date_sort.txt: 将训练集中数据的采集日期排序 DATE
20130701
20130702

####date_sum_all.txt:每日各统计分项汇总 DATE  sum_pur_total sum_red_total sum_pur_direct sum_pur_bal sum_pur_bank sum_share sum_red_con sum_red_tr sum_red_tftobal sum_red_tftocard sum_cat1 sum_cat2 sum_cat3 sum_cat4

####date_times_usr.txt:每天余额宝中记录的申购、赎回次数 USR_NO:操作人数;PUR:申购次数;USR_NO_PUR:申购人次;RED:赎回次数;USR_NO_RED:赎回人次;RED_PUR:同时申购赎回次数;USR_NO_RED_PUR:同时操作人次
DATE  TIMES  USR_NO  PUR USR_NO_PUR  RED  USR_NO_RED  RED_PUR  USR_NO_RED_PUR
20130701  407  407  299  299   29   29   26   26

####usr.balance_table.csv:全部的原始数据

####usr_times.csv:April以后,超过5次操作的每位用户的操作次数和余额变化范围 USR_ID TIMES MAX_T_BALANCE MIN_T_BALANCE

####usr.csv: 每个ID号在整个时期被记录次数 ID TIMES
1 103
2 1

###EXAMPLE CODE TO USE ODPS SQL

creat table if not exists lt_usr_balance_table_sum_baseline(
  report_date string comment '日期'
  total_purchase_amt bigint comment '日申购总额'
  total_redeem_amt bigint comment '日赎回总额'
)comment '日申购赎回汇总表' partitioned by (ds string);  

inset overwrite table lt_usr_balance_table_sum_baseline partition(ds = 'all')

select report_date,
       sum(total_purchase_amt) total_purchase_amt,
       sum(total_redeem_amt) total_redeem_amt
from tianchi_test.user_balance_table  --内部赛主办方提供的申购赎回记录表。
group by report_date;

--例如需要4到8月份的数据作为训练集


##Tianchi 2015 golden league——The Purchase and Redemption Forecasts Introduction
  Ant Financial Services Group (AFSG) processes cash inflow and outflow for millions of its members. As one can imagine, predicting future cash flows based on historical data is an important part of AFSG's business. Participants will be challenged to predict future cash flows based on users' historical purchase and redemption data to help Ant Financial Services Group (AFSG) improve its funds management abilities. (Purchases refers to funds inflow, while redemptions refers to funds outflow.)
  This repository is used to store the source code for data analysis and important information obtained during data mining.
  The core of the model is to perform time-series analysis, including expotianal smoothing, ARIMA(AutoRegression Integrated Moving average )   

About

大数据竞赛——资金流入流出预测

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 81.9%
  • R 18.1%