SlideShare a Scribd company logo
1 of 24
Download to read offline
Operation Analytics and Investigating
Metric Spike
By Santosh Shinde
Description
Operation Analytics
Operation analytics is the analysis performed for a
company's whole end-to-end operations.
With the aid of this, the business determines the
areas in which it needs to develop, working closely
with the operations team, support team, and
marketing team to assist them in drawing
conclusions from the data they gather.
Being one of the most crucial components of a
business, this form of analysis is also utilised to
forecast the general upward or downward trend in
a company's fortune.
Additionally, it is used for better workflows,
cross-functional team communication, and
automation.
Investigating Metric Spike
Analyzing metric spikes is a crucial component of
operational analytics since a data analyst needs to
be able to answer queries like, "Why is there a
decline in daily engagement?" or at least help
other teams answer these questions.
Why have sales decreased?
Daily answers to questions like these are required,
so it is crucial to look into metric increase.
ASK
Nothing down key business
questions asked by team.
PREPARE
Job data such as job_id,
actor_id,time_spent etc and User_event
data such as user_id, event_type,
relevant timeline etc is needed.
PROCESS
Data is collected by importing the
provided csv to PostgreSQL.
ANALYZE
Data analysis using SQL queries
to answer the business
questions.
SHARE
Bringing data to life with visuals
and sharing final report.
ACT
Deriving meaningful insights
from analysis.
Approach
Tech-Stack Used
MS-EXCEL GOOGLE SLIDES
POSTGRESQL
Data is in the form of .csv files from
which the data will be processed
Data will imported from csv to sql format. And
then the data will be analyzed according to the
conditions asked by the organization.
All the analyzed data will be
visualise in the form PPT.
Insights
JOB_DATA
1.Total number of jobs examined: The total number of jobs examined over time.
Your job:Determine how many jobs will be reviewed each hour and day in November 2020.
-- Calculate the number of jobs reviewed per hour per day for November 2020?
SELECT
ds,
ROUND(1.0 * COUNT(job_id) * 3600 / SUM(time_spent),
2) AS jobs_reviewed_per_hour
FROM
job_table
WHERE
ds BETWEEN '2020-11-01' AND '2020-11-30'
AND event IN ('transfer' , 'decision')
GROUP BY ds
Insights
2.Throughput: It is the no. of events happening per second.
Your job: Let’s say the above metric is called throughput. Calculate 7 day rolling average of throughput.
-- Calculate 7 day rolling average of throughput?
with CTE AS (
SELECT
DS,
COUNT(job_id) as num_jobs,
SUM(time_spent) as total_time
From job_table
Where event In ('transfer','decision')
And ds Between '2020-11-01' and '2020-11-30'
Group by ds)
Select ds,round(1.0*sum(num_jobs) over
(Order by ds rows between 6 Preceding and current row) /
sum(total_time) OVER
(order by ds rows between 6 Preceding and current row),2) as throughput_for_7days
From CTE;
Insights
3.Percentage share of each language: Share of each language for different contents.
Your job: Calculate the percentage share of each language in the last 30 days
-- Calculate the percentage share of each language in the last 30 days
WITH CTE AS (
SELECT Language,
COUNT(job_id) as num_jobs
From job_table
Where event In('transfer','decision')
And ds Between '2020-11-01' and '2020-11-30'Group by language),
Total as(Select COUNT(job_id) as total_jobs
From job_table
Where event In('transfer','decision')
And ds Between '2020-11-01' and '2020-11-30'
Group by language)
Select distinct Language,
Round(100*num_jobs / total_jobs,2) as percentage_of_jobs
From CTE
cross join total
Order by percentage_of_jobs DESC;
Insights
4.Duplicate rows: Rows that have the same value present in them.
Your job: Let’s say you see some duplicate rows in the data. How will you display duplicates from the
table.
--Here we have created new table with similar values, after that inserted one more row.
-- Displaying duplicate rows
SELECT
*
FROM (SELECT
*,
ROW_NUMBER() OVER (PARTITION BY ds, job_id, actor_id, event,
language,time_spent, org ORDER BY job_id) AS row_num
FROM job_table_2) a
WHERE row_num >1
Insights
INVESTIGATING_METRIC SPIKE
1.User Engagement: To measure the activeness of a user. Measuring
if the user finds quality in a product/service.
Your job: Calculate the weekly user engagement?
-- Calculate the weekly user engagement?
SELECT
DATE_TRUNC('week', e.occurred_at) AS week_interval,
COUNT(DISTINCT e.user_id) AS weekly_active_users
FROM
events e
WHERE
e.event_type = 'engagement'
AND e.event_name = 'login'
GROUP BY
week_interval
ORDER BY
week_interval
Insights
2.User Growth: Amount of users growing over time for a product.
Your job: Calculate the user growth for product.
-- Calculate the user growth for product?
SELECT
DATE_TRUNC('day', created_at) AS DAY,
COUNT(*) AS all_users,
COUNT(
CASE
WHEN activated_at IS NOT NULL THEN u.user_id
ELSE NULL
END
) AS activated_users
FROM
users u
WHERE created_at >= '2013-01-01'
AND created_at < '2013-01-31'
GROUP BY DAY
ORDER BY DAY
Insights
3.Weekly Retention: Users getting retained weekly after signing-up for a product.
Your job: Calculate the weekly retention of users-sign up cohort?
SELECT DATE_TRUNC('week',a.occurred_at) AS "week",
COUNT(DISTINCT CASE WHEN a.user_age > 70 THEN a.user_id ELSE NULL END) AS "10+ weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 70 AND a.user_age >= 63 THEN a.user_id ELSE NULL END) AS "9 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 63 AND a.user_age >= 56 THEN a.user_id ELSE NULL END) AS "8 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 56 AND a.user_age >= 49 THEN a.user_id ELSE NULL END) AS "7 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 49 AND a.user_age >= 42 THEN a.user_id ELSE NULL END) AS "6 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 42 AND a.user_age >= 35 THEN a.user_id ELSE NULL END) AS "5 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 35 AND a.user_age >= 28 THEN a.user_id ELSE NULL END) AS "4 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 28 AND a.user_age >= 21 THEN a.user_id ELSE NULL END) AS "3 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 21 AND a.user_age >= 14 THEN a.user_id ELSE NULL END) AS "2 weeks",
COUNT(DISTINCT CASE WHEN a.user_age < 14 AND a.user_age >= 7 THEN a.user_id ELSE NULL END) AS "1 week",
COUNT(DISTINCT CASE WHEN a.user_age < 7 THEN a.user_id ELSE NULL
END) AS "Less than a week"
FROM (
SELECT e.occurred_at,
u.user_id,
DATE_TRUNC('week',u.activated_at) AS activation_week,
EXTRACT('day' FROM '2014-09-01'::TIMESTAMP -
u.activated_at) AS user_age
FROM users u
JOIN events e
ON e.user_id = u.user_id
AND e.event_type = 'engagement'
AND e.event_name = 'login'
AND e.occurred_at >= '2014-05-01'
AND e.occurred_at < '2014-09-01'
WHERE u.activated_at IS NOT NULL
) a
GROUP BY DATE_TRUNC('week',a.occurred_at)
ORDER BY DATE_TRUNC('week',a.occurred_at)
LIMIT 100
Insights
4.Weekly Engagement: To measure the activeness of a user.
Measuring if the user finds quality in product/service_weekly.
Your job: Calculate the weekly engagement per device?
-- Calculate the weekly user engagement?
SELECT DATE_TRUNC('week', occurred_at) AS week,
COUNT(DISTINCT e.user_id) AS weekly_active_users,
COUNT(DISTINCT CASE WHEN e.device IN ('macbook pro','lenovo
thinkpad','macbook air','dell inspiron notebook',
'asus chromebook','dell inspiron desktop','acer aspire
notebook','hp pavilion desktop','acer aspire desktop','mac mini')
THEN e.user_id ELSE NULL END) AS computer,
COUNT(DISTINCT CASE WHEN e.device IN ('iphone 5','samsung galaxy s4','nexus 5','iphone 5s','iphone 4s','nokia lumia 635', 'htc
one','samsung galaxy note','amazon fire phone') THEN e.user_id ELSE NULL END) AS phone,
COUNT(DISTINCT CASE WHEN e.device IN ('ipad air','nexus 7','ipad mini','nexus 10','kindle fire','windows surface', 'samsumg galaxy
tablet') THEN e.user_id ELSE NULL END) AS tablet FROM events e
WHERE e.event_type = 'engagement' AND e.event_name = 'login'
GROUP BY week
ORDER BY week
LIMIT 100
Insights
5.Email Engagement: Users engaging with the email service.
Your job: Calculate the email engagement metrics?
-- Calculate the email engagement metrics
select date_trunc('week', occurred_at) as week,
count(case when e.action='sent_weekly_digest' then e.user_id else null end) as weekly_emails,
count(case when e.action='sent_reengagement_email' then e.user_id else null end) as re_engagement_email,
count(case when e.action='email_open' then e.user_id else null end) as email_opens,
count(case when e.action='email_clickthrough' then e.user_id else null end) as email_clickthroughs
from email_events e
group by 1;
Results
magrowth
● User engagement: We observe a significant increase and a
sharp decline around the end of July and the beginning of August;
this could be the result of an advertising event.
● User growth: Growth is still robust during the week and low on
the weekends.
● Weekly retention: The engagement of users who have been
registered for more than 10 weeks is decreasing, as shown in the
graph.
● Weekly engagement by device: There is a significant decline in
phone engagement rates when compared to computer and tablet
engagement rates, indicating that there may be a problem with
the service's mobile app that is preventing long-term user
retention.
● Email engagement: There may be an issue with the content in
the email as indicated by the sudden decline in weekly emails,
re-engagement emails, email opens, and email click throughs in
the late 4th week of April 2014. As a result, the organisation
should concentrate on email content marketing.
Thank You.

More Related Content

What's hot

Sql Commands
Sql CommandsSql Commands
Sql CommandsSachin MK
 
Basic Sql Handouts
Basic Sql HandoutsBasic Sql Handouts
Basic Sql Handoutsjhe04
 
Sql queries questions and answers
Sql queries questions and answersSql queries questions and answers
Sql queries questions and answersMichael Belete
 
sql function(ppt)
sql function(ppt)sql function(ppt)
sql function(ppt)Ankit Dubey
 
Sql queries presentation
Sql queries presentationSql queries presentation
Sql queries presentationNITISH KUMAR
 
Learn to-use-google-data-studio-jan22
Learn to-use-google-data-studio-jan22Learn to-use-google-data-studio-jan22
Learn to-use-google-data-studio-jan22Rahmat Taufiq Sigit
 
Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...
Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...
Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...Simplilearn
 
Introduction to Data Analytics
Introduction to Data AnalyticsIntroduction to Data Analytics
Introduction to Data AnalyticsUtkarsh Sharma
 
1. Data Analytics-introduction
1. Data Analytics-introduction1. Data Analytics-introduction
1. Data Analytics-introductionkrishna singh
 
Big Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should KnowBig Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should KnowBernard Marr
 
kinds of analytics
kinds of analyticskinds of analytics
kinds of analyticsBenila Paul
 
Sql queries interview questions
Sql queries interview questionsSql queries interview questions
Sql queries interview questionsPyadav010186
 
SQL querys in detail || Sql query slides
SQL querys in detail || Sql query slidesSQL querys in detail || Sql query slides
SQL querys in detail || Sql query slidesgourav kottawar
 
SQL practice questions set - 2
SQL practice questions set - 2SQL practice questions set - 2
SQL practice questions set - 2Mohd Tousif
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL CommandsShrija Madhu
 

What's hot (20)

Sql Commands
Sql CommandsSql Commands
Sql Commands
 
Basic Sql Handouts
Basic Sql HandoutsBasic Sql Handouts
Basic Sql Handouts
 
Sql queries questions and answers
Sql queries questions and answersSql queries questions and answers
Sql queries questions and answers
 
sql function(ppt)
sql function(ppt)sql function(ppt)
sql function(ppt)
 
Sql queires
Sql queiresSql queires
Sql queires
 
Sql queries presentation
Sql queries presentationSql queries presentation
Sql queries presentation
 
Learn to-use-google-data-studio-jan22
Learn to-use-google-data-studio-jan22Learn to-use-google-data-studio-jan22
Learn to-use-google-data-studio-jan22
 
Sql task
Sql taskSql task
Sql task
 
Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...
Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...
Data Scientist vs Data Analyst vs Data Engineer - Role & Responsibility, Skil...
 
MySQL INDEXES
MySQL INDEXESMySQL INDEXES
MySQL INDEXES
 
Introduction to Data Analytics
Introduction to Data AnalyticsIntroduction to Data Analytics
Introduction to Data Analytics
 
MySQL Functions
MySQL FunctionsMySQL Functions
MySQL Functions
 
1. Data Analytics-introduction
1. Data Analytics-introduction1. Data Analytics-introduction
1. Data Analytics-introduction
 
Data science
Data scienceData science
Data science
 
Big Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should KnowBig Data - 25 Amazing Facts Everyone Should Know
Big Data - 25 Amazing Facts Everyone Should Know
 
kinds of analytics
kinds of analyticskinds of analytics
kinds of analytics
 
Sql queries interview questions
Sql queries interview questionsSql queries interview questions
Sql queries interview questions
 
SQL querys in detail || Sql query slides
SQL querys in detail || Sql query slidesSQL querys in detail || Sql query slides
SQL querys in detail || Sql query slides
 
SQL practice questions set - 2
SQL practice questions set - 2SQL practice questions set - 2
SQL practice questions set - 2
 
SQL - DML and DDL Commands
SQL - DML and DDL CommandsSQL - DML and DDL Commands
SQL - DML and DDL Commands
 

Similar to Analyze Key Metrics and Investigate Spikes

Operation Analytics and Investigating Metric Spike.pptx
Operation Analytics and Investigating Metric Spike.pptxOperation Analytics and Investigating Metric Spike.pptx
Operation Analytics and Investigating Metric Spike.pptxAnvithaY1
 
James Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science PortfolioJames Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science Portfoliocolbydaman
 
Google Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsGoogle Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsSilvia Alongi
 
Simple Cohort Analysis in Google Sheets
Simple Cohort Analysis in Google SheetsSimple Cohort Analysis in Google Sheets
Simple Cohort Analysis in Google SheetsGoSquared
 
#Measure Engagement - DAU / MAU and AAD
#Measure Engagement - DAU / MAU and AAD#Measure Engagement - DAU / MAU and AAD
#Measure Engagement - DAU / MAU and AADJules Stuifbergen
 
IS320 Database Applications.docx
IS320 Database Applications.docxIS320 Database Applications.docx
IS320 Database Applications.docxstirlingvwriters
 
Capstone New Century Wellness Group Task Financial.pdf
Capstone New Century Wellness Group Task Financial.pdfCapstone New Century Wellness Group Task Financial.pdf
Capstone New Century Wellness Group Task Financial.pdfstudywriters
 
Project report aditi paul1
Project report aditi paul1Project report aditi paul1
Project report aditi paul1guest9529cb
 
Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)
Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)
Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)Dan Robinson
 
Rating Prediction for Restaurant
Rating Prediction for Restaurant Rating Prediction for Restaurant
Rating Prediction for Restaurant Yaqing Wang
 
Congratulations!! You have been selected to create a banking simulat.docx
Congratulations!! You have been selected to create a banking simulat.docxCongratulations!! You have been selected to create a banking simulat.docx
Congratulations!! You have been selected to create a banking simulat.docxbreaksdayle
 
Data Modeling in Looker
Data Modeling in LookerData Modeling in Looker
Data Modeling in LookerLooker
 
Soft performance - measuring
Soft performance - measuringSoft performance - measuring
Soft performance - measuringDimiter Simov
 
Insurance Optimization
Insurance OptimizationInsurance Optimization
Insurance OptimizationAlbert Chu
 
READ MEIf you need assistance using Excel, you can access a tutori.docx
READ MEIf you need assistance using Excel, you can access a tutori.docxREAD MEIf you need assistance using Excel, you can access a tutori.docx
READ MEIf you need assistance using Excel, you can access a tutori.docxmakdul
 
Company segmentation - an approach with R
Company segmentation - an approach with RCompany segmentation - an approach with R
Company segmentation - an approach with RCasper Crause
 

Similar to Analyze Key Metrics and Investigate Spikes (20)

Operation Analytics and Investigating Metric Spike.pptx
Operation Analytics and Investigating Metric Spike.pptxOperation Analytics and Investigating Metric Spike.pptx
Operation Analytics and Investigating Metric Spike.pptx
 
Belajar SQL
Belajar SQLBelajar SQL
Belajar SQL
 
Web analytics using R
Web analytics using RWeb analytics using R
Web analytics using R
 
SQL intensive capstone project: Churn Rates
SQL intensive capstone project: Churn RatesSQL intensive capstone project: Churn Rates
SQL intensive capstone project: Churn Rates
 
James Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science PortfolioJames Colby Maddox Business Intellignece and Computer Science Portfolio
James Colby Maddox Business Intellignece and Computer Science Portfolio
 
Google Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google AnalyticsGoogle Data Studio_Building a User Journey Funnel with Google Analytics
Google Data Studio_Building a User Journey Funnel with Google Analytics
 
Simple Cohort Analysis in Google Sheets
Simple Cohort Analysis in Google SheetsSimple Cohort Analysis in Google Sheets
Simple Cohort Analysis in Google Sheets
 
#Measure Engagement - DAU / MAU and AAD
#Measure Engagement - DAU / MAU and AAD#Measure Engagement - DAU / MAU and AAD
#Measure Engagement - DAU / MAU and AAD
 
IS320 Database Applications.docx
IS320 Database Applications.docxIS320 Database Applications.docx
IS320 Database Applications.docx
 
Capstone New Century Wellness Group Task Financial.pdf
Capstone New Century Wellness Group Task Financial.pdfCapstone New Century Wellness Group Task Financial.pdf
Capstone New Century Wellness Group Task Financial.pdf
 
Project report aditi paul1
Project report aditi paul1Project report aditi paul1
Project report aditi paul1
 
Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)
Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)
Powering Heap With PostgreSQL And CitusDB (PGConf Silicon Valley 2015)
 
Rating Prediction for Restaurant
Rating Prediction for Restaurant Rating Prediction for Restaurant
Rating Prediction for Restaurant
 
E1802032730
E1802032730E1802032730
E1802032730
 
Congratulations!! You have been selected to create a banking simulat.docx
Congratulations!! You have been selected to create a banking simulat.docxCongratulations!! You have been selected to create a banking simulat.docx
Congratulations!! You have been selected to create a banking simulat.docx
 
Data Modeling in Looker
Data Modeling in LookerData Modeling in Looker
Data Modeling in Looker
 
Soft performance - measuring
Soft performance - measuringSoft performance - measuring
Soft performance - measuring
 
Insurance Optimization
Insurance OptimizationInsurance Optimization
Insurance Optimization
 
READ MEIf you need assistance using Excel, you can access a tutori.docx
READ MEIf you need assistance using Excel, you can access a tutori.docxREAD MEIf you need assistance using Excel, you can access a tutori.docx
READ MEIf you need assistance using Excel, you can access a tutori.docx
 
Company segmentation - an approach with R
Company segmentation - an approach with RCompany segmentation - an approach with R
Company segmentation - an approach with R
 

Recently uploaded

Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsappssapnasaifi408
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSAishani27
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxEmmanuel Dauda
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...shivangimorya083
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxStephen266013
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts ServiceSapana Sha
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiSuhani Kapoor
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiSuhani Kapoor
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptSonatrach
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Sapana Sha
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknowmakika9823
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptxAnupama Kate
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfSocial Samosa
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 

Recently uploaded (20)

Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /WhatsappsBeautiful Sapna Vip  Call Girls Hauz Khas 9711199012 Call /Whatsapps
Beautiful Sapna Vip Call Girls Hauz Khas 9711199012 Call /Whatsapps
 
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Defence Colony Delhi 💯Call Us 🔝8264348440🔝
 
Ukraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICSUkraine War presentation: KNOW THE BASICS
Ukraine War presentation: KNOW THE BASICS
 
E-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptxE-Commerce Order PredictionShraddha Kamble.pptx
E-Commerce Order PredictionShraddha Kamble.pptx
 
Customer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptxCustomer Service Analytics - Make Sense of All Your Data.pptx
Customer Service Analytics - Make Sense of All Your Data.pptx
 
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
Full night 🥵 Call Girls Delhi New Friends Colony {9711199171} Sanya Reddy ✌️o...
 
B2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docxB2 Creative Industry Response Evaluation.docx
B2 Creative Industry Response Evaluation.docx
 
Call Girls In Mahipalpur O9654467111 Escorts Service
Call Girls In Mahipalpur O9654467111  Escorts ServiceCall Girls In Mahipalpur O9654467111  Escorts Service
Call Girls In Mahipalpur O9654467111 Escorts Service
 
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service BhilaiLow Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
Low Rate Call Girls Bhilai Anika 8250192130 Independent Escort Service Bhilai
 
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service AmravatiVIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
VIP Call Girls in Amravati Aarohi 8250192130 Independent Escort Service Amravati
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.pptdokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
dokumen.tips_chapter-4-transient-heat-conduction-mehmet-kanoglu.ppt
 
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
Saket, (-DELHI )+91-9654467111-(=)CHEAP Call Girls in Escorts Service Saket C...
 
Decoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in ActionDecoding Loan Approval: Predictive Modeling in Action
Decoding Loan Approval: Predictive Modeling in Action
 
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service LucknowAminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
Aminabad Call Girl Agent 9548273370 , Call Girls Service Lucknow
 
100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx100-Concepts-of-AI by Anupama Kate .pptx
100-Concepts-of-AI by Anupama Kate .pptx
 
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdfKantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
Kantar AI Summit- Under Embargo till Wednesday, 24th April 2024, 4 PM, IST.pdf
 
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Punjabi Bagh 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
꧁❤ Aerocity Call Girls Service Aerocity Delhi ❤꧂ 9999965857 ☎️ Hard And Sexy ...
 
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
VIP Call Girls Service Charbagh { Lucknow Call Girls Service 9548273370 } Boo...
 

Analyze Key Metrics and Investigate Spikes

  • 1. Operation Analytics and Investigating Metric Spike By Santosh Shinde
  • 2. Description Operation Analytics Operation analytics is the analysis performed for a company's whole end-to-end operations. With the aid of this, the business determines the areas in which it needs to develop, working closely with the operations team, support team, and marketing team to assist them in drawing conclusions from the data they gather. Being one of the most crucial components of a business, this form of analysis is also utilised to forecast the general upward or downward trend in a company's fortune. Additionally, it is used for better workflows, cross-functional team communication, and automation. Investigating Metric Spike Analyzing metric spikes is a crucial component of operational analytics since a data analyst needs to be able to answer queries like, "Why is there a decline in daily engagement?" or at least help other teams answer these questions. Why have sales decreased? Daily answers to questions like these are required, so it is crucial to look into metric increase.
  • 3. ASK Nothing down key business questions asked by team. PREPARE Job data such as job_id, actor_id,time_spent etc and User_event data such as user_id, event_type, relevant timeline etc is needed. PROCESS Data is collected by importing the provided csv to PostgreSQL. ANALYZE Data analysis using SQL queries to answer the business questions. SHARE Bringing data to life with visuals and sharing final report. ACT Deriving meaningful insights from analysis. Approach
  • 4. Tech-Stack Used MS-EXCEL GOOGLE SLIDES POSTGRESQL Data is in the form of .csv files from which the data will be processed Data will imported from csv to sql format. And then the data will be analyzed according to the conditions asked by the organization. All the analyzed data will be visualise in the form PPT.
  • 5. Insights JOB_DATA 1.Total number of jobs examined: The total number of jobs examined over time. Your job:Determine how many jobs will be reviewed each hour and day in November 2020. -- Calculate the number of jobs reviewed per hour per day for November 2020? SELECT ds, ROUND(1.0 * COUNT(job_id) * 3600 / SUM(time_spent), 2) AS jobs_reviewed_per_hour FROM job_table WHERE ds BETWEEN '2020-11-01' AND '2020-11-30' AND event IN ('transfer' , 'decision') GROUP BY ds
  • 6. Insights 2.Throughput: It is the no. of events happening per second. Your job: Let’s say the above metric is called throughput. Calculate 7 day rolling average of throughput. -- Calculate 7 day rolling average of throughput? with CTE AS ( SELECT DS, COUNT(job_id) as num_jobs, SUM(time_spent) as total_time From job_table Where event In ('transfer','decision') And ds Between '2020-11-01' and '2020-11-30' Group by ds) Select ds,round(1.0*sum(num_jobs) over (Order by ds rows between 6 Preceding and current row) / sum(total_time) OVER (order by ds rows between 6 Preceding and current row),2) as throughput_for_7days From CTE;
  • 7. Insights 3.Percentage share of each language: Share of each language for different contents. Your job: Calculate the percentage share of each language in the last 30 days -- Calculate the percentage share of each language in the last 30 days WITH CTE AS ( SELECT Language, COUNT(job_id) as num_jobs From job_table Where event In('transfer','decision') And ds Between '2020-11-01' and '2020-11-30'Group by language), Total as(Select COUNT(job_id) as total_jobs From job_table Where event In('transfer','decision') And ds Between '2020-11-01' and '2020-11-30' Group by language) Select distinct Language, Round(100*num_jobs / total_jobs,2) as percentage_of_jobs From CTE cross join total Order by percentage_of_jobs DESC;
  • 8. Insights 4.Duplicate rows: Rows that have the same value present in them. Your job: Let’s say you see some duplicate rows in the data. How will you display duplicates from the table. --Here we have created new table with similar values, after that inserted one more row. -- Displaying duplicate rows SELECT * FROM (SELECT *, ROW_NUMBER() OVER (PARTITION BY ds, job_id, actor_id, event, language,time_spent, org ORDER BY job_id) AS row_num FROM job_table_2) a WHERE row_num >1
  • 9. Insights INVESTIGATING_METRIC SPIKE 1.User Engagement: To measure the activeness of a user. Measuring if the user finds quality in a product/service. Your job: Calculate the weekly user engagement? -- Calculate the weekly user engagement? SELECT DATE_TRUNC('week', e.occurred_at) AS week_interval, COUNT(DISTINCT e.user_id) AS weekly_active_users FROM events e WHERE e.event_type = 'engagement' AND e.event_name = 'login' GROUP BY week_interval ORDER BY week_interval
  • 10.
  • 11. Insights 2.User Growth: Amount of users growing over time for a product. Your job: Calculate the user growth for product. -- Calculate the user growth for product? SELECT DATE_TRUNC('day', created_at) AS DAY, COUNT(*) AS all_users, COUNT( CASE WHEN activated_at IS NOT NULL THEN u.user_id ELSE NULL END ) AS activated_users FROM users u WHERE created_at >= '2013-01-01' AND created_at < '2013-01-31' GROUP BY DAY ORDER BY DAY
  • 12.
  • 13. Insights 3.Weekly Retention: Users getting retained weekly after signing-up for a product. Your job: Calculate the weekly retention of users-sign up cohort? SELECT DATE_TRUNC('week',a.occurred_at) AS "week", COUNT(DISTINCT CASE WHEN a.user_age > 70 THEN a.user_id ELSE NULL END) AS "10+ weeks", COUNT(DISTINCT CASE WHEN a.user_age < 70 AND a.user_age >= 63 THEN a.user_id ELSE NULL END) AS "9 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 63 AND a.user_age >= 56 THEN a.user_id ELSE NULL END) AS "8 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 56 AND a.user_age >= 49 THEN a.user_id ELSE NULL END) AS "7 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 49 AND a.user_age >= 42 THEN a.user_id ELSE NULL END) AS "6 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 42 AND a.user_age >= 35 THEN a.user_id ELSE NULL END) AS "5 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 35 AND a.user_age >= 28 THEN a.user_id ELSE NULL END) AS "4 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 28 AND a.user_age >= 21 THEN a.user_id ELSE NULL END) AS "3 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 21 AND a.user_age >= 14 THEN a.user_id ELSE NULL END) AS "2 weeks", COUNT(DISTINCT CASE WHEN a.user_age < 14 AND a.user_age >= 7 THEN a.user_id ELSE NULL END) AS "1 week", COUNT(DISTINCT CASE WHEN a.user_age < 7 THEN a.user_id ELSE NULL END) AS "Less than a week" FROM (
  • 14. SELECT e.occurred_at, u.user_id, DATE_TRUNC('week',u.activated_at) AS activation_week, EXTRACT('day' FROM '2014-09-01'::TIMESTAMP - u.activated_at) AS user_age FROM users u JOIN events e ON e.user_id = u.user_id AND e.event_type = 'engagement' AND e.event_name = 'login' AND e.occurred_at >= '2014-05-01' AND e.occurred_at < '2014-09-01' WHERE u.activated_at IS NOT NULL ) a GROUP BY DATE_TRUNC('week',a.occurred_at) ORDER BY DATE_TRUNC('week',a.occurred_at) LIMIT 100
  • 15.
  • 16.
  • 17. Insights 4.Weekly Engagement: To measure the activeness of a user. Measuring if the user finds quality in product/service_weekly. Your job: Calculate the weekly engagement per device? -- Calculate the weekly user engagement? SELECT DATE_TRUNC('week', occurred_at) AS week, COUNT(DISTINCT e.user_id) AS weekly_active_users, COUNT(DISTINCT CASE WHEN e.device IN ('macbook pro','lenovo thinkpad','macbook air','dell inspiron notebook', 'asus chromebook','dell inspiron desktop','acer aspire notebook','hp pavilion desktop','acer aspire desktop','mac mini') THEN e.user_id ELSE NULL END) AS computer, COUNT(DISTINCT CASE WHEN e.device IN ('iphone 5','samsung galaxy s4','nexus 5','iphone 5s','iphone 4s','nokia lumia 635', 'htc one','samsung galaxy note','amazon fire phone') THEN e.user_id ELSE NULL END) AS phone, COUNT(DISTINCT CASE WHEN e.device IN ('ipad air','nexus 7','ipad mini','nexus 10','kindle fire','windows surface', 'samsumg galaxy tablet') THEN e.user_id ELSE NULL END) AS tablet FROM events e WHERE e.event_type = 'engagement' AND e.event_name = 'login' GROUP BY week ORDER BY week LIMIT 100
  • 18.
  • 19.
  • 20. Insights 5.Email Engagement: Users engaging with the email service. Your job: Calculate the email engagement metrics? -- Calculate the email engagement metrics select date_trunc('week', occurred_at) as week, count(case when e.action='sent_weekly_digest' then e.user_id else null end) as weekly_emails, count(case when e.action='sent_reengagement_email' then e.user_id else null end) as re_engagement_email, count(case when e.action='email_open' then e.user_id else null end) as email_opens, count(case when e.action='email_clickthrough' then e.user_id else null end) as email_clickthroughs from email_events e group by 1;
  • 21.
  • 22.
  • 23. Results magrowth ● User engagement: We observe a significant increase and a sharp decline around the end of July and the beginning of August; this could be the result of an advertising event. ● User growth: Growth is still robust during the week and low on the weekends. ● Weekly retention: The engagement of users who have been registered for more than 10 weeks is decreasing, as shown in the graph. ● Weekly engagement by device: There is a significant decline in phone engagement rates when compared to computer and tablet engagement rates, indicating that there may be a problem with the service's mobile app that is preventing long-term user retention. ● Email engagement: There may be an issue with the content in the email as indicated by the sudden decline in weekly emails, re-engagement emails, email opens, and email click throughs in the late 4th week of April 2014. As a result, the organisation should concentrate on email content marketing.