SlideShare a Scribd company logo
1 of 6
Warby Parker Usage Funnels
Analyzing Data with SQL
Annie Wang | May 2020
1. Project Overview
In this project, I analyzed different Warby Parker’s marketing funnels (a style quiz and home try-on feature) in order to
calculate conversion rates between each step leading to a purchase. The project was created through a collaboration
between Codecademy and Warby Parker’s Data Science team.
● The Style Quiz has five questions and nearly 2000 responses, all which are stored in a table called survey
● Below is the database schema used in this project
survey quiz home_try_on purchase
question - TEXT user_id -TEXT user_id - TEXT user_id - TEXT
user_id - TEXT style - TEXT number_of_pairs - TEXT product_id - INTEGER
response - TEXT fit - TEXT address - TEXT style - TEXT
shape - TEXT model_name - TEXT
color - TEXT color - TEXT
price - INTEGER
2.1 Quiz Funnel
SELECT question,
COUNT(DISTINCT user_id) AS ‘count’
FROM survey
GROUP BY question;
To create the quiz funnel in SQL, I used GROUP BY to sort the data into
each of the five questions.
● Users will “give up” at different points in the survey, which I
highlighted with the COUNT function
● I also included the percent_completion column to convert these
numbers into percentage
question count percent_completion
1. What are you looking for? 500 100%
2. What's your fit? 475 95%
3. Which shapes do you like? 380 76%
4. Which colors do you like? 361 72.2%
5. When was your last eye exam? 270 54%
2.2 Home Try-On Funnel
SELECT DISTINCT q.user_id,
h.user_id IS NOT NULL AS 'is_home_try_on’,
h.number_of_pairs,
p.user_id IS NOT NULL AS 'is_purchase'
FROM quiz q
LEFT JOIN home_try_on h
ON q.user_id = h.user_id
LEFT JOIN purchase p
ON q.user_id = p.user_id
LIMIT 5;
WITH funnel AS(
SELECT DISTINCT q.user_id,
h.user_id IS NOT NULL AS 'is_home_try_on’,
h.number_of_pairs,
p.user_id IS NOT NULL AS 'is_purchase’
FROM quiz q
LEFT JOIN home_try_on h
ON q.user_id = h.user_id
LEFT JOIN purchase p
ON q.user_id = p.user_id)
Warby Parker’s purchase funnel is:
Take the Style Quiz → Home Try-On → Purchase Pair of Glasses
● To research the methodology of WP’s user experience, I will
conduct an A/B test (two-sample hypothesis test) where 50% of
users will get 3 pairs to try on and 50% will get 5 pairs to try on
● I used a LEFT JOIN to combine the three tables, and then put it
into a with statement to perform calculations in the next steps
user_id is_home_try_on number_of_pairs is_purchase
4e8118dc… 1 3 pairs 0
291f1cca-e50… 1 3 pairs 1
75122300… 0 NULL 0
75bc6ebd… 1 5 pairs 0
ce965c4d… 1 3 pairs 1
3. Analysis
Following the with statement that created funnel, I used the two
statements to return:
1) The conversion rates between quiz → home_try_on and
home_try_on → purchase
2) The difference in purchase rates between customers who had 3
pairs VS 5 pairs
quiz_to_try_on try_on_to_purchase
75.0 66.0
SELECT (100.0 *
SUM(is_home_try_on)
/ COUNT(user_id)) AS
'quiz_to_try_on',
(100.0 *
SUM(is_purchase) /
SUM(is_home_try_on))
AS
'try_on_to_purchase'
FROM funnel;
SELECT number_of_pairs,
SUM(is_home_try_on) AS
'num_try_on',
SUM(is_purchase) AS
'num_purchased',
ROUND((100.0 * SUM(is_purchase) /
COUNT(number_of_pairs)), 2) AS
'%_try_on_to_purchase'
FROM funnel
GROUP BY 1
HAVING number_of_pairs IS NOT NULL;
number_of
_pairs
num_try_on
num_purcha
sed
%_try_on_to
_purchase
3 pairs 379 201 53.03
5 pairs 371 294 79.25
4. Actionable Insights
SELECT product_id, COUNT(*), model_name,
color, price
FROM purchase
GROUP BY product_id
ORDER BY COUNT(*) DESC
LIMIT 5;
To help WP better advertise their products based on purchasing trends:
● I incorporated this piece of code below to return the most popular (top-selling) pairs of glasses
● The analysis from the previous slide also shows that people are more likely to make a purchase if they were given more
variety (5 pairs rather than 3 pairs)
● WP should focus on increasing the number of people who try on glasses at home (whether by increasing efficiency and
ease from the quiz to try on, or by attracting more people to take the Style Quiz) and their purchase rate will follow
product_id COUNT(*)
model_nam
e
color price
3 63 Dawes Driftwood Fade 150
10 62
Eugene
Narrow
Rosewood
Tortoise
95
9 54
Eugene
Narrow
Rose Crystal 95
1 52 Brady
Layered
Tortoise Matte
95
6 50 Olive
Pearled
Tortoise
95

More Related Content

Similar to SQL

Sam's Club Sales Review
Sam's Club Sales ReviewSam's Club Sales Review
Sam's Club Sales ReviewRyan Peyton
 
Value Based Pricing Strategy PowerPoint Presentation Slides
Value Based Pricing Strategy PowerPoint Presentation SlidesValue Based Pricing Strategy PowerPoint Presentation Slides
Value Based Pricing Strategy PowerPoint Presentation SlidesSlideTeam
 
Value Based Pricing Strategy Powerpoint Presentation Slides
Value Based Pricing Strategy Powerpoint Presentation SlidesValue Based Pricing Strategy Powerpoint Presentation Slides
Value Based Pricing Strategy Powerpoint Presentation SlidesSlideTeam
 
Tn shaw 107 data warehousing problem set
Tn shaw 107 data warehousing problem setTn shaw 107 data warehousing problem set
Tn shaw 107 data warehousing problem setTejNarayanShaw2
 
Multidimensional Data Analysis with Ruby (sample)
Multidimensional Data Analysis with Ruby (sample)Multidimensional Data Analysis with Ruby (sample)
Multidimensional Data Analysis with Ruby (sample)Raimonds Simanovskis
 
Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...
Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...
Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...Digital Customer Experience (DX) Summit
 
Google Partners Hangout: Lexical Analysis Part 2
Google Partners Hangout: Lexical Analysis Part 2 Google Partners Hangout: Lexical Analysis Part 2
Google Partners Hangout: Lexical Analysis Part 2 Boost Media
 
[Webinar] How Vivid Seats Ensures Experimentation Success
[Webinar] How Vivid Seats Ensures Experimentation Success [Webinar] How Vivid Seats Ensures Experimentation Success
[Webinar] How Vivid Seats Ensures Experimentation Success Optimizely
 
Data mining to improve e-mail marketing
Data mining to improve e-mail marketing Data mining to improve e-mail marketing
Data mining to improve e-mail marketing Ritu Sarkar
 
SteveMo Webinar: Hit a Home Run with Formula & Analytics Tricks
SteveMo Webinar: Hit a Home Run with Formula & Analytics TricksSteveMo Webinar: Hit a Home Run with Formula & Analytics Tricks
SteveMo Webinar: Hit a Home Run with Formula & Analytics TricksPanaya
 
How to Realize an Additional 270% ROI on Snowflake
How to Realize an Additional 270% ROI on SnowflakeHow to Realize an Additional 270% ROI on Snowflake
How to Realize an Additional 270% ROI on SnowflakeAtScale
 
Freedom Funnels Presentation
Freedom Funnels PresentationFreedom Funnels Presentation
Freedom Funnels PresentationTony Tong Tsz Hin
 
Slide Makeover #85: Showing performance compared to past and budget
Slide Makeover #85:Showing performance compared to past and budgetSlide Makeover #85:Showing performance compared to past and budget
Slide Makeover #85: Showing performance compared to past and budgetDave Paradi
 
Predictive Model for Customer Segmentation using Database Marketing Techniques
Predictive Model for Customer Segmentation using Database Marketing TechniquesPredictive Model for Customer Segmentation using Database Marketing Techniques
Predictive Model for Customer Segmentation using Database Marketing TechniquesAkanksha Jain
 
RailsWayCon: Multidimensional Data Analysis with JRuby
RailsWayCon: Multidimensional Data Analysis with JRubyRailsWayCon: Multidimensional Data Analysis with JRuby
RailsWayCon: Multidimensional Data Analysis with JRubyRaimonds Simanovskis
 

Similar to SQL (20)

Sam's Club Sales Review
Sam's Club Sales ReviewSam's Club Sales Review
Sam's Club Sales Review
 
Value Based Pricing Strategy PowerPoint Presentation Slides
Value Based Pricing Strategy PowerPoint Presentation SlidesValue Based Pricing Strategy PowerPoint Presentation Slides
Value Based Pricing Strategy PowerPoint Presentation Slides
 
Value Based Pricing Strategy Powerpoint Presentation Slides
Value Based Pricing Strategy Powerpoint Presentation SlidesValue Based Pricing Strategy Powerpoint Presentation Slides
Value Based Pricing Strategy Powerpoint Presentation Slides
 
1 z1 051
1 z1 0511 z1 051
1 z1 051
 
SQL sheet
SQL sheetSQL sheet
SQL sheet
 
Tn shaw 107 data warehousing problem set
Tn shaw 107 data warehousing problem setTn shaw 107 data warehousing problem set
Tn shaw 107 data warehousing problem set
 
Neo4 J
Neo4 J Neo4 J
Neo4 J
 
Multidimensional Data Analysis with Ruby (sample)
Multidimensional Data Analysis with Ruby (sample)Multidimensional Data Analysis with Ruby (sample)
Multidimensional Data Analysis with Ruby (sample)
 
Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...
Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...
Aspiration VS. Reality - The Promise and Practice of AI for Personalization -...
 
Google Partners Hangout: Lexical Analysis Part 2
Google Partners Hangout: Lexical Analysis Part 2 Google Partners Hangout: Lexical Analysis Part 2
Google Partners Hangout: Lexical Analysis Part 2
 
[Webinar] How Vivid Seats Ensures Experimentation Success
[Webinar] How Vivid Seats Ensures Experimentation Success [Webinar] How Vivid Seats Ensures Experimentation Success
[Webinar] How Vivid Seats Ensures Experimentation Success
 
Data mining to improve e-mail marketing
Data mining to improve e-mail marketing Data mining to improve e-mail marketing
Data mining to improve e-mail marketing
 
Clean tests good tests
Clean tests   good testsClean tests   good tests
Clean tests good tests
 
SteveMo Webinar: Hit a Home Run with Formula & Analytics Tricks
SteveMo Webinar: Hit a Home Run with Formula & Analytics TricksSteveMo Webinar: Hit a Home Run with Formula & Analytics Tricks
SteveMo Webinar: Hit a Home Run with Formula & Analytics Tricks
 
How to Realize an Additional 270% ROI on Snowflake
How to Realize an Additional 270% ROI on SnowflakeHow to Realize an Additional 270% ROI on Snowflake
How to Realize an Additional 270% ROI on Snowflake
 
Freedom Funnels Presentation
Freedom Funnels PresentationFreedom Funnels Presentation
Freedom Funnels Presentation
 
Slide Makeover #85: Showing performance compared to past and budget
Slide Makeover #85:Showing performance compared to past and budgetSlide Makeover #85:Showing performance compared to past and budget
Slide Makeover #85: Showing performance compared to past and budget
 
Predictive Model for Customer Segmentation using Database Marketing Techniques
Predictive Model for Customer Segmentation using Database Marketing TechniquesPredictive Model for Customer Segmentation using Database Marketing Techniques
Predictive Model for Customer Segmentation using Database Marketing Techniques
 
RailsWayCon: Multidimensional Data Analysis with JRuby
RailsWayCon: Multidimensional Data Analysis with JRubyRailsWayCon: Multidimensional Data Analysis with JRuby
RailsWayCon: Multidimensional Data Analysis with JRuby
 
Introtosqltuning
IntrotosqltuningIntrotosqltuning
Introtosqltuning
 

More from Annie Wang

Cap1 Case Comp
Cap1 Case CompCap1 Case Comp
Cap1 Case CompAnnie Wang
 
GFB Midterm SAMPLE
GFB Midterm SAMPLE GFB Midterm SAMPLE
GFB Midterm SAMPLE Annie Wang
 
TFA Recommendation SAMPLE
TFA Recommendation SAMPLETFA Recommendation SAMPLE
TFA Recommendation SAMPLEAnnie Wang
 
Brandstorm Competition Slides
Brandstorm Competition SlidesBrandstorm Competition Slides
Brandstorm Competition SlidesAnnie Wang
 
Case Comp SAMPLE
Case Comp SAMPLECase Comp SAMPLE
Case Comp SAMPLEAnnie Wang
 
P&G Case Competition SAMPLE
P&G Case Competition SAMPLEP&G Case Competition SAMPLE
P&G Case Competition SAMPLEAnnie Wang
 

More from Annie Wang (7)

Cap1 Case Comp
Cap1 Case CompCap1 Case Comp
Cap1 Case Comp
 
MatPlotLib
MatPlotLibMatPlotLib
MatPlotLib
 
GFB Midterm SAMPLE
GFB Midterm SAMPLE GFB Midterm SAMPLE
GFB Midterm SAMPLE
 
TFA Recommendation SAMPLE
TFA Recommendation SAMPLETFA Recommendation SAMPLE
TFA Recommendation SAMPLE
 
Brandstorm Competition Slides
Brandstorm Competition SlidesBrandstorm Competition Slides
Brandstorm Competition Slides
 
Case Comp SAMPLE
Case Comp SAMPLECase Comp SAMPLE
Case Comp SAMPLE
 
P&G Case Competition SAMPLE
P&G Case Competition SAMPLEP&G Case Competition SAMPLE
P&G Case Competition SAMPLE
 

Recently uploaded

Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)jennyeacort
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...Florian Roscheck
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130Suhani Kapoor
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...dajasot375
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home ServiceSapana Sha
 
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
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptxthyngster
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...Pooja Nehwal
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubaihf8803863
 
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
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Callshivangimorya083
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDRafezzaman
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]📊 Markus Baersch
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingNeil Barnes
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样vhwb25kk
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceSapana Sha
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一F sss
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Jack DiGiovanna
 

Recently uploaded (20)

Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
Call Us ➥97111√47426🤳Call Girls in Aerocity (Delhi NCR)
 
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...From idea to production in a day – Leveraging Azure ML and Streamlit to build...
From idea to production in a day – Leveraging Azure ML and Streamlit to build...
 
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
 
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
VIP Call Girls Service Miyapur Hyderabad Call +91-8250192130
 
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
Indian Call Girls in Abu Dhabi O5286O24O8 Call Girls in Abu Dhabi By Independ...
 
9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service9654467111 Call Girls In Munirka Hotel And Home Service
9654467111 Call Girls In Munirka Hotel And Home Service
 
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
 
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptxEMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM  TRACKING WITH GOOGLE ANALYTICS.pptx
EMERCE - 2024 - AMSTERDAM - CROSS-PLATFORM TRACKING WITH GOOGLE ANALYTICS.pptx
 
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...{Pooja:  9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
{Pooja: 9892124323 } Call Girl in Mumbai | Jas Kaur Rate 4500 Free Hotel Del...
 
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls DubaiDubai Call Girls Wifey O52&786472 Call Girls Dubai
Dubai Call Girls Wifey O52&786472 Call Girls Dubai
 
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
 
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
꧁❤ Greater Noida Call Girls Delhi ❤꧂ 9711199171 ☎️ Hard And Sexy Vip Call
 
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...
 
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTDINTERNSHIP ON PURBASHA COMPOSITE TEX LTD
INTERNSHIP ON PURBASHA COMPOSITE TEX LTD
 
GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]GA4 Without Cookies [Measure Camp AMS]
GA4 Without Cookies [Measure Camp AMS]
 
Brighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data StorytellingBrighton SEO | April 2024 | Data Storytelling
Brighton SEO | April 2024 | Data Storytelling
 
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
1:1定制(UQ毕业证)昆士兰大学毕业证成绩单修改留信学历认证原版一模一样
 
Call Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts ServiceCall Girls In Dwarka 9654467111 Escorts Service
Call Girls In Dwarka 9654467111 Escorts Service
 
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
办理学位证中佛罗里达大学毕业证,UCF成绩单原版一比一
 
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
Building on a FAIRly Strong Foundation to Connect Academic Research to Transl...
 

SQL

  • 1. Warby Parker Usage Funnels Analyzing Data with SQL Annie Wang | May 2020
  • 2. 1. Project Overview In this project, I analyzed different Warby Parker’s marketing funnels (a style quiz and home try-on feature) in order to calculate conversion rates between each step leading to a purchase. The project was created through a collaboration between Codecademy and Warby Parker’s Data Science team. ● The Style Quiz has five questions and nearly 2000 responses, all which are stored in a table called survey ● Below is the database schema used in this project survey quiz home_try_on purchase question - TEXT user_id -TEXT user_id - TEXT user_id - TEXT user_id - TEXT style - TEXT number_of_pairs - TEXT product_id - INTEGER response - TEXT fit - TEXT address - TEXT style - TEXT shape - TEXT model_name - TEXT color - TEXT color - TEXT price - INTEGER
  • 3. 2.1 Quiz Funnel SELECT question, COUNT(DISTINCT user_id) AS ‘count’ FROM survey GROUP BY question; To create the quiz funnel in SQL, I used GROUP BY to sort the data into each of the five questions. ● Users will “give up” at different points in the survey, which I highlighted with the COUNT function ● I also included the percent_completion column to convert these numbers into percentage question count percent_completion 1. What are you looking for? 500 100% 2. What's your fit? 475 95% 3. Which shapes do you like? 380 76% 4. Which colors do you like? 361 72.2% 5. When was your last eye exam? 270 54%
  • 4. 2.2 Home Try-On Funnel SELECT DISTINCT q.user_id, h.user_id IS NOT NULL AS 'is_home_try_on’, h.number_of_pairs, p.user_id IS NOT NULL AS 'is_purchase' FROM quiz q LEFT JOIN home_try_on h ON q.user_id = h.user_id LEFT JOIN purchase p ON q.user_id = p.user_id LIMIT 5; WITH funnel AS( SELECT DISTINCT q.user_id, h.user_id IS NOT NULL AS 'is_home_try_on’, h.number_of_pairs, p.user_id IS NOT NULL AS 'is_purchase’ FROM quiz q LEFT JOIN home_try_on h ON q.user_id = h.user_id LEFT JOIN purchase p ON q.user_id = p.user_id) Warby Parker’s purchase funnel is: Take the Style Quiz → Home Try-On → Purchase Pair of Glasses ● To research the methodology of WP’s user experience, I will conduct an A/B test (two-sample hypothesis test) where 50% of users will get 3 pairs to try on and 50% will get 5 pairs to try on ● I used a LEFT JOIN to combine the three tables, and then put it into a with statement to perform calculations in the next steps user_id is_home_try_on number_of_pairs is_purchase 4e8118dc… 1 3 pairs 0 291f1cca-e50… 1 3 pairs 1 75122300… 0 NULL 0 75bc6ebd… 1 5 pairs 0 ce965c4d… 1 3 pairs 1
  • 5. 3. Analysis Following the with statement that created funnel, I used the two statements to return: 1) The conversion rates between quiz → home_try_on and home_try_on → purchase 2) The difference in purchase rates between customers who had 3 pairs VS 5 pairs quiz_to_try_on try_on_to_purchase 75.0 66.0 SELECT (100.0 * SUM(is_home_try_on) / COUNT(user_id)) AS 'quiz_to_try_on', (100.0 * SUM(is_purchase) / SUM(is_home_try_on)) AS 'try_on_to_purchase' FROM funnel; SELECT number_of_pairs, SUM(is_home_try_on) AS 'num_try_on', SUM(is_purchase) AS 'num_purchased', ROUND((100.0 * SUM(is_purchase) / COUNT(number_of_pairs)), 2) AS '%_try_on_to_purchase' FROM funnel GROUP BY 1 HAVING number_of_pairs IS NOT NULL; number_of _pairs num_try_on num_purcha sed %_try_on_to _purchase 3 pairs 379 201 53.03 5 pairs 371 294 79.25
  • 6. 4. Actionable Insights SELECT product_id, COUNT(*), model_name, color, price FROM purchase GROUP BY product_id ORDER BY COUNT(*) DESC LIMIT 5; To help WP better advertise their products based on purchasing trends: ● I incorporated this piece of code below to return the most popular (top-selling) pairs of glasses ● The analysis from the previous slide also shows that people are more likely to make a purchase if they were given more variety (5 pairs rather than 3 pairs) ● WP should focus on increasing the number of people who try on glasses at home (whether by increasing efficiency and ease from the quiz to try on, or by attracting more people to take the Style Quiz) and their purchase rate will follow product_id COUNT(*) model_nam e color price 3 63 Dawes Driftwood Fade 150 10 62 Eugene Narrow Rosewood Tortoise 95 9 54 Eugene Narrow Rose Crystal 95 1 52 Brady Layered Tortoise Matte 95 6 50 Olive Pearled Tortoise 95