Operation Analytics and Investigating Metric Spike
Operation Analytics and Investigating Metric Spike
The required information was determined via SQL queries where the data base was
created first in SQL and moreover for the second case study due to the size of the
data excel was used to make charts for better visualisation.
TECH STACK USED
select
avg(t) as 'avg jobs reviewed per day per hour’,
avg(p) as 'avg jobs reviewed per day per second’
avg jobs avg jobs reviewed
From
reviewed per day per day per
(select ds,((count(job_id)*3600)/sum(time_spent)) as t, per hour second
((count(job_id))/sum(time_spent)) as p
from job_data 126.1804833 0.03505
where month(ds)=11
group by ds) a;
INSIGHT-THROUGHPUT AND 7-DAY
ROLLING AVERAGE OF THROUGHPUT
Select throuput_ throuput_7_d
ds, ds per_day ay_rolling
c/t as throuput_per_day,
c7/s7 as throuput_7_day_rolling 25-11-2020 0.0222 0.0222
From
(select 26-11-2020 0.0179 0.0198
ds, 27-11-2020 0.0096 0.0146
count(job_id) as c,
sum(time_spent) as t, 28-11-2020 0.0606 0.0176
count(job_id) over(order by ds rows between 6
preceding and current row) as c7, 29-11-2020 0.05 0.0202
sum(time_spent) over(order by ds rows between 6
preceding and current row) as s7
30-11-2020 0.05 0.0229
from job_data
7 day rolling average is better because it can offset the
where month(ds)=11
throughput fluctuations of one day and create a more accurate
group by ds) a;
picture
INSIGHT-PERCENTAGE SHARE OF
LANGUAGE USED IN LAST 30 DAYS
select *
When no
from(
duplicate
select *,
data
row_number() over(partition by ds,actor_id,job_id) as row_num
from
job_data) a
where row_num>1;
select *,
engagement-lag(engagement) over(partition by'week of the year') as 'weekly
engagement growth’
From
(select
week(occurred_at) as 'week of the year’,
count(event_name) as 'engagement’
from events
where event_type!='signup_flow’
group by week(occurred_at))a;
INSIGHT-USER GROWTH
3500
3000
2500
2000
users
1500
1000
500
0
0 3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72 75 78 81 84
weeks
cohort_retained
Major drop in the first 10 weeks at the end of 85 weeks only 2 users remain
INSIGHT-WEEKLY RETENTION COHORT
ANALYSIS
Select
week_period,
first_value(cohort_retained) over (order by week_period) as cohort_size,
cohort_retained,
cohort_retained / first_value(cohort_retained) over (order by week_period) as pct_retained
From
(select
timestampdiff(week,a.activated_at,b.occurred_at) as week_period,
count(distinct a.user_id) as cohort_retained
From
(select user_id, activated_at
from users where state='active'group by 1) a
inner join
(select user_id,occurred_at from events )b
on a.user_id=b.user_id
INSIGHT-WEEKLY ENGAGEMENT PER
DEVICE device_name
acer aspire desktop
avg_weekly_users
26
avg_times_used_weekly
32.9474
acer aspire notebook 43.1579 56.8421
amazon fire phone 10.5556 13.7778
asus chromebook 43.5263 58.8947
Given is average weekly engagement dell inspiron desktop 46.6316 62.7368
per device dell inspiron notebook 91.1053 123.4737
hp pavilion desktop 42.1053 55.8421
The weekly data per device was htc one
ipad air
21.8421
51.4444
27.6842
61.7222
very large (960 rows) hence ipad mini 30 34.7368
calculated the weekly data iphone 4s 46.6316 60.5789
iphone 5 123.1579 161.2105