# geethasagarb/lead_scoring_case_study architecture

> Architecture diagram of the GitHub repository geethasagarb/lead_scoring_case_study, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-04-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/geethasagarb/lead_scoring_case_study
- Repository: https://github.com/geethasagarb/lead_scoring_case_study

## Overview

##### Main Components
- Data Sources:
- Leads.csv – the primary dataset
- Leads Data Dictionary.xlsx – metadata about the dataset
- Data Preparation & Cleaning: Steps that handle missing values and data variations (e.g., replacing 'Select' values with NaN and dropping columns with excessive missing data).
- Exploratory Data Analysis (EDA): Processes that generate initial insights (loading data, computing statistics, visualizing data through graphs).
- Model Building & Evaluation:
- Data Splitting (training and testing sets)
- Feature Scaling (standardization)
- Model Training (using Logistic Regression and possibly other techniques)
- Evaluation (calculating Accuracy, Sensitivity, Specificity, etc.)
- Reporting and Documentation:
- Jupyter Notebook (Lead Scoring Case Study.ipynb) where analysis is executed
- Supporting documents (e.g., Assignment Subjective Questions.docx, Executive Summary PDF, Presentation.pdf)

##### Relationships and Interactions
- That the Jupyter Notebook is central, serving as the interactive environment that ties all steps together.
- That reports and presentations derive their content from the outcomes of the analysis process.

##### Architectural Patterns and Design Principles
- Pipeline Structure: Clearly show the sequential pipeline approach (data ingestion → processing → analysis → model building → reporting).
- Modularity: Indicate that each stage (preprocessing, analysis, modeling, and evaluation) is implemented as a separate module or process, making the project maintainable and extensible.
- Reproducibility: Emphasize the role of documentation (README.md, data dictionary, and notebooks) to ensure repeatability of results.

##### Relevant Technologies and Libraries
- Python Libraries:
- Pandas and NumPy for data manipulation
- Matplotlib and Seaborn for visualization
- Scikit-learn for machine learning
- Statsmodels for additional statistical modeling

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Data Sources"
        DS1["Leads.csv"]:::data
        DS2["Leads Data Dictionary.xlsx"]:::data
    end

    DS1 -->|"feeds"| P1["Data Cleaning/Preprocessing"]:::process
    DS2 -->|"feeds"| P1

    P1 -->|"passes clean data to"| P2["Exploratory Data Analysis"]:::process

    P2 -->|"sends insights to"| P3["Model Building & Evaluation"]:::process

    subgraph "Output & Reporting"
        R1["Lead Scoring Case Study.ipynb"]:::report
        R2["Assignment Subjective Questions.docx"]:::report
        R3["Executive Summary of Lead Scoring Case Study.pdf"]:::report
        R4["Presentation.pdf"]:::report
        R5["README.md"]:::report
    end

    P3 -->|"generates results for"| R1

    PL["Python Libraries: Pandas, NumPy, Matplotlib, Seaborn, Scikit-learn, Statsmodels"]:::lib
    PL ---|"supports"| P2
    PL ---|"supports"| P3

    click DS1 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Leads.csv"
    click DS2 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Leads Data Dictionary.xlsx"
    click P1 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Lead Scoring Case Study.ipynb"
    click P2 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Lead Scoring Case Study.ipynb"
    click P3 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Lead Scoring Case Study.ipynb"
    click R1 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Lead Scoring Case Study.ipynb"
    click R2 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Assignment Subjective Questions.docx"
    click R3 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Executive Summary of Lead Scoring Case Study.pdf"
    click R4 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/Presentation.pdf"
    click R5 "https://github.com/geethasagarb/lead_scoring_case_study/blob/master/README.md"

    classDef data fill:#f9c,stroke:#333,stroke-width:2px,color:#000;
    classDef process fill:#bbf,stroke:#333,stroke-width:2px,font-weight:bold;
    classDef report fill:#cfc,stroke:#333,stroke-width:2px,color:#000;
    classDef lib fill:#ffc,stroke:#333,stroke-width:2px,color:#000;
```
