Skip to content

crestongetz/Calculating-Churn-Rates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 

Repository files navigation

Calculating-Churn-Rates

Overview

This project uses SQL to calculate and compare monthly churn rates for two user segments (30 and 87) between December 2016 and March 2017. The goal is to identify which segment demonstrates higher retention and provide data-driven recommendations for business expansion.

Business Questions

  1. How many months has the company been operating? How can this be used to find the churn rate?
  2. What segments of users exist?
  3. What is the overall churn trend since the company started?
  4. Compare the churn rates between user segments.
  5. Which segment should the company expand on?

Findings

  1. The company's data ranges from December 2016 to March 2017. Because users have a minimum 1-month subscription length, we only need to use January, February, and March to find the churn rate.
  2. There are two segments: segment 87 and segment 30.
  3. The overall churn rate of the company has increased since data collection started in December. With one exception being a slight decrease in segment 30 from January to February.

monthly churn rate

  1. Segment 30 had a much lower churn rate than segment 87. While churn rate for both groups increased in March, users in segment 30 were less likely to cancel in all three months.

Churn Rate Segment 87 vs Segment 30

  1. The company should expand on segment 30. Future analysis into why the churn rate for segment 80 is higher should be done. Has segment 87 been around longer? Is segment 30 newer? How much are we spending on these two segments? What kind of customers are in each segment? What is the account age of canceled users?

Data Used

The data used in this project is stored in a SQL table called subscriptions (from Codecademy). It has the following columns:

  • id - primary key id.
  • subscription_start - start date of subscription.
  • subscription_end - last date of subscription(Null if still active).
  • segment - identifies which segment or group the subscription belongs to.

The company has a minimum subscription length of 31 days, so no user can start and end their subscription in the same month. table

Future Improvements

  • Currently, in the data, there are only two segments. If we wanted to add more segments to this query so we can reuse it, this code won't scale well. We could add a segment to group by in the status aggregate, which would let us use this query for any number of segments.
  • For large databases, this query will not be fast

About

This project uses SQL to calculate and compare monthly churn rates for two user segments (30 and 87) between December 2016 and March 2017. The goal is to identify which segment demonstrates higher retention and provide data-driven recommendations for business expansion.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors