This repository contains Python scripts for analyzing subscription/SaaS business metrics, including churn prediction and unit economics. It generates synthetic customer data and calculates financial metrics like LTV, CAC, and NRR, alongside cohort analysis and churn root cause diagnosis.
From the README
SaaS Churn & Unit Economics Analysis What is this? This project analyses a subscription/SaaS business and tries to answer a simple question: Why are customers leaving, and what does that mean for the business financially? It creates synthetic SaaS customer data and analyses: • Revenue • Churn • Customer retention • CAC • LTV • Payback period • NRR • GRR • Customer cohorts • Possible churn causes How the project works Main files • generatesaasdata.py — creates sample customer data • financialmodel.py — calculates business and financial metrics • cohortanalysis.py — studies customer retention over time • rootcausediagnosis.py — looks for possible reasons for churn • app.py — Streamlit...
Skills
- Python