Skip to content

yaswanthteja/Fresh_Segments

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

Star Badge View Main Folder View Repositories View My Profile

Case Study #8: Fresh Segments

Image

📚 Table of Contents


Business Task

Fresh Segments is a digital marketing agency that helps other businesses analyze trends in online ad click behavior for their unique customer base.

Clients share their customer lists with the Fresh Segments team who then aggregate interest metrics and generate a single dataset worth of metrics for further analysis.

In particular - the composition and rankings for different interests are provided for each client showing the proportion of their customer list who interacted with online assets related to each interest for each month.

Danny has asked for your assistance to analyze aggregated metrics for an example client and provide some high-level insights about the customer list and their interests.

Entity Relationship Diagram

Table: interest_map

id interest_name interest_summary created_at last_modified
1 Fitness Enthusiasts Consumers using fitness tracking apps and websites. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000
2 Gamers Consumers researching game reviews and cheat codes. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000
3 Car Enthusiasts Readers of automotive news and car reviews. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000
4 Luxury Retail Researchers Consumers researching luxury product reviews and gift ideas. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000
5 Brides & Wedding Planners People researching wedding ideas and vendors. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000
6 Vacation Planners Consumers reading reviews of vacation destinations and accommodations. 2016-05-26T14:57:59.000 2018-05-23T11:30:13.000
7 Motorcycle Enthusiasts Readers of motorcycle news and reviews. 2016-05-26T14:57:59.000 2018-05-23T11:30:13.000
8 Business News Readers Readers of online business news content. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000
12 Thrift Store Shoppers Consumers shopping online for clothing at thrift stores and researching locations. 2016-05-26T14:57:59.000 2018-03-16T13:14:00.000
13 Advertising Professionals People who read advertising industry news. 2016-05-26T14:57:59.000 2018-05-23T11:30:12.000

Table: interest_metrics

month year month_year interest_id composition index_value ranking percentile_ranking
7 2018 Jul-18 32486 11.89 6.19 1 99.86
7 2018 Jul-18 6106 9.93 5.31 2 99.73
7 2018 Jul-18 18923 10.85 5.29 3 99.59
7 2018 Jul-18 6344 10.32 5.1 4 99.45
7 2018 Jul-18 100 10.77 5.04 5 99.31
7 2018 Jul-18 69 10.82 5.03 6 99.18
7 2018 Jul-18 79 11.21 4.97 7 99.04
7 2018 Jul-18 6111 10.71 4.83 8 98.9
7 2018 Jul-18 6214 9.71 4.83 8 98.9
7 2018 Jul-18 19422 10.11 4.81 10 98.63

Case Study Questions

A. Data Exploration and Cleansing

Click here to expand!

View my solution here

  1. Update the fresh_segments.interest_metrics table by modifying the month_year column to be a date data type with the start of the month
  2. What is count of records in the fresh_segments.interest_metrics for each month_year value sorted in chronological order (earliest to latest) with the null values appearing first?
  3. What do you think we should do with these null values in the fresh_segments.interest_metrics?
  4. How many interest_id values exist in the fresh_segments.interest_metrics table but not in the fresh_segments.interest_map table? What about the other way around?
  5. Summarise the id values in the fresh_segments.interest_map by its total record count in this table
  6. What sort of table join should we perform for our analysis and why? Check your logic by checking the rows where 'interest_id = 21246' in your joined output and include all columns from fresh_segments.interest_metrics and all columns from fresh_segments.interest_map except from the id column.
  7. Are there any records in your joined table where the month_year value is before the created_at value from the fresh_segments.interest_map table? Do you think these values are valid and why?

B. Interest Analysis

Click here to expand!

View my solution here.

  1. Which interests have been present in all month_year dates in our dataset?
  2. Using this same total_months measure - calculate the cumulative percentage of all records starting at 14 months - which total_months value passes the 90% cumulative percentage value?
  3. If we were to remove all interest_id values which are lower than the total_months value we found in the previous question - how many total data points would we be removing?
  4. Does this decision make sense to remove these data points from a business perspective? Use an example where there are all 14 months present to a removed interest example for your arguments - think about what it means to have less months present from a segment perspective.
  5. If we include all of our interests regardless of their counts - how many unique interests are there for each month?

C. Segment Analysis

Click here to expand!

View my solution here.

  1. Using the complete dataset - which are the top 10 and bottom 10 interests which have the largest composition values in any month_year? Only use the maximum composition value for each interest but you must keep the corresponding month_year
  2. Which 5 interests had the lowest average ranking value?
  3. Which 5 interests had the largest standard deviation in their percentile_ranking value?
  4. For the 5 interests found in the previous question - what was minimum and maximum percentile_ranking values for each interest and its corresponding year_month value? Can you describe what is happening for these 5 interests?
  5. How would you describe our customers in this segment based off their composition and ranking values? What sort of products or services should we show to these customers and what should we avoid?

D. Index Analysis

Click here to expand!

View my solution here.

The index_value is a measure which can be used to reverse calculate the average composition for Fresh Segments’ clients. Average composition can be calculated by dividing the composition column by the index_value column rounded to 2 decimal places.

  1. What is the top 10 interests by the average composition for each month?
  2. For all of these top 10 interests - which interest appears the most often?
  3. What is the average of the average composition for the top 10 interests for each month?
  4. What is the 3 month rolling average of the max average composition value from September 2018 to August 2019 and include the previous top ranking interests in the same output shown below.
  5. Provide a possible reason why the max average composition might change from month to month? Could it signal something is not quite right with the overall business model for Fresh Segments?

Do give me a 🌟 if you like what you're reading. Thank you!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published