本次测试集数据共828934条,109个字段
主要对于以下10个字段进行分析
字段 | 解释 |
---|---|
user_id | 玩家唯一id |
pay_price | 付费金额 |
rigister_time | 玩家注册时间 |
avg_online_minutes | 在线时长 |
pvp_battle_count | 玩家之间对战次数 |
pvp_lanch_count | 主动发起pvp次数 |
pvp_win_count | pvp胜利次数 |
pve_battle_count | 玩家-电脑之间的对战次数 |
pve_lanch_count | 玩家主动发起PVE次数 |
pve_win_count | pve胜利次数 |
SELECT count(DISTINCT user_id)
FROM tap_fun_test
SELECT count(DISTINCT user_id) 新增付费玩家
FROM tap_fun_test
WHERE pay_price>0
SELECT b.`新增付费玩家`/a.`新增玩家` AS 付费玩家占比
FROM
(SELECT count(DISTINCT user_id) 新增玩家
FROM tap_fun_test) a,
(SELECT count(DISTINCT user_id) 新增付费玩家
FROM tap_fun_test
WHERE pay_price>0)b
新增玩家共828394人,付费玩家有19549人,付费人数占注册总人数2.36%
SELECT date(register_time) as 日期,
count(DISTINCT user_id) as 当日新增玩家
FROM tap_fun_test
GROUP BY date(register_time)
SELECT date(register_time) as 日期,
count(DISTINCT user_id) as 当日新增付费玩家
FROM tap_fun_test
WHERE pay_price>0
GROUP BY date(register_time)
每日新增玩家数在3.10日有一次大高峰增长,3.13一次小高峰增长,是由于两个时间点举办了游戏活动,但是游戏活动过了以后,后续注册量没有显著提升。
活动需要保持力度与一定时间维度,给玩家充分的时间去了解游戏。
SELECT AVG(avg_online_minutes)
FROM tap_fun_test
SELECT AVG(avg_online_minutes)
FROM tap_fun_test
WHERE pay_price>0
#求全部玩家四分位
SELECT ROUND(COUNT(DISTINCT user_id)/4) AS 下四分位数,
ROUND(COUNT(DISTINCT user_id)/2) AS 中位数,
ROUND(COUNT(DISTINCT user_id)/4*3) AS 上四分位数
FROM tap_fun_test
#求全部玩家在线时长的关键值
SELECT MIN(avg_online_minutes+0) as 最小值,
(SELECT avg_online_minutes
FROM tap_fun_test
ORDER BY avg_online_minutes+0
LIMIT 207234,1) AS 下四分位数,
(SELECT avg_online_minutes
FROM tap_fun_test
ORDER BY avg_online_minutes+0
LIMIT 414467,1) AS 中位数,
(SELECT avg_online_minutes
FROM tap_fun_test
ORDER BY avg_online_minutes+0
LIMIT 621701,1) AS 上四分位数,
MAX(avg_online_minutes+0) as 最大值
from tap_fun_test
0 0.5 1.666667 5.0 1605.833333
#付费玩家游戏时长四分位
SELECT ROUND(COUNT(DISTINCT user_id)/4) AS 下四分位数,
ROUND(COUNT(DISTINCT user_id)/2) AS 中位数,
ROUND(COUNT(DISTINCT user_id)/4*3) AS 上四分位数
FROM tap_fun_test
WHERE pay_price>0
4887 9775 14662
#付费玩家游戏时长关键值
SELECT MIN(avg_online_minutes+0) as 最小值,
(SELECT avg_online_minutes
FROM tap_fun_test
WHERE pay_price>0
ORDER BY avg_online_minutes+0
LIMIT 4887,1) AS 下四分位数,
(SELECT avg_online_minutes
FROM tap_fun_test
WHERE pay_price>0
ORDER BY avg_online_minutes+0
LIMIT 9775,1) AS 中位数,
(SELECT avg_online_minutes
FROM tap_fun_test
WHERE pay_price>0
ORDER BY avg_online_minutes+0
LIMIT 14667,1) AS 上四分位数,
MAX(avg_online_minutes+0) as 最大值
from tap_fun_test
WHERE pay_price>0
0.333333 30.666666999999997 84.666667 191.333333 1081.5
将数据可视化:
由图可得:
百分之75的玩家平均在线时长只有5分钟以内,可见玩家流失情况较严重。
付费玩家的在线时长下四分位数为30.6,所以可见百分之75以上的付费用户时长平均在线时长超过30分钟
AU:活跃用户 游戏时长>15分钟
PU:付费用户
APA:活跃付费用户数
ARPU:平均活跃用户收入
ARPPU:平均每个活跃付费用户收入
PUR:付费比率 APA/AU
SELECT COUNT(DISTINCT user_id) as 活跃玩家数量,
SUM(pay_price) as 活跃玩家总付费,
FORMAT(SUM(pay_price)/COUNT(DISTINCT user_id),2) as ARPU
FROM tap_fun_test
WHERE avg_online_minutes>=15
SELECT COUNT(DISTINCT user_id) as 活跃付费玩家数量,
SUM(pay_price) as 活跃付费玩家总付费,
FORMAT(SUM(pay_price)/COUNT(DISTINCT user_id),2) as ARPPU
FROM tap_fun_test
WHERE avg_online_minutes>=15 AND pay_price>0
SELECT COUNT(DISTINCT user_id) as APA,
(SELECT count(DISTINCT user_id)
FROM tap_fun_test
WHERE avg_online_minutes>=15) AS AU,
COUNT(DISTINCT user_id)/(SELECT count(DISTINCT user_id)
FROM tap_fun_test
WHERE avg_online_minutes>=15) AS PUR
FROM tap_fun_test
WHERE avg_online_minutes>=15 AND pay_price>0
将数据可视化:
由图可得:
1.该游戏人均付费率很低,游戏收入表现较差
2.但是根据第二张图,ARPPU是ARPU的六倍,说明玩家付费能力强,可以做一些付费的优化,让人民币玩家玩的开心愉快
SELECT count(DISTINCT user_id) AS AU,
FORMAT(AVG(pvp_battle_count),1) AS AU人均pvp局数,
FORMAT(AVG(pvp_lanch_count),1) AS AU人均发起pvp局数,
FORMAT(SUM(pvp_lanch_count)/SUM(pvp_battle_count),2) AS AU主动发起概率,
FORMAT(SUM(pvp_win_count)/SUM(pvp_battle_count),2) AS AU胜利概率
FROM tap_fun_test
WHERE avg_online_minutes >=15
SELECT count(DISTINCT user_id) AS AU,
FORMAT(AVG(pvp_battle_count),1) AS AU人均pvp局数,
FORMAT(AVG(pvp_lanch_count),1) AS AU人均发起pvp局数,
FORMAT(SUM(pvp_lanch_count)/SUM(pvp_battle_count),2) AS AU主动发起概率,
FORMAT(SUM(pvp_win_count)/SUM(pvp_battle_count),2) AS AU胜利概率
FROM tap_fun_test
WHERE avg_online_minutes >=15
SELECT count(DISTINCT user_id) AS AU,
FORMAT(AVG(pve_battle_count),1) AS AU人均pvp局数,
FORMAT(AVG(pve_lanch_count),1) AS AU人均发起pvp局数,
FORMAT(SUM(pve_lanch_count)/SUM(pve_battle_count),2) AS AU主动发起概率,
FORMAT(SUM(pve_win_count)/SUM(pve_battle_count),2) AS AU胜利概率
FROM tap_fun_test
WHERE avg_online_minutes >=15
SELECT count(DISTINCT user_id) AS AU,
FORMAT(AVG(pve_battle_count),1) AS AU人均pvp局数,
FORMAT(AVG(pve_lanch_count),1) AS AU人均发起pvp局数,
FORMAT(SUM(pve_lanch_count)/SUM(pve_battle_count),2) AS AU主动发起概率,
FORMAT(SUM(pve_win_count)/SUM(pve_battle_count),2) AS AU胜利概率
FROM tap_fun_test
WHERE avg_online_minutes >=15 AND pay_price>0
APA是AU的两倍左右,显然APA玩家愿意花费更多时间在游戏上
PVE中,两者发起与胜利概率基本持平,可见玩家均熟悉PVE规则,会主动打怪升级。打怪机制对于非人民币玩家也非常友好。
PVE中,APA更享受对战乐趣,也获胜几率更高。
1.新增玩家分析:
2.玩家活跃度分析:
3.玩家付费情况分析:
4.玩家PVP,PVE情况分析: