# ashishmis1/customer-retention-revenue-risk-diagnostics architecture

> Architecture diagram of the GitHub repository ashishmis1/customer-retention-revenue-risk-diagnostics, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-12). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/ashishmis1/customer-retention-revenue-risk-diagnostics
- Repository: https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics

## Overview

This repository packages a customer-retention workflow: customer data is prepared and scored for churn risk, then predictions inform a Power BI dashboard and retention strategy. The README documents the workflow and dashboard capabilities, but no source excerpts are available, so links between named artifacts are not verified beyond the documented prediction-to-dashboard relationship.

Main entry points: [`churn analysis.pbix`](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix) (Power BI Dashboard), [`Churn predicton model.ipynb`](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Churn%20predicton%20model.ipynb) (Data Preparation), [`Predictions.csv`](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Predictions.csv) (Churn Predictions), [`Prediction data.xlsx`](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Prediction%20data.xlsx) (Customer Data)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_data["Customer Data"]
  node_customer_data[("Customer Data")]
end

subgraph group_model["Churn Prediction"]
  node_preparation["Data Preparation"]
  node_risk_model["Random Forest"]
  node_predictions["Churn Predictions<br/>[Predictions.csv]"]
end

subgraph group_insights["Business Insights"]
  node_dashboard["Power BI Dashboard"]
  node_historical["Historical Diagnostics"]
  node_risk_tiers["Revenue Risk Tiers"]
  node_action_plan["Retention Action Plan"]
end

node_analyst(("Business Analyst"))

node_customer_data -.->|"provides data"| node_preparation
node_preparation -.->|"prepares inputs"| node_risk_model
node_risk_model -.->|"produces scores"| node_predictions
node_predictions -->|"informs dashboard"| node_dashboard
node_analyst -.->|"reviews insights"| node_dashboard
node_dashboard -->|"shows diagnostics"| node_historical
node_dashboard -->|"segments predictions"| node_risk_tiers
node_dashboard -->|"guides retention"| node_action_plan

click node_customer_data "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Prediction%20data.xlsx"
click node_preparation "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Churn%20predicton%20model.ipynb"
click node_risk_model "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Churn%20predicton%20model.ipynb"
click node_predictions "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Predictions.csv"
click node_dashboard "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix"
click node_historical "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix"
click node_risk_tiers "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix"
click node_action_plan "https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix"

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_customer_data toneBlue
class node_preparation,node_risk_model,node_predictions toneAmber
class node_dashboard,node_historical,node_risk_tiers,node_action_plan toneMint
class node_analyst toneIndigo
```

## Components

### Customer Data

- [Customer Data](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Prediction%20data.xlsx): `Prediction data.xlsx`

### Churn Prediction

- [Data Preparation](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Churn%20predicton%20model.ipynb): `Churn predicton model.ipynb`
- [Random Forest](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Churn%20predicton%20model.ipynb): `Churn predicton model.ipynb`
- [Churn Predictions](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/Predictions.csv): `Predictions.csv`

### Business Insights

- [Power BI Dashboard](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix): `churn analysis.pbix`
- [Historical Diagnostics](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix): `churn analysis.pbix`
- [Revenue Risk Tiers](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix): `churn analysis.pbix`
- [Retention Action Plan](https://github.com/ashishmis1/customer-retention-revenue-risk-diagnostics/blob/main/churn%20analysis.pbix): `churn analysis.pbix`

### Other components

- **Business Analyst**

## Connections

- Customer Data → Data Preparation: provides data
- Data Preparation → Random Forest: prepares inputs
- Random Forest → Churn Predictions: produces scores
- Churn Predictions → Power BI Dashboard: informs dashboard (evidence: `README.md`)
- Business Analyst → Power BI Dashboard: reviews insights
- Power BI Dashboard → Historical Diagnostics: shows diagnostics (evidence: `README.md`)
- Power BI Dashboard → Revenue Risk Tiers: segments predictions (evidence: `README.md`)
- Power BI Dashboard → Retention Action Plan: guides retention (evidence: `README.md`)
