# blurred-machine/sales-and-marketing-analytics architecture

> Architecture diagram of the GitHub repository blurred-machine/sales-and-marketing-analytics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/blurred-machine/sales-and-marketing-analytics
- Repository: https://github.com/blurred-machine/sales-and-marketing-analytics

## Overview

This repository is a collection of nine sales and marketing analytics notebooks, covering customer metrics and behavior, sales prediction, and marketing response and experimentation. An analyst selects and runs a notebook to explore its named topic. The README documents the capabilities, but no notebook source excerpts were available, so data inputs, implementation steps, and connections between notebooks are not inferred.

Main entry points: [`1- Know Your Metrics/Revenue and User Retention Calculation.ipynb`](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/1-%20Know%20Your%20Metrics/Revenue%20and%20User%20Retention%20Calculation.ipynb) (Metrics & Retention), [`2- Customer Segmentation/Customer Segmentation.ipynb`](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/2-%20Customer%20Segmentation/Customer%20Segmentation.ipynb) (Customer Segmentation), [`3- Customer Lifetime Value Prediction/customer_lifetime_value_prediction.ipynb`](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/3-%20Customer%20Lifetime%20Value%20Prediction/customer_lifetime_value_prediction.ipynb) (Lifetime Value), [`4- Churn Prediction/churn_prediction.ipynb`](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/4-%20Churn%20Prediction/churn_prediction.ipynb) (Churn Prediction)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_customer_analytics["Customer Analytics"]
  node_metrics["Metrics &amp; Retention"]
  node_segmentation["Customer Segmentation"]
  node_clv["Lifetime Value"]
  node_churn["Churn Prediction"]
  node_next_purchase["Next Purchase Day"]
end

subgraph group_sales_forecasting["Sales Forecasting"]
  node_sales["Sales Prediction"]
end

subgraph group_marketing_analytics["Marketing Analytics"]
  node_market_response["Market Response Models"]
  node_uplift["Uplift Modeling"]
  node_ab_testing["A/B Testing"]
end

node_analyst(("Analyst"))

node_analyst -->|"runs"| node_metrics
node_analyst -->|"runs"| node_segmentation
node_analyst -->|"runs"| node_clv
node_analyst -->|"runs"| node_churn
node_analyst -->|"runs"| node_next_purchase
node_analyst -->|"runs"| node_sales
node_analyst -->|"runs"| node_market_response
node_analyst -->|"runs"| node_uplift
node_analyst -->|"runs"| node_ab_testing

click node_metrics "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/1-%20Know%20Your%20Metrics/Revenue%20and%20User%20Retention%20Calculation.ipynb"
click node_segmentation "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/2-%20Customer%20Segmentation/Customer%20Segmentation.ipynb"
click node_clv "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/3-%20Customer%20Lifetime%20Value%20Prediction/customer_lifetime_value_prediction.ipynb"
click node_churn "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/4-%20Churn%20Prediction/churn_prediction.ipynb"
click node_next_purchase "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/5-%20Predicting%20Next%20Purchase%20Day/Predicting%20Next%20Purchase%20Day.ipynb"
click node_sales "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/6-%20Predicting%20Sales/Sales%20Prediction.ipynb"
click node_market_response "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/7-%20Market%20Response%20Models/Market%20Response%20Models.ipynb"
click node_uplift "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/8-%20Uplift%20Modeling/Uplift%20Modeling.ipynb"
click node_ab_testing "https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/9-%20AB%20Testing%20Design%20and%20Execution/AB%20Testing%20Design%20and%20Execution.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_metrics,node_segmentation,node_clv,node_churn,node_next_purchase toneBlue
class node_sales toneAmber
class node_market_response,node_uplift,node_ab_testing toneMint
class node_analyst toneIndigo
```

## Components

### Customer Analytics

- [Metrics & Retention](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/1-%20Know%20Your%20Metrics/Revenue%20and%20User%20Retention%20Calculation.ipynb): `1- Know Your Metrics/Revenue and User Retention Calculation.ipynb`
- [Customer Segmentation](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/2-%20Customer%20Segmentation/Customer%20Segmentation.ipynb): `2- Customer Segmentation/Customer Segmentation.ipynb`
- [Lifetime Value](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/3-%20Customer%20Lifetime%20Value%20Prediction/customer_lifetime_value_prediction.ipynb): `3- Customer Lifetime Value Prediction/customer_lifetime_value_prediction.ipynb`
- [Churn Prediction](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/4-%20Churn%20Prediction/churn_prediction.ipynb): `4- Churn Prediction/churn_prediction.ipynb`
- [Next Purchase Day](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/5-%20Predicting%20Next%20Purchase%20Day/Predicting%20Next%20Purchase%20Day.ipynb): `5- Predicting Next Purchase Day/Predicting Next Purchase Day.ipynb`

### Sales Forecasting

- [Sales Prediction](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/6-%20Predicting%20Sales/Sales%20Prediction.ipynb): `6- Predicting Sales/Sales Prediction.ipynb`

### Marketing Analytics

- [Market Response Models](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/7-%20Market%20Response%20Models/Market%20Response%20Models.ipynb): `7- Market Response Models/Market Response Models.ipynb`
- [Uplift Modeling](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/8-%20Uplift%20Modeling/Uplift%20Modeling.ipynb): `8- Uplift Modeling/Uplift Modeling.ipynb`
- [A/B Testing](https://github.com/blurred-machine/sales-and-marketing-analytics/blob/master/9-%20AB%20Testing%20Design%20and%20Execution/AB%20Testing%20Design%20and%20Execution.ipynb): `9- AB Testing Design and Execution/AB Testing Design and Execution.ipynb`

### Other components

- **Analyst**

## Connections

- Analyst → Metrics & Retention: runs
- Analyst → Customer Segmentation: runs
- Analyst → Lifetime Value: runs
- Analyst → Churn Prediction: runs
- Analyst → Next Purchase Day: runs
- Analyst → Sales Prediction: runs
- Analyst → Market Response Models: runs
- Analyst → Uplift Modeling: runs
- Analyst → A/B Testing: runs
