Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ngangawairimu/customer-lifetime-value-and-rfm-analysis
This project performs cohort analysis to estimate Customer Lifetime Value (CLV) by analyzing weekly revenue and user registrations over 12 weeks, forecasting future revenue, and providing actionable insights for marketing and business strategy.
https://github.com/ngangawairimu/customer-lifetime-value-and-rfm-analysis
clv-analysis cohort-analysis customer-segmentation rfm-analysis
Last synced: 22 days ago
JSON representation
This project performs cohort analysis to estimate Customer Lifetime Value (CLV) by analyzing weekly revenue and user registrations over 12 weeks, forecasting future revenue, and providing actionable insights for marketing and business strategy.
- Host: GitHub
- URL: https://github.com/ngangawairimu/customer-lifetime-value-and-rfm-analysis
- Owner: ngangawairimu
- Created: 2024-11-13T10:57:59.000Z (about 1 month ago)
- Default Branch: main
- Last Pushed: 2024-11-21T11:07:25.000Z (about 1 month ago)
- Last Synced: 2024-11-21T12:19:45.132Z (about 1 month ago)
- Topics: clv-analysis, cohort-analysis, customer-segmentation, rfm-analysis
- Homepage:
- Size: 104 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Data :
The goal is to analyze weekly revenue generated by users from their registration cohort, where registration is defined as the first visit to the website. This calculation helps track how different cohorts (users who registered in a specific week) perform over a 12-week period.
Key Steps:## Identify User Cohorts:
The first part of the query identifies the registration week for each user based on their first visit to the site. Each user is grouped into a cohort according to the week of their first interaction.
Calculate Weekly Revenue per Cohort:## The second part calculates the revenue for each cohort over a 12-week period:
- Week 0: Revenue generated in the same week as the user's first visit.
- Week 1 - Week 11: Revenue for each subsequent week after the user's registration.
## For each cohort, the revenue is tracked and aggregated by week.
Revenue per Registration:The final calculation divides the total revenue for each week by the number of users in the cohort, providing revenue per registration for each cohort across all 12 weeks.
Key Features:- Cohort Analysis: Tracks revenue by user cohort, based on their first visit.
- Weekly Tracking: Revenue is calculated and tracked for each cohort across 12 weeks post-registration.
- Avoids Division by Zero: Uses NULLIF to prevent division by zero when a cohort has no purchases in a given week..